public class XmlFileBatchIndexer extends AbstractBatchIndexer
BatchIndexer that updates/deletes XML files from a search index.| Modifier and Type | Class and Description |
|---|---|
static class |
XmlFileBatchIndexer.EmptyContent |
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DEFAULT_INCLUDE_FILENAME_PATTERNS |
protected org.craftercms.core.processors.ItemProcessor |
itemProcessor |
excludePathPatterns, includePathPatterns| Constructor and Description |
|---|
XmlFileBatchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
documentToString(org.dom4j.Document document) |
protected void |
doSingleFileUpdate(org.craftercms.search.service.SearchService searchService,
String indexId,
String siteName,
org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String path,
boolean delete,
UpdateStatus updateStatus) |
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, setExcludePathPatterns, setIncludePathPatterns, 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(org.craftercms.search.service.SearchService searchService,
String indexId,
String siteName,
org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String path,
boolean delete,
UpdateStatus updateStatus)
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 © 2019 CrafterCMS. All rights reserved.