Description
This patch moves the construction of SimpleFacets from inside process() to a new protected method, allowing contrib modules to reuse FacetComponent with a different SimpleFacets implementation.
For example:
class MyFacetComponent extends FacetComponent { @Override protected SimpleFacets newSimpleFacets(SolrQueryRequest req, DocSet docSet, SolrParams params, ResponseBuilder rb) { return new SimpleFacets(req, docSet, params, rb) { @Override protected Predicate<BytesRef> newBytesRefFilter(String field, SolrParams params) { ... return new MyBytesRefFilter (...); } }; } }
Attachments
Attachments
Issue Links
- relates to
-
SOLR-9912 SimpleFacets - support facet.excludeTerms parameter
- Resolved