: What I dont understand is whether a requesthandler and a queryparser is : the same thing, i.e. The configuration contains a REQUESTHANDLER with : the name 'dismax', but does not contain a QUERYPARSER with the name : 'dismax'. Where does the 'dismax' queryparser come from? Do I have to : configure this extra? Or is it there per default? Or does it come from : the 'dismax' requesthandler?
Request handler *instances* only exist if they are declared in your solrconfig.xml, two differnet instances might be configured to use the same *class* but with differnet configurations. the details on which request handler *instance* is picked to process any request can be found here... http://wiki.apache.org/solr/SolrRequestHandler (look for "Handler Resolution") If the *class* of a particular instance is "solr.SearchHandler" then that instance will use the "defType" param to decide which QParserPlugin to use to parse it's query string... http://wiki.apache.org/solr/SolrPlugins (look for QParserPlugin) ...in addition to being able to register your own QParserPlugins, there are some defaults provided -- just like there are default request writers provided. (hmm.... but there doesnt' seem to be a good list of hte QParsers provided by default, hmmm ... that's anoying) Now to get to the meeat of your question: there is the solr.DisMaxRequestHandler -- which is a requestHandler class, and in your solrconfig.xml you have given an instance of this class with the name "dismax" ....*AND*.... there is the solr.DisMaxQParserPlugin -- which is a queryParser class, and by default there is an instance of that with the name "dismax" The solr.DisMaxRequestHandler is just a trivial subclass of solr.SearchHandler that does nothing by set "defType=dismax" (ie: refering to whichever QParserPlugin instance exists with the name "dismax") If you consider these examples... http://localhost:8983/select?qt=dismax&... http://localhost:8983/select?qt=standard&defType=dismax&... the first uses the requestHandler named dismax, the second uses the request handler named standard, and tells it to the defType named dismax. Those could be *very* different, but with your colrconfig.xml (and for 99% of the solrconfigurations out there) these two examples should function exactly the same. You could change your configs to make them mean : : Gert. : : : : : : : -----Original Message----- : From: kaoul....@gmail.com [mailto:kaoul....@gmail.com] On Behalf Of Erwin : Sent: Wednesday, September 09, 2009 10:55 AM : To: solr-user@lucene.apache.org : Subject: Re: Why dismax isn't the default with 1.4 and why it doesn't support fuzzy search ? : : Hi Gert, : : &qt=dismax in URL works with Solr 1.3 and 1.4 without further configuration. You are right, you should find a "dismax" query parser in solrconfig.xml by default. : : Erwin : : On Wed, Sep 9, 2009 at 7:49 AM, Villemos, Gert<gert.ville...@logica.com> wrote: : > On question to this; : > : > Do you need to explicitly configure a 'dismax' queryparser in the : > solrconfig.xml to enable this, or is a queryparser named 'dismax' : > available per default? : > : > Cheers, : > Gert. : > : > : > : > : > -----Original Message----- : > From: Chris Hostetter [mailto:hossman_luc...@fucit.org] : > Sent: Wednesday, September 02, 2009 2:44 AM : > To: solr-user@lucene.apache.org : > Subject: Re: Why dismax isn't the default with 1.4 and why it doesn't : > support fuzzy search ? : > : > : The wiki says "As of Solr 1.3, the DisMaxRequestHandler is simply : > the : > : standard request handler with the default query parser set to the : > : DisMax Query Parser (defType=dismax).". I just made a checkout of : > svn : > : and dismax doesn't seems to be the default as : : > : > that paragraph doesn't say that dismax is the "default handler" ... it : > says that using qt=dismax is the same as using qt=standard with the " : > query parser" set to be the DisMaxQueryParser (using defType=dismax) : > : > : > so doing this replacement on any URL... : > : > � �qt=dismax � => �qt=standard&defTYpe=dismax : > : > ...should produce identical results. : > : > : Secondly, I've patched solr with : > : http://issues.apache.org/jira/browse/SOLR-629 as I would like to : > have : > : fuzzy with dismax. I built it with "ant example". Now, behavior is : > : still the same, no fuzzy search with dismax (using the qt=dismax : > : parameter in GET URL). : > : > questions/discussion of uncommitted patches is best done in the Jira : > issue wherey ou found the patch ... that way it helps other people : > evaluate the patch, and the author of the patch is more likelye to see : > your feedback. : > : > : > -Hoss : > : > : > : > Please help Logica to respect the environment by not printing this email �/ Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / �Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu sch�tzen. / �Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico. : > : > : > : > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. : > : > : > : : : Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu sch�tzen. / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico. : : : : This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. : : -Hoss