Re: Chaining plugins

2014-01-02 Thread elmerfudd
If I want to do it? do i have to work with the source code version of solr? if so, where is the default search handler located? -- View this message in context: http://lucene.472066.n3.nabble.com/Chaining-plugins-tp4108239p4109102.html Sent from the Solr - User mailing list archive at Nabble.co

Re: Chaining plugins

2013-12-31 Thread Liu Bo
Hi I've done similar things as paul. what I do is extending the default QueryComponent and overwrite the preparing method, then I just change the solrparams according to our logic and then call super.prepare(). Then replace the default QueryComponent with it in my search/query handler. In this

Re: Chaining plugins

2013-12-30 Thread Chris Hostetter
You don't need to write your own handler. See the previpous comment about implementing a SearchComponent -- you can check for the params in your prepare() method and do whatever side effects you want, then register your custom component and hook it into the component chain of whatever handler

Re: Chaining plugins

2013-12-30 Thread elmerfudd
I will make it clear. I want to save the query into a file when a user is changing a parameter in the query, lets say he adds "logTofile=1" then the searchHandler will provide the same result as without this parameter, but in the background it will do some logic(ex. save the query to file) . But I

Re: Chaining plugins

2013-12-26 Thread Kydryavtsev Andrey
If I get elmer fudd's question correct, he needs something like creating his own component which will extends SearchComponent and do some logic in prepare method - change input request params probably. Then register this component in solrconfig and set it's for default search handler just before

Re: Chaining plugins

2013-12-26 Thread Paul Libbrecht
I have subclassed the query component to do so. Using params, you can get almost everything thinkable that is not too much documented. paul On 26 déc. 2013, at 15:59, elmerfudd wrote: > I would like to develope a search handler that is doing some logic and then > just sends the query to the de