Class ObjectFacadeSolrIndexingAspect
java.lang.Object
com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
com.hybris.backoffice.solrsearch.aspects.ObjectFacadeSolrIndexingAspect
Contains logic of aspect responsible for updating solr index.
Shall be called when Backoffice
Shall be called when Backoffice
ObjectFacade performs changes
on ItemModel. This class uses underlying SolrIndexSynchronizationStrategy to perform operations on
solr index.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDetermines if solr indexing triggered for every indexed model change will be performed in non blocking operation - default: falsestatic final StringIn case when backoffice.search.reverse.category.index.lookup.enabled is set to true backoffice changes its behaviour for category-based search using explorer tree in product and assortment view. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractModels(org.aspectj.lang.JoinPoint joinPoint, Object retVal) protected SolrIndexSynchronizationStrategyprotected voidincludeRequiredProducts(org.aspectj.lang.JoinPoint joinPoint, Map<String, List<PK>> result) protected booleanprotected booleanprotected voidprotected voidremoveIndexByPk(String typecode, List<PK> pkList) voidsetSolrIndexSynchronizationStrategy(SolrIndexSynchronizationStrategy solrIndexSynchronizationStrategy) protected voidupdateIndexByPk(String typecode, List<PK> pkList) Methods inherited from class com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
executeIndexer, extractModelsWithoutArgs, findBackgroundThread, getConfigurationService, getCurrentDateMinusOneMinute, getItemModificationHistoryService, getLastModifiedProductsPK, getLastSavedValuesForProducts, getModelService, getModifiedProductsPK, setConfigurationService, setItemModificationHistoryService, setModelService, updateChanged, updateRemoved, updateRemovedForMethodParameter
-
Field Details
-
CONFIG_BACKOFFICE_SEARCH_REVERSE_CATEGORY_INDEX_LOOKUP_ENABLED
In case when backoffice.search.reverse.category.index.lookup.enabled is set to true backoffice changes its behaviour for category-based search using explorer tree in product and assortment view. Standard behaviour (the setting set to false, which is the default) each time the user selects a category its sub-tree is sent to solr to perform search using all passed categories- See Also:
-
CONFIG_BACKOFFICE_SEARCH_BACKGROUND_SOLR_INDEXING_ENABLED
Determines if solr indexing triggered for every indexed model change will be performed in non blocking operation - default: false- See Also:
-
-
Constructor Details
-
ObjectFacadeSolrIndexingAspect
public ObjectFacadeSolrIndexingAspect()
-
-
Method Details
-
extractModels
- Overrides:
extractModelsin classAbstractObjectFacadeSearchIndexingAspect
-
removeIndexByPk
- Specified by:
removeIndexByPkin classAbstractObjectFacadeSearchIndexingAspect
-
updateIndexByPk
- Specified by:
updateIndexByPkin classAbstractObjectFacadeSearchIndexingAspect
-
logDebug
- Specified by:
logDebugin classAbstractObjectFacadeSearchIndexingAspect
-
includeRequiredProducts
-
isBackgroundIndexingEnabled
protected boolean isBackgroundIndexingEnabled()- Overrides:
isBackgroundIndexingEnabledin classAbstractObjectFacadeSearchIndexingAspect
-
isReverseCategoryIndexLookupEnabled
protected boolean isReverseCategoryIndexLookupEnabled() -
extractProductsFromModifiedCategories
-
findAllProductsInSubTree
-
getProductPKsInCategory
-
getSolrIndexSynchronizationStrategy
-
setSolrIndexSynchronizationStrategy
public void setSolrIndexSynchronizationStrategy(SolrIndexSynchronizationStrategy solrIndexSynchronizationStrategy)
-