Re: Extensibility and code reuse: SOLR vs Lucene

2014-05-20 Thread Yonik Seeley
On Tue, May 20, 2014 at 6:01 PM, Achim Domma wrote: > - I found several times code snippets like " if (collector instanceof > DelegatingCollector) { ((DelegatingCollector)collector).finish() } ". Such > code is considered bad practice in every OO language I know. Do I miss > something here? Is

Re: Extensibility and code reuse: SOLR vs Lucene

2014-05-20 Thread Joel Bernstein
Achim, Solr can be extended to plugin custom analytics. The code snippet you mention is part of the framework which enables this. Here is how you do it: 1) Create a QParserPlugin that returns a Query that extends PostFilter. 2) Then implement the PostFilter api and return a DelegatingCollector t