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 configuration you want (either using 
the "components" <arr> or by specifying it as a "first-components"...

https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig

: 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 dont want to touch solr source code, all I want is to add code(like
: plugin). if i understand it right I want to write my own search handler , do
: some logic , then pass the data to solr default search handler.




-Hoss
http://www.lucidworks.com/

Reply via email to