class NoveltyFacetFactoryImpl extends java.lang.Object implements NoveltyFacetFactory
Modifier and Type | Field and Description |
---|---|
private static Facet |
NOVELTY_FACET_NO_MATCHES |
private static java.lang.String |
NOVELTY_FIELD |
private static java.lang.String |
TRUE |
private static java.lang.String |
TRUE_VALUE |
NOVELTY_ATTRNAME
Constructor and Description |
---|
NoveltyFacetFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
private Facet |
createNoveltyFacet(boolean noveltyFilterEnabled,
int matches) |
Facet |
get(org.apache.solr.client.solrj.response.QueryResponse response,
SearchRequest request) |
private int |
getNewProductMatches(org.apache.solr.client.solrj.response.QueryResponse response) |
private static Facet |
initFacetWithoutMatches() |
private boolean |
isFacetIncludable(boolean noveltyFilterEnabled,
int newProductMatches) |
private boolean |
noveltyFilterIsEnabled(SearchRequest request) |
private static final java.lang.String NOVELTY_FIELD
private static final java.lang.String TRUE_VALUE
private static final java.lang.String TRUE
private static final Facet NOVELTY_FACET_NO_MATCHES
private static Facet initFacetWithoutMatches()
public Facet get(org.apache.solr.client.solrj.response.QueryResponse response, SearchRequest request)
get
in interface NoveltyFacetFactory
private boolean isFacetIncludable(boolean noveltyFilterEnabled, int newProductMatches)
private boolean noveltyFilterIsEnabled(SearchRequest request)
private int getNewProductMatches(org.apache.solr.client.solrj.response.QueryResponse response)
private Facet createNoveltyFacet(boolean noveltyFilterEnabled, int matches)