final class CustomCommonFacetValuesBuilder extends java.lang.Object implements CustomFacetValuesBuilder
Modifier and Type | Field and Description |
---|---|
private int |
facetValueLimit |
Constructor and Description |
---|
CustomCommonFacetValuesBuilder(SearchConfig config) |
Modifier and Type | Method and Description |
---|---|
private void |
addNotMatchingValues(java.util.List<FacetValue> values,
SearchRequest request,
java.lang.String field,
CustomSearchFilterAttribute attribute) |
private FacetValue |
createFacetValue(java.lang.String name,
java.lang.String field,
CustomSearchFilterAttribute attribute) |
private FacetValue |
createFacetValue(java.lang.String name,
java.lang.String field,
int matches,
CustomSearchFilterAttribute attribute) |
protected FacetValue |
createNotMatchingValue(java.lang.String filter,
java.lang.String field,
CustomSearchFilterAttribute attribute) |
private boolean |
filterMatches(java.util.List<FacetValue> values,
java.lang.String filter) |
java.util.List<FacetValue> |
getFacetValues(org.apache.solr.client.solrj.response.QueryResponse response,
SearchRequest request,
CustomSearchFilterAttribute attribute) |
CustomSearchFilterAttributeType |
getType() |
@Inject public CustomCommonFacetValuesBuilder(SearchConfig config)
public java.util.List<FacetValue> getFacetValues(org.apache.solr.client.solrj.response.QueryResponse response, SearchRequest request, CustomSearchFilterAttribute attribute)
getFacetValues
in interface CustomFacetValuesBuilder
private FacetValue createFacetValue(java.lang.String name, java.lang.String field, CustomSearchFilterAttribute attribute)
private FacetValue createFacetValue(java.lang.String name, java.lang.String field, int matches, CustomSearchFilterAttribute attribute)
private void addNotMatchingValues(java.util.List<FacetValue> values, SearchRequest request, java.lang.String field, CustomSearchFilterAttribute attribute)
private boolean filterMatches(java.util.List<FacetValue> values, java.lang.String filter)
protected FacetValue createNotMatchingValue(java.lang.String filter, java.lang.String field, CustomSearchFilterAttribute attribute)
public CustomSearchFilterAttributeType getType()
getType
in interface CustomFacetValuesBuilder