Class DefaultIndexerQueriesExecutor
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerQueriesExecutor
- All Implemented Interfaces:
IndexerQueriesExecutor
Default implementation of
IndexerQueriesExecutor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<PK> pks) Gets the model instances based on a list of pks.getPks(FacetSearchConfig facetSearchConfig, IndexedType indexedType, String query, Map<String, Object> queryParameters) Gets the pks of all the items that will be indexed.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetIndexerQueryContextFactory(IndexerQueryContextFactory<IndexerQueryContext> indexerQueryContextFactory)
-
Constructor Details
-
DefaultIndexerQueriesExecutor
public DefaultIndexerQueriesExecutor()
-
-
Method Details
-
getFlexibleSearchService
-
setFlexibleSearchService
-
getIndexerQueryContextFactory
-
setIndexerQueryContextFactory
public void setIndexerQueryContextFactory(IndexerQueryContextFactory<IndexerQueryContext> indexerQueryContextFactory) -
getPks
public List<PK> getPks(FacetSearchConfig facetSearchConfig, IndexedType indexedType, String query, Map<String, Object> queryParameters) throws IndexerExceptionDescription copied from interface:IndexerQueriesExecutorGets the pks of all the items that will be indexed. The query will be run in the context of the current session user.- Specified by:
getPksin interfaceIndexerQueriesExecutor- Parameters:
facetSearchConfig- - the facet search configurationindexedType- - the indexed typequery- - a string representing the queryqueryParameters- - the parameters for the query- Returns:
- the list of pks that represent the items to be indexed
- Throws:
IndexerException- in case of error
-
getItems
public List<ItemModel> getItems(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<PK> pks) throws IndexerException Description copied from interface:IndexerQueriesExecutorGets the model instances based on a list of pks. The pks list passed as parameter is normally just a subset of all the items that will be indexed. The query will be run in the context of the current session user- Specified by:
getItemsin interfaceIndexerQueriesExecutor- Parameters:
facetSearchConfig- - the facet search configurationindexedType- - the indexed typepks- - the list of pks- Returns:
- the list of items to be indexed
- Throws:
IndexerException- in case of error
-