All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.craftercms.search.batch.BatchIndexer Maven / Gradle / Ivy

/*
 * Copyright (C) 2007-2020 Crafter Software Corporation. All Rights Reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */
package org.craftercms.search.batch;

import org.craftercms.search.batch.exception.BatchIndexingException;
import org.craftercms.core.service.ContentStoreService;
import org.craftercms.core.service.Context;

/**
 * Classes that implement this interface update or delete batches of files from a specified search index.
 *
 * @author avasquez
 */
public interface BatchIndexer {

    /**
     * Updates the specified search index with the given batch of files.
     *
     * @param indexId               the ID of the index, or null to use a default index
     * @param siteName              the name of the site the files belong to
     * @param contentStoreService   the content store service used to retrieve the files and content to index
     * @param context               the context of the file store being used
     * @param updateSet             the set of files to update/delete
     * @param updateStatus          status object used to track index updates and deletes
     */
    void updateIndex(String indexId, String siteName, ContentStoreService contentStoreService,
                     Context context, UpdateSet updateSet, UpdateStatus updateStatus) throws BatchIndexingException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy