Package org.craftercms.search.batch.impl
Class AbstractXmlFileBatchIndexer
java.lang.Object
org.craftercms.search.metadata.impl.AbstractMetadataCollector
org.craftercms.search.batch.impl.AbstractBatchIndexer
org.craftercms.search.batch.impl.AbstractXmlFileBatchIndexer
- All Implemented Interfaces:
BatchIndexer
- Direct Known Subclasses:
OpenSearchXmlFileBatchIndexer
BatchIndexer that updates/deletes XML files from a search index.- Author:
- avasquez
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.core.processors.ItemProcessorprotected final org.slf4j.LoggerFields inherited from class org.craftercms.search.batch.impl.AbstractBatchIndexer
excludePathPatterns, includePathPatternsFields inherited from class org.craftercms.search.metadata.impl.AbstractMetadataCollector
metadataExtractors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdocumentToString(org.dom4j.Document document) protected abstract voiddoDelete(String indexId, String siteName, String path, UpdateStatus updateStatus) protected voiddoSingleFileUpdate(String indexId, String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path, boolean delete, UpdateDetail updateDetail, UpdateStatus updateStatus, Map<String, Object> metadata) protected abstract voiddoUpdate(String indexId, String siteName, String path, String xml, UpdateDetail updateDetail, UpdateStatus updateStatus, Map<String, Object> metadata) protected StringprocessXml(String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path) voidsetItemProcessor(org.craftercms.core.processors.ItemProcessor itemProcessor) voidsetItemProcessors(List<org.craftercms.core.processors.ItemProcessor> itemProcessors) Methods inherited from class org.craftercms.search.batch.impl.AbstractBatchIndexer
include, setExcludePathPatterns, setIncludePathPatterns, updateIndexMethods inherited from class org.craftercms.search.metadata.impl.AbstractMetadataCollector
collectMetadata, setMetadataExtractors
-
Field Details
-
DEFAULT_INCLUDE_FILENAME_PATTERNS
-
logger
protected final org.slf4j.Logger logger -
itemProcessor
protected org.craftercms.core.processors.ItemProcessor itemProcessor
-
-
Constructor Details
-
AbstractXmlFileBatchIndexer
public AbstractXmlFileBatchIndexer()
-
-
Method Details
-
setItemProcessor
public void setItemProcessor(org.craftercms.core.processors.ItemProcessor itemProcessor) -
setItemProcessors
-
doSingleFileUpdate
protected void doSingleFileUpdate(String indexId, String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path, boolean delete, UpdateDetail updateDetail, UpdateStatus updateStatus, Map<String, Object> metadata) - Specified by:
doSingleFileUpdatein classAbstractBatchIndexer
-
doDelete
protected abstract void doDelete(String indexId, String siteName, String path, UpdateStatus updateStatus) -
doUpdate
protected abstract void doUpdate(String indexId, String siteName, String path, String xml, UpdateDetail updateDetail, UpdateStatus updateStatus, Map<String, Object> metadata) -
processXml
protected String processXml(String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path) throws org.craftercms.core.exception.CrafterException - Throws:
org.craftercms.core.exception.CrafterException
-
documentToString
-