lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilia Sretenskii <sreten...@multivi.ru>
Subject Re: How can I pass in query request parameter at search time and know of it in my query analyzer/tokenizer?
Date Wed, 15 Oct 2014 11:46:04 GMT
You can implement your own kind of SeachHandler to pass your custom request
parameters to keep the common parameters clean.
http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java

As you can see, the SearchHandler.handleRequestBody() method just takes
expected parameters from the SolrQueryRequest request.
Your own handler can expect more parameters than those defined in the
CommonParams interface.
https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/params/CommonParams.java

These are the base classes whose extensions might be useful for the
development.
http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java
http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java

You can find more information about the request handlers and the search
components in the guide.
https://cwiki.apache.org/confluence/display/solr/RequestHandlers+and+SearchComponents+in+SolrConfig

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message