public class XmlFileBatchIndexer extends AbstractBatchIndexer
BatchIndexer that updates/deletes XML files from a search index.| Modifier and Type | Field and Description |
|---|---|
protected String |
charset |
static List<String> |
DEFAULT_INCLUDE_FILENAME_PATTERNS |
protected List<DocumentProcessor> |
documentProcessors |
excludeFileNamePatterns, includeFileNamePatterns, searchService| Constructor and Description |
|---|
XmlFileBatchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
documentToString(org.dom4j.Document document) |
protected boolean |
doSingleFileUpdate(String indexId,
String siteName,
String rootFolder,
String fileName,
boolean delete) |
protected org.dom4j.Document |
processDocument(org.dom4j.Document document,
File file,
String rootFolder) |
protected String |
processXml(String rootFolder,
File file) |
void |
setCharset(String charset) |
void |
setDocumentProcessors(List<DocumentProcessor> documentProcessors) |
doDelete, doUpdate, doUpdateFile, doUpdateFile, getIndexNameStr, getSiteBasedFileName, include, setExcludeFileNamePatterns, setIncludeFileNamePatterns, setSearchService, updateIndexpublic static final List<String> DEFAULT_INCLUDE_FILENAME_PATTERNS
protected List<DocumentProcessor> documentProcessors
protected String charset
public void setDocumentProcessors(List<DocumentProcessor> documentProcessors)
public void setCharset(String charset)
protected boolean doSingleFileUpdate(String indexId, String siteName, String rootFolder, String fileName, boolean delete) throws BatchIndexingException
doSingleFileUpdate in class AbstractBatchIndexerBatchIndexingExceptionprotected String processXml(String rootFolder, File file) throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionprotected org.dom4j.Document processDocument(org.dom4j.Document document,
File file,
String rootFolder)
throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionprotected String documentToString(org.dom4j.Document document)
Copyright © 2016 CrafterCMS. All Rights Reserved.