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
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
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
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
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
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