public class FacetSearchParams extends Object
facet requests
denotes the facets for which aggregated
should be done.
One can pass FacetIndexingParams
in order to tell the search code how
to read the facets information. Note that you must use the same
FacetIndexingParams
that were used for indexing.
Modifier and Type | Field and Description |
---|---|
protected List<FacetRequest> |
facetRequests |
protected FacetIndexingParams |
indexingParams |
Constructor and Description |
---|
FacetSearchParams(FacetRequest... facetRequests)
Initializes with the given
requests and default
FacetIndexingParams.ALL_PARENTS . |
FacetSearchParams(List<FacetRequest> facetRequests)
Initializes with the given
requests and default
FacetIndexingParams.ALL_PARENTS . |
FacetSearchParams(List<FacetRequest> facetRequests,
FacetIndexingParams indexingParams)
Initilizes with the given
requests and
FacetIndexingParams . |
Modifier and Type | Method and Description |
---|---|
CategoryListCache |
getCategoryListCache()
Returns the
CategoryListCache . |
FacetIndexingParams |
getFacetIndexingParams()
Returns the
FacetIndexingParams that were passed to the
constructor. |
List<FacetRequest> |
getFacetRequests()
Returns the list of
facet requests that were passed to
the constructor. |
String |
toString() |
protected final FacetIndexingParams indexingParams
protected final List<FacetRequest> facetRequests
public FacetSearchParams(FacetRequest... facetRequests)
requests
and default
FacetIndexingParams.ALL_PARENTS
. If you used a different
FacetIndexingParams
, you should use
FacetSearchParams(List, FacetIndexingParams)
.public FacetSearchParams(List<FacetRequest> facetRequests)
requests
and default
FacetIndexingParams.ALL_PARENTS
. If you used a different
FacetIndexingParams
, you should use
FacetSearchParams(List, FacetIndexingParams)
.public FacetSearchParams(List<FacetRequest> facetRequests, FacetIndexingParams indexingParams)
requests
and
FacetIndexingParams
.public CategoryListCache getCategoryListCache()
CategoryListCache
. By default returns null
, you
should override if you want to use a cache.public FacetIndexingParams getFacetIndexingParams()
FacetIndexingParams
that were passed to the
constructor.public List<FacetRequest> getFacetRequests()
facet requests
that were passed to
the constructor.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.