Interface LuceneFacetHelper
- All Superinterfaces:
BusinessObject,BusinessProcessor
- All Known Implementing Classes:
BasicLuceneFacetHelper
Interface for classes that search on the Lucene index for facets.
When the application needs to create an instance that implements
LuceneFacetSearcher,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"luceneFacetSearcherImplementer" setting in the
appComponents.properties file.
The default "luceneFacetHelperImplementer" is
BasicLuceneFacetHelper.
- Author:
- David Tobey
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.BooleanQuerycreateFacetsBooleanQuery(String[] facets) org.apache.lucene.facet.search.FacetsCollectorcreateFacetsCollector(SearchList searchList) loadFacetCategoriesAndManufacturers(SearchList searchList) loadFacetManufacturersFromDatabase(Collection facetResultCollection) voidlogFacetResults(Collection facetResultCollection) performFacetSearch(org.apache.lucene.search.Query mainQuery, SearchList searchList, org.apache.lucene.search.IndexSearcher searcher) simplifyFacetResults(Collection facetResults) simplifyFacetResultsAsMap(Collection facetResults) Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Field Details
-
FACET_SEPARATOR
static final char FACET_SEPARATOR- See Also:
-
-
Method Details
-
createFacetsBooleanQuery
-
performFacetSearch
Collection performFacetSearch(org.apache.lucene.search.Query mainQuery, SearchList searchList, org.apache.lucene.search.IndexSearcher searcher) throws Exception - Throws:
Exception
-
createFacetsCollector
org.apache.lucene.facet.search.FacetsCollector createFacetsCollector(SearchList searchList) throws Exception - Throws:
Exception
-
loadFacetCategoriesAndManufacturers
- Throws:
Exception
-
loadFacetManufacturersFromDatabase
- Throws:
Exception
-
logFacetResults
-
simplifyFacetResults
-
simplifyFacetResultsAsMap
-