public class FacetManagerImpl extends Object implements FacetManager
FacetManager
implementation.Constructor and Description |
---|
FacetManagerImpl(AbstractHSQuery query) |
Modifier and Type | Method and Description |
---|---|
void |
disableFaceting(String facetingName)
Disable a facet with the given name.
|
FacetManager |
enableFaceting(FacetingRequest facetingRequest)
Enable a facet request.
|
QueryFilters |
getFacetFilters() |
FacetSelection |
getFacetGroup(String groupName)
Returns a instance of
FacetSelection instance in order to apply a disjunction of facet criteria on
the current query. |
Map<String,FacetingRequest> |
getFacetRequests() |
List<Facet> |
getFacets(String facetingName)
Returns the
Facet s for a given facet name |
void |
setFacetResults(Map<String,List<Facet>> facetResults) |
public FacetManagerImpl(AbstractHSQuery query)
public FacetManager enableFaceting(FacetingRequest facetingRequest)
FacetManager
enableFaceting
in interface FacetManager
facetingRequest
- the faceting requestthis
to allow method chainingpublic void disableFaceting(String facetingName)
FacetManager
disableFaceting
in interface FacetManager
facetingName
- the name of the facet to disable.public List<Facet> getFacets(String facetingName)
FacetManager
Facet
s for a given facet namegetFacets
in interface FacetManager
facetingName
- the facet name for which to return the facet listFacetManager.enableFaceting(org.hibernate.search.query.facet.FacetingRequest)
public FacetSelection getFacetGroup(String groupName)
FacetManager
FacetSelection
instance in order to apply a disjunction of facet criteria on
the current query.getFacetGroup
in interface FacetManager
groupName
- the name the group. If the name is unknown an empty selection group is returned. null
is not allowed.FacetSelection
for this group name if it exists., otherwise a new selection is created.public Map<String,FacetingRequest> getFacetRequests()
public QueryFilters getFacetFilters()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved