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
Re: dismax parsing applied to specific fields
Nick Jenkin schrieb: Hi I was wondering if there is a way of applying dismax parsing to specific fields, where there are multiple fields being searched - all with different query values e.g. 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. http://wiki.apache.org/solr/DisMaxRequestHandler This says that the DisMaxRequestHandler is simply the standard request handler with the default query parser set to the DisMax Query Parser. So maybe you could program your own CustomDisMaxRequestHandler that reuses the DisMax query parser (and probably other components) to achieve what you want. Michael Ludwig
dismax parsing applied to specific fields
Hi I was wondering if there is a way of applying dismax parsing to specific fields, where there are multiple fields being searched - all with different query values e.g. 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. Thanks -Nick