[ 
https://issues.apache.org/jira/browse/SOLR-9800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854249#comment-15854249
 ] 

ASF subversion and git services commented on SOLR-9800:
-------------------------------------------------------

Commit be87c9b892c016e58ad981fd900e1a5024a70967 in lucene-solr's branch 
refs/heads/branch_6x from [~cpoerschke]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=be87c9b ]

SOLR-9800: Factor out FacetComponent.newSimpleFacets method. (Jonny Marks via 
Christine Poerschke)


> FacetComponent - move construction of SimpleFacets to a protected method
> ------------------------------------------------------------------------
>
>                 Key: SOLR-9800
>                 URL: https://issues.apache.org/jira/browse/SOLR-9800
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Jonny Marks
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-9800.patch
>
>
> 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:
> {code}
> 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 (...);
>       }    
>     };
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to