public class BinaryFileBatchIndexer extends AbstractBatchIndexer
BatchIndexer that updates/deletes binary or structured document files (PDF,
Word, etc.) from a search index, only if their mime types match the supported mime types or if the supported mime
types map is empty.| Modifier and Type | Field and Description |
|---|---|
protected FileTypeMap |
mimeTypesMap |
protected List<String> |
supportedMimeTypes |
excludeFileNamePatterns, includeFileNamePatterns, searchService| Constructor and Description |
|---|
BinaryFileBatchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSingleFileUpdate(String indexId,
String siteName,
String rootFolder,
String fileName,
boolean delete) |
void |
setSupportedMimeTypes(List<String> supportedMimeTypes) |
doDelete, doUpdate, doUpdateFile, doUpdateFile, getIndexNameStr, getSiteBasedFileName, include, setExcludeFileNamePatterns, setIncludeFileNamePatterns, setSearchService, updateIndexprotected FileTypeMap mimeTypesMap
protected boolean doSingleFileUpdate(String indexId, String siteName, String rootFolder, String fileName, boolean delete) throws BatchIndexingException
doSingleFileUpdate in class AbstractBatchIndexerBatchIndexingExceptionCopyright © 2016 CrafterCMS. All Rights Reserved.