You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tri Nguyen <tr...@yahoo.com> on 2011/01/18 15:50:34 UTC

using dismax

Hi,
 
Maybe I'm missing something obvious.
 
I'm trying to use the dismax parser and it doesn't seem like I'm using it properly.
 
When I do this:
http://localhost:8080/solr/cs/select?q=(poi_id:3)
 
I get a row returned.
 
When I incorporate dismax and say mm=1, no results get returned.
http://localhost:8080/solr/cs/select?q=(poi_id:3)&defType=dismax&mm=1
 
What I wanted to do when I specify mm=1 is to say at least 1 query parameter matches.
 
What am I missing?
 
Thanks,
 
Tri

Re: using dismax

Posted by Markus Jelsma <ma...@openindex.io>.
Did i write wt? Oh dear. The q and w are too close =)
> Markus,
> 
> Its not wt its qt, wt for response type,
> Also qt is not for Query Parser its for Request Handler ,In solrconfig.xml
> there are many Request Handlers can be Defined using "dismax" Query Parser
> Or Using "lucene" Query Parser.
> 
> If you want to change Query parser then its "defType"  parameter for
> defining Query Parser .
> And you are right if defType=dismax ,then there must be "qf" parameter to
> be given.
> 
> -----
> Thanx:
> Grijesh

Re: using dismax

Posted by Grijesh <pi...@gmail.com>.
Markus,

Its not wt its qt, wt for response type,
Also qt is not for Query Parser its for Request Handler ,In solrconfig.xml
there are many Request Handlers can be Defined using "dismax" Query Parser
Or Using "lucene" Query Parser.

If you want to change Query parser then its "defType"  parameter for
defining Query Parser .
And you are right if defType=dismax ,then there must be "qf" parameter to be
given.

-----
Thanx:
Grijesh
-- 
View this message in context: http://lucene.472066.n3.nabble.com/using-dismax-tp2280270p2292908.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: using dismax

Posted by Markus Jelsma <ma...@openindex.io>.
Erick,

The wt parameter does not specifiy the parser but the request handler to use. 
Except the confusion between parser and request handler you're entirely right.

Cheers

On Tuesday 18 January 2011 17:37:41 Erick Erickson wrote:
> If you're trying to get to a dismax parser (named "dismax" in
> solrconfig.xml),
> you need to specify qt=dismax. NOTE: the Wiki is a bit confusing on this
> point, the fact that the dismax parser is *named* dismax in the
> solrconfig.xml
> file is coincidence, you could name it "erick" and specify qt=erick and get
> there.
> 
> Markus' comments are if you're specifying a dismax parser entirely on the
> request
> line, not getting to the one you may have defined in solrconfig.xml. Both
> are entirely
> valid ways of using dismax....
> 
> Best
> Erick
> 
> On Tue, Jan 18, 2011 at 9:50 AM, Tri Nguyen <tr...@yahoo.com> wrote:
> > Hi,
> > 
> > Maybe I'm missing something obvious.
> > 
> > I'm trying to use the dismax parser and it doesn't seem like I'm using it
> > properly.
> > 
> > When I do this:
> > http://localhost:8080/solr/cs/select?q=(poi_id:3)
> > 
> > I get a row returned.
> > 
> > When I incorporate dismax and say mm=1, no results get returned.
> > http://localhost:8080/solr/cs/select?q=(poi_id:3)&defType=dismax&mm=1
> > 
> > What I wanted to do when I specify mm=1 is to say at least 1 query
> > parameter matches.
> > 
> > What am I missing?
> > 
> > Thanks,
> > 
> > Tri

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Re: using dismax

Posted by Erick Erickson <er...@gmail.com>.
If you're trying to get to a dismax parser (named "dismax" in
solrconfig.xml),
you need to specify qt=dismax. NOTE: the Wiki is a bit confusing on this
point, the fact that the dismax parser is *named* dismax in the
solrconfig.xml
file is coincidence, you could name it "erick" and specify qt=erick and get
there.

Markus' comments are if you're specifying a dismax parser entirely on the
request
line, not getting to the one you may have defined in solrconfig.xml. Both
are entirely
valid ways of using dismax....

Best
Erick

On Tue, Jan 18, 2011 at 9:50 AM, Tri Nguyen <tr...@yahoo.com> wrote:

> Hi,
>
> Maybe I'm missing something obvious.
>
> I'm trying to use the dismax parser and it doesn't seem like I'm using it
> properly.
>
> When I do this:
> http://localhost:8080/solr/cs/select?q=(poi_id:3)
>
> I get a row returned.
>
> When I incorporate dismax and say mm=1, no results get returned.
> http://localhost:8080/solr/cs/select?q=(poi_id:3)&defType=dismax&mm=1
>
> What I wanted to do when I specify mm=1 is to say at least 1 query
> parameter matches.
>
> What am I missing?
>
> Thanks,
>
> Tri

Re: using dismax

Posted by Markus Jelsma <ma...@openindex.io>.
with dismax you must specifiy fields to query upon in the qf parameter and the 
value for which you want to search through those fields in q.

defType=lucene&q=poi_id:3

defType=dismax&q=3&qf=poi_id

See the DisMaxQParser wiki for more

On Tuesday 18 January 2011 15:50:34 Tri Nguyen wrote:
> Hi,
>  
> Maybe I'm missing something obvious.
>  
> I'm trying to use the dismax parser and it doesn't seem like I'm using it
> properly. 
> When I do this:
> http://localhost:8080/solr/cs/select?q=(poi_id:3)
>  
> I get a row returned.
>  
> When I incorporate dismax and say mm=1, no results get returned.
> http://localhost:8080/solr/cs/select?q=(poi_id:3)&defType=dismax&mm=1
>  
> What I wanted to do when I specify mm=1 is to say at least 1 query
> parameter matches. 
> What am I missing?
>  
> Thanks,
>  
> Tri

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350