On 1/23/2014 5:33 AM, Viresh Modi wrote: > i checked solrconfig.xml in solr 4.3 and solr 1.4 > In both i have checked > > *Solr 1.4::* > <requestHandler name="dismax" class="solr.SearchHandler" default="true"> > <requestHandler name="standard" class="solr.SearchHandler"> > *Solr 4.3::* > <requestHandler name="/select" class="solr.SearchHandler"> > > > so how to handle dismax query type(qt) in solr 4.3 > in solr 1.4.1 we have used qt=dismax > but solr 4.3 there is no such configuration.
Ahmet's reply is good information. Here's a little more. Only the dismax *handler* has been removed from Solr. The dismax query parser is alive and well. There is also the edismax query parser, which is probably what you should be using. You can set defType to dismax or edismax in the defaults section of any handler, or you can send the parameter with the query. A rather important change was also made to handler names. It is highly recommended that you name them starting with a forward slash. For example, if you make a handler named "/foo" then you can simply use a URL like this: http://server:port/solr/corename/foo?q=test This is why the example's main handler is now named "/select" instead of "standard" as it was in older versions. The SolrJ library now includes a method for setting the request handler: http://lucene.apache.org/solr/4_6_0/solr-solrj/org/apache/solr/client/solrj/SolrQuery.html#setRequestHandler%28java.lang.String%29 Switching handlers with the "qt" parameter is now deprecated. It is still supported if you set handleSelect="true" on the requestDispatcher config element, but it's likely this capability will disappear in Solr 5.0. https://cwiki.apache.org/confluence/display/solr/RequestDispatcher+in+SolrConfig Thanks, Shawn