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 Chris Hostetter <ho...@fucit.org> on 2009/07/01 00:29:59 UTC

Re: dismax parsing applied to specific fields


: Date: Thu, 11 Jun 2009 16:18:01 +1200
: From: Nick Jenkin

Nick: in the example you posted, there is really no advantage to using 
something like dismax at all.  the purpose of the dismax parser is to 
search for the the input words across multiple fields with different 
weights using a DisjunctionMaxQuery.

In your example you seem to want seperate sets of words to each be 
queried against separate, individual, fields...

: author:(tolkien) AND title:(the lord of the rings)
: 
: would be something like:
: 
: dismax(author, tolkien) AND dismax(title, the lord of the rings)
	...
: I guess this can be thought of having two separate dismax
: configurations, one searching author and one searching title - and the
: intersection of the results is returned.

...any code that used dismax style parsing on a single field and 
then anded those two queries together would produce the same result as the 
standard syntax you listed above.

is this example just particularly simplistic?  can you provide some more 
examples of what it is you're hoping to achieve? .. at this point i'm not 
really understanding.


-Hoss