A QueryParser is a Lucene class that parses a string into a tree of query objects.
A request handler in solrconfig.xml describes a Solr RequestHandler object. This object binds strings into http parameter strings. If a request handler name is "/abc" then it is called by http://localhot:8983/solr/abc but if there is no slash, the name "abc" is available when some other request handler is called. "Available" means that some other code can search for the name. In "qt=dismax", the code that searches for &qt knows that dismax is a requesthandler. (It all made sense when I started typing ...) On 9/9/09, Villemos, Gert <gert.ville...@logica.com> wrote: > > Sorry for being a bit dim, I dont understand this; > > Looking at my default configuration for SOLR, I have a request handler > named 'dismax' and request handler named 'standard' with the default="true". > I understand that I can configure the usage of this in the query using the > qt=dismax or qt=standard (... Or no qt as standard is set to default). And > if I set the 'defType=dismax' flag in the standard requesthandler then I > will use the dismax queryparser per default. This far, so good. > > 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? > > 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. > > > -- Lance Norskog goks...@gmail.com