Class OpenSearchBinaryFileWithMetadataBatchIndexer
java.lang.Object
org.craftercms.search.metadata.impl.AbstractMetadataCollector
org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer
org.craftercms.search.opensearch.batch.OpenSearchBinaryFileWithMetadataBatchIndexer
- All Implemented Interfaces:
BatchIndexer
- Direct Known Subclasses:
AuthoringOpenSearchBinaryFileWithMetadataBatchIndexer
public class OpenSearchBinaryFileWithMetadataBatchIndexer
extends AbstractBinaryFileWithMetadataBatchIndexer
Implementation of
AbstractBinaryFileWithMetadataBatchIndexer for OpenSearch- Author:
- joseross
-
Nested Class Summary
Nested classes/interfaces inherited from class org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer
AbstractBinaryFileWithMetadataBatchIndexer.EmptyContent -
Field Summary
FieldsFields inherited from class org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer
childBinaryPathPatterns, DEFAULT_INTERNAL_NAME_FIELD_NAME, DEFAULT_LOCAL_ID_FIELD_NAME, DEFAULT_METADATA_PATH_FIELD_NAME, excludeMetadataProperties, excludePropertyPatterns, includePropertyPatterns, internalNameFieldName, itemProcessor, localIdFieldName, metadataPathFieldName, metadataPathPatterns, mimeTypesMap, referenceXPaths, remoteBinaryPathPatterns, remoteFileResolver, supportedMimeTypesFields inherited from class org.craftercms.search.metadata.impl.AbstractMetadataCollector
metadataExtractors -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchBinaryFileWithMetadataBatchIndexer(OpenSearchService searchService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDelete(String indexId, String siteName, String previousBinaryPath, UpdateStatus updateStatus) protected voiddoUpdateContent(String indexId, String siteName, String binaryPath, org.craftercms.core.service.Content content, Map<String, Object> metadata, UpdateDetail updateDetail, UpdateStatus updateStatus) protected voiddoUpdateContent(String indexId, String siteName, String binaryPath, org.springframework.core.io.Resource resource, Map<String, Object> metadata, UpdateDetail updateDetail, UpdateStatus updateStatus) protected voiddoUpdateContent(String indexId, String siteName, String binaryPath, org.springframework.core.io.Resource resource, UpdateDetail updateDetail, UpdateStatus updateStatus) protected String* Add `.keyword` to field name to search with keywordsearchBinaryPathsFromMetadataPath(String indexId, String siteName, String metadataPath) protected StringsearchMetadataPathFromBinaryPath(String indexId, String siteName, String binaryPath) Methods inherited from class org.craftercms.search.batch.impl.AbstractBinaryFileWithMetadataBatchIndexer
collectRemoteAssetMetadata, doDeletes, doUpdates, extractMetadata, extractMetadataFromChildren, getBinaryFilePaths, isChildBinary, isMetadata, isRemoteBinary, loadMetadata, setChildBinaryPathPatterns, setExcludeMetadataProperties, setExcludePropertyPatterns, setIncludePropertyPatterns, setInternalNameFieldName, setItemProcessor, setItemProcessors, setLocalIdFieldName, setMetadataPathFieldName, setMetadataPathPatterns, setReferenceXPaths, setRemoteBinaryPathPatterns, setRemoteFileResolver, setSupportedMimeTypes, shouldIncludeProperty, updateBinary, updateBinaryWithMetadata, updateIndex, updatePreviousBinariesMethods inherited from class org.craftercms.search.metadata.impl.AbstractMetadataCollector
collectMetadata, setMetadataExtractors
-
Field Details
-
searchService
OpenSearch service
-
-
Constructor Details
-
OpenSearchBinaryFileWithMetadataBatchIndexer
@ConstructorProperties("searchService") public OpenSearchBinaryFileWithMetadataBatchIndexer(OpenSearchService searchService)
-
-
Method Details
-
doDelete
protected void doDelete(String indexId, String siteName, String previousBinaryPath, UpdateStatus updateStatus) - Specified by:
doDeletein classAbstractBinaryFileWithMetadataBatchIndexer
-
searchBinaryPathsFromMetadataPath
protected List<String> searchBinaryPathsFromMetadataPath(String indexId, String siteName, String metadataPath) - Specified by:
searchBinaryPathsFromMetadataPathin classAbstractBinaryFileWithMetadataBatchIndexer
-
searchMetadataPathFromBinaryPath
protected String searchMetadataPathFromBinaryPath(String indexId, String siteName, String binaryPath) - Specified by:
searchMetadataPathFromBinaryPathin classAbstractBinaryFileWithMetadataBatchIndexer
-
doUpdateContent
protected void doUpdateContent(String indexId, String siteName, String binaryPath, org.springframework.core.io.Resource resource, Map<String, Object> metadata, UpdateDetail updateDetail, UpdateStatus updateStatus) - Specified by:
doUpdateContentin classAbstractBinaryFileWithMetadataBatchIndexer
-
doUpdateContent
protected void doUpdateContent(String indexId, String siteName, String binaryPath, org.craftercms.core.service.Content content, Map<String, Object> metadata, UpdateDetail updateDetail, UpdateStatus updateStatus) - Specified by:
doUpdateContentin classAbstractBinaryFileWithMetadataBatchIndexer
-
doUpdateContent
protected void doUpdateContent(String indexId, String siteName, String binaryPath, org.springframework.core.io.Resource resource, UpdateDetail updateDetail, UpdateStatus updateStatus) - Specified by:
doUpdateContentin classAbstractBinaryFileWithMetadataBatchIndexer
-
metadataPathFieldNameWithKeyword
* Add `.keyword` to field name to search with keyword- Returns:
- metadataPath with `.keyword` ending
-