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 void |
doSingleFileUpdate(String indexId,
String siteName,
org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String path,
boolean delete,
IndexingStatus status) |
void |
setSupportedMimeTypes(List<String> supportedMimeTypes) |
doDelete, doUpdate, doUpdateContent, doUpdateContent, getIndexNameStr, getSiteBasedPath, include, setExcludeFileNamePatterns, setIncludeFileNamePatterns, setSearchService, updateIndexprotected FileTypeMap mimeTypesMap
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 AbstractBatchIndexerExceptionCopyright © 2017 CrafterCMS. All Rights Reserved.