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 |
excludePathPatterns, includePathPatterns| Constructor and Description |
|---|
BinaryFileBatchIndexer() |
| Modifier and Type | Method and Description |
|---|---|
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 boolean |
include(String path) |
void |
setSupportedMimeTypes(List<String> supportedMimeTypes) |
setExcludePathPatterns, setIncludePathPatterns, updateIndexprotected FileTypeMap mimeTypesMap
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 boolean include(String path)
include in class AbstractBatchIndexerCopyright © 2019 CrafterCMS. All rights reserved.