public class SolrFacetHelper extends Object
Constructor and Description |
---|
SolrFacetHelper(List<FacetQueryProvider> facetQueryProviders)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
createFacetQueriesFromSearchQuery(String field,
String searchQuery)
Creates a facet query by trying to extract the date range from the the
search query.
|
Set<String> |
getBucketedFieldFacets()
Gets predefined set of field facets which are used to construct bucketing
|
List<String> |
getDefaultFacetQueries()
Gets the predefined set of facet queries.
|
List<String> |
getFacetQueries(String facetField)
Gets all the defined facet queries for the specified field
|
boolean |
hasFacetQueries(String facetField)
Whether the specified field is defined as a facet.query or not
|
boolean |
isSpecialFacetId(String facetId)
Is the specified facet ID part of the list of "specials" which are
handled by our SOLR service as is?
|
void |
setSpecialFacetIds(Set<String> ids) |
public SolrFacetHelper(List<FacetQueryProvider> facetQueryProviders)
public List<String> getDefaultFacetQueries()
public boolean hasFacetQueries(String facetField)
facetField
- Stringpublic List<String> getFacetQueries(String facetField)
facetField
- the requested fieldpublic Set<String> getBucketedFieldFacets()
public String createFacetQueriesFromSearchQuery(String field, String searchQuery)
public boolean isSpecialFacetId(String facetId)
Copyright © 2005–2017 Alfresco Software. All rights reserved.