public class FacetSearchParams extends Object
The contained facet requests define for which facets should info be gathered.
Contained faceted indexing parameters provide required info on how to read and interpret the underlying faceted information in the search index.
Modifier and Type | Field and Description |
---|---|
protected List<FacetRequest> |
facetRequests |
protected FacetIndexingParams |
indexingParams |
Constructor and Description |
---|
FacetSearchParams()
Construct with default faceted indexing parameters.
|
FacetSearchParams(FacetIndexingParams indexingParams)
Construct with specific faceted indexing parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addFacetRequest(FacetRequest facetRequest)
Add a facet request to apply for this faceted search.
|
CategoryListCache |
getClCache() |
FacetIndexingParams |
getFacetIndexingParams()
A list of
FacetRequest objects, determining what to count. |
List<FacetRequest> |
getFacetRequests()
Parameters which controlled the indexing of facets, and which are also
needed during search.
|
void |
setClCache(CategoryListCache clCache)
Set Cached Category Lists data to be used in Faceted search.
|
String |
toString() |
protected final FacetIndexingParams indexingParams
protected final List<FacetRequest> facetRequests
public FacetSearchParams(FacetIndexingParams indexingParams)
addFacetRequest(FacetRequest)
must be called at least once
for this faceted search to find any faceted result.indexingParams
- Indexing faceted parameters which were used at indexing time.addFacetRequest(FacetRequest)
public FacetSearchParams()
addFacetRequest(FacetRequest)
must be called at least once
for this faceted search to find any faceted result.addFacetRequest(FacetRequest)
public final FacetIndexingParams getFacetIndexingParams()
FacetRequest
objects, determining what to count.
If the returned collection is empty, the faceted search will return no facet results!public final List<FacetRequest> getFacetRequests()
public void addFacetRequest(FacetRequest facetRequest)
FacetResult
sfacetRequest
- facet request to be added.public CategoryListCache getClCache()
public void setClCache(CategoryListCache clCache)
clCache
- the cldCache to set