You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Mike Baranczak <MB...@ePublishing.com> on 2006/05/24 03:46:37 UTC

Re: patch to allow the use of a custom query output writer

This information is already being logged.


On May 23, 2006, at 8:29 PM, maustin75 wrote:

> Would it be possible to create an init method for the  
> QueryResponseWriter interface and call it when the custom  
> XMLResponse is loaded.  This will help so we can log and show which  
> is loaded similar to the Handlers.
>

Re: patch to allow the use of a custom query output writer

Posted by Yonik Seeley <ys...@gmail.com>.
On 5/23/06, Chris Hostetter <ho...@fucit.org> wrote:
> there is something to be said for adding an init(NamedList) to the
> QueryResponseWriter API and calling it with any options from
> solrconfig.xml similar to what's currently done in the RequestHandlers
> class.

+1 (even though we are essentially doing our own poor-man's spring/hivemind)


-Yonik

Re: patch to allow the use of a custom query output writer

Posted by Chris Hostetter <ho...@fucit.org>.
the specific case of logging the writers is probably best let to the code
loading the writers (as it is currently in the SOLR-16 patch) but there is
something to be said for adding an init(NamedList) to the
QueryResponseWriter API and calling it with any options from
solrconfig.xml similar to what's currently done in the RequestHandlers
class.

Perhaps RequestHandlers could be generalized so it's reusable for
RequestHandlers as well as QueryResponseWriters ?

I don't think it's important enough to hold up SOLR-16, but i think
it would definitely be a "nice to have" down the road.



-Hoss