Class ElasticsearchIndexingProcessor
- java.lang.Object
-
- org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
-
- org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
-
- org.craftercms.deployer.impl.processors.AbstractSearchIndexingProcessor
-
- org.craftercms.deployer.impl.processors.elasticsearch.ElasticsearchIndexingProcessor
-
- All Implemented Interfaces:
DeploymentProcessor
,InitializableByConfigBean
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
public class ElasticsearchIndexingProcessor extends AbstractSearchIndexingProcessor
Implementation ofAbstractSearchIndexingProcessor
for Elasticsearch- Since:
- 3.1.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.craftercms.search.elasticsearch.ElasticsearchAdminService
elasticsearchAdminService
protected org.craftercms.search.elasticsearch.ElasticsearchService
elasticsearchService
protected String
includedDescriptorsFieldName
protected String
inheritsFromFieldName
protected String
localIdFieldName
protected String
metadataPathFieldName
-
Fields inherited from class org.craftercms.deployer.impl.processors.AbstractSearchIndexingProcessor
batchIndexers, cacheTemplate, componentPathPattern, contentStoreService, contextFactory, CREATE_INDEX_IF_MISSING_CONFIG_KEY, createIndexIfMissing, DEFAULT_COMPONENT_PATH_PATTERN, DEFAULT_DESCRIPTOR_PATH_PATTERN, DEFAULT_ITEMS_THAT_INCLUDE_COMPONENT_QUERY_ROWS, descriptorPathPattern, IGNORE_INDEX_ID_CONFIG_KEY, INDEX_ID_CONFIG_KEY, indexId, indexIdFormat, itemsThatIncludeComponentQueryRows, REINDEX_ITEMS_ON_COMPONENT_UPDATES, reindexItemsOnComponentUpdates, xmlFlatteningEnabled
-
Fields inherited from class org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
FAIL_DEPLOYMENT_CONFIG_KEY, failDeploymentOnFailure
-
Fields inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
alwaysRun, env, excludeFiles, includeFiles, JUMPING_TO_PARAM_NAME, jumpTo, label, name, siteName, targetId
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchIndexingProcessor(org.craftercms.search.elasticsearch.ElasticsearchService elasticsearchService, org.craftercms.search.elasticsearch.ElasticsearchAdminService elasticsearchAdminService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doCommit(String indexId)
protected void
doCreateIndexIfMissing(Target target)
protected List<String>
getItemsThatIncludeComponent(String indexId, String componentPath)
protected List<String>
getItemsThatInheritDescriptor(String indexId, String descriptorPath)
-
Methods inherited from class org.craftercms.deployer.impl.processors.AbstractSearchIndexingProcessor
addAffectedItemsToUpdatedFiles, addItemsThatIncludeComponentToUpdatedFiles, addItemsThatInheritFromDescriptorToUpdatedFiles, doDestroy, doInit, doMainProcess, execute, getFilteredChangeSet, isBeingUpdatedOrDeleted, isComponent, isDescriptor, setBatchIndexer, setBatchIndexers, setCacheTemplate, setComponentPathRegex, setContentStoreService, setContextFactory, setDescriptorPathRegex, setIndexIdFormat, setItemsThatIncludeComponentQueryRows, setXmlFlatteningEnabled, supportsMode
-
Methods inherited from class org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
doExecute, failDeploymentOnProcessorFailure, init, shouldExecute
-
Methods inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
destroy, isJumpToActive, isPostDeployment, setBeanName, setEnv, setSiteName, setTargetId, shouldIncludeFile, startJumpTo
-
-
-
-
Field Detail
-
localIdFieldName
protected String localIdFieldName
-
inheritsFromFieldName
protected String inheritsFromFieldName
-
includedDescriptorsFieldName
protected String includedDescriptorsFieldName
-
metadataPathFieldName
protected String metadataPathFieldName
-
elasticsearchService
protected org.craftercms.search.elasticsearch.ElasticsearchService elasticsearchService
-
elasticsearchAdminService
protected org.craftercms.search.elasticsearch.ElasticsearchAdminService elasticsearchAdminService
-
-
Constructor Detail
-
ElasticsearchIndexingProcessor
@ConstructorProperties({"elasticsearchService","elasticsearchAdminService"}) public ElasticsearchIndexingProcessor(org.craftercms.search.elasticsearch.ElasticsearchService elasticsearchService, org.craftercms.search.elasticsearch.ElasticsearchAdminService elasticsearchAdminService)
-
-
Method Detail
-
doCreateIndexIfMissing
protected void doCreateIndexIfMissing(Target target)
- Specified by:
doCreateIndexIfMissing
in classAbstractSearchIndexingProcessor
-
doCommit
protected void doCommit(String indexId)
- Specified by:
doCommit
in classAbstractSearchIndexingProcessor
-
getItemsThatInheritDescriptor
protected List<String> getItemsThatInheritDescriptor(String indexId, String descriptorPath)
- Specified by:
getItemsThatInheritDescriptor
in classAbstractSearchIndexingProcessor
-
getItemsThatIncludeComponent
protected List<String> getItemsThatIncludeComponent(String indexId, String componentPath)
- Specified by:
getItemsThatIncludeComponent
in classAbstractSearchIndexingProcessor
-
-