public class CustomAttributeFacetFilter extends java.lang.Object implements RefreshListener
Modifier and Type | Field and Description |
---|---|
private SearchConfig |
config |
private int |
displayThreshold |
private static org.slf4j.Logger |
log |
Constructor and Description |
---|
CustomAttributeFacetFilter(SearchConfig config,
FileWatcher watcher) |
Modifier and Type | Method and Description |
---|---|
private int |
getDisplayThreshold() |
boolean |
isValid(SearchRequest request,
org.apache.solr.client.solrj.response.QueryResponse response,
CustomSearchFilterAttribute attribute) |
private boolean |
numProductsWithAttributeIsAboveThreshold(org.apache.solr.client.solrj.response.QueryResponse response,
CustomSearchFilterAttribute attribute) |
void |
refresh() |
private static final org.slf4j.Logger log
private final SearchConfig config
private int displayThreshold
@Inject public CustomAttributeFacetFilter(SearchConfig config, FileWatcher watcher)
public void refresh()
refresh
in interface RefreshListener
public boolean isValid(SearchRequest request, org.apache.solr.client.solrj.response.QueryResponse response, CustomSearchFilterAttribute attribute)
private boolean numProductsWithAttributeIsAboveThreshold(org.apache.solr.client.solrj.response.QueryResponse response, CustomSearchFilterAttribute attribute)
private int getDisplayThreshold()