public class XmlFileBatchIndexer extends AbstractBatchIndexer
BatchIndexer that updates/deletes XML files from a search index.| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DEFAULT_INCLUDE_FILENAME_PATTERNS |
protected org.craftercms.core.processors.ItemProcessor |
itemProcessor |
excludeFileNamePatterns, includeFileNamePatterns, searchService| Constructor and Description |
|---|
XmlFileBatchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
documentToString(org.dom4j.Document document) |
protected void |
doSingleFileUpdate(String indexId,
String siteName,
org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String path,
boolean delete,
IndexingStatus status) |
protected String |
processXml(String siteName,
org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String path) |
void |
setItemProcessor(org.craftercms.core.processors.ItemProcessor itemProcessor) |
void |
setItemProcessors(List<org.craftercms.core.processors.ItemProcessor> itemProcessors) |
include, setExcludeFileNamePatterns, setIncludeFileNamePatterns, setSearchService, updateIndexpublic static final List<String> DEFAULT_INCLUDE_FILENAME_PATTERNS
protected org.craftercms.core.processors.ItemProcessor itemProcessor
public void setItemProcessor(org.craftercms.core.processors.ItemProcessor itemProcessor)
public void setItemProcessors(List<org.craftercms.core.processors.ItemProcessor> itemProcessors)
protected void doSingleFileUpdate(String indexId, String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path, boolean delete, IndexingStatus status) throws Exception
doSingleFileUpdate in class AbstractBatchIndexerExceptionprotected String processXml(String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, String path) throws org.craftercms.core.exception.CrafterException
org.craftercms.core.exception.CrafterExceptionprotected String documentToString(org.dom4j.Document document)
Copyright © 2018 CrafterCMS. All rights reserved.