Class DefaultFlexibleSearchQuerySpecFactory
java.lang.Object
de.hybris.platform.solrfacetsearch.config.factories.impl.DefaultFlexibleSearchQuerySpecFactory
- All Implemented Interfaces:
FlexibleSearchQuerySpecFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class DefaultFlexibleSearchQuerySpecFactory
extends Object
implements FlexibleSearchQuerySpecFactory, org.springframework.beans.factory.BeanFactoryAware
Default implementation of
FlexibleSearchQuerySpecFactory.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIndexQuery(IndexedTypeFlexibleSearchQuery indexTypeFlexibleSearchQueryData, IndexedType indexedType, FacetSearchConfig facetSearchConfig) Creates instance ofFlexibleSearchQuerySpecbased on theIndexedTypeFlexibleSearchQueryprotected Dateprotected Dateprotected DategetLastIndexTime(FacetSearchConfig facetSearchConfig, IndexedType indexedType) protected voidpopulateParametersByProvider(String parameterProviderId, Map<String, Object> parameters, IndexedType indexedType, IndexConfig indexConfig) protected voidpopulateRuntimeParameters(IndexedTypeFlexibleSearchQuery indexTypeFlexibleSearchQueryData, IndexedType indexedType, FacetSearchConfig facetSearchConfig) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetIndexOperationService(SolrIndexOperationService indexOperationService) voidsetIndexService(SolrIndexService indexService) voidsetTimeService(TimeService timeService)
-
Field Details
-
CURRENTDATE
- See Also:
-
CURRENTTIME
- See Also:
-
LASTINDEXTIME
- See Also:
-
-
Constructor Details
-
DefaultFlexibleSearchQuerySpecFactory
public DefaultFlexibleSearchQuerySpecFactory()
-
-
Method Details
-
createIndexQuery
public FlexibleSearchQuerySpec createIndexQuery(IndexedTypeFlexibleSearchQuery indexTypeFlexibleSearchQueryData, IndexedType indexedType, FacetSearchConfig facetSearchConfig) throws SolrServiceException Description copied from interface:FlexibleSearchQuerySpecFactoryCreates instance ofFlexibleSearchQuerySpecbased on theIndexedTypeFlexibleSearchQuery- Specified by:
createIndexQueryin interfaceFlexibleSearchQuerySpecFactory- Throws:
SolrServiceException
-
populateRuntimeParameters
protected void populateRuntimeParameters(IndexedTypeFlexibleSearchQuery indexTypeFlexibleSearchQueryData, IndexedType indexedType, FacetSearchConfig facetSearchConfig) throws SolrServiceException - Throws:
SolrServiceException
-
populateParametersByProvider
protected void populateParametersByProvider(String parameterProviderId, Map<String, Object> parameters, IndexedType indexedType, IndexConfig indexConfig) -
setTimeService
-
getLastIndexTime
protected Date getLastIndexTime(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws SolrServiceException - Throws:
SolrServiceException
-
getCurrentDate
-
getCurrentTime
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
-
getIndexService
-
setIndexService
-
setIndexOperationService
-
getIndexOperationService
-