Re: discontinuous range query

2006-10-05 Thread Chris Hostetter
: It's clear that my problem here comes from a lack of understanding of : the semantics of SHOULD, MUST, and MUST_NOT. : : I haven't found a clear description of this (except for a brief : comment here : http://mail-archives.apache.org/mod_mbox/lucene-java-dev/200408.mbox/[EMAIL PROTECTED]). : Mo

Re: discontinuous range query

2006-10-05 Thread Doron Cohen
I sometimes find it helpful to think of the query parts as applying 'filtering' logic, helping to understand how query components play together in determining the acceptable set of results (mostly ignoring scoring here, which would usually sort the candidate results). Consider a set of 10 douments

Re: discontinuous range query

2006-10-05 Thread Erik Hatcher
On Oct 5, 2006, at 4:59 AM, Tom Hill wrote: It's clear that my problem here comes from a lack of understanding of the semantics of SHOULD, MUST, and MUST_NOT. I haven't found a clear description of this (except for a brief comment here http://mail-archives.apache.org/mod_mbox/lucene-java-

discontinuous range query

2006-10-05 Thread Tom Hill
Hi - Thanks, Yonik, Chris and Doron for the quick responses. Doron's comment about combining the queries was the key to what was causing me problems. I had indeed been combining with other queries, which results in 'extra' results being returned. I've attached a sample program below that ill

Re: discontinuous range query

2006-10-04 Thread Doron Cohen
> > : The query you want is > : name:[A TO C] name:[G TO K] > : (each clause being SHOULD, or put another way, an implicit "OR" in between. > : > : The problem may be how you analyze the name field... is it tokenized at all? > : If so, you might be matching on first, last, and middle names, and the

Re: discontinuous range query

2006-10-04 Thread Chris Hostetter
: The query you want is : name:[A TO C] name:[G TO K] : (each clause being SHOULD, or put another way, an implicit "OR" in between. : : The problem may be how you analyze the name field... is it tokenized at all? : If so, you might be matching on first, last, and middle names, and the : combinatio

Re: discontinuous range query

2006-10-04 Thread Yonik Seeley
Hi Tom, The query you want is name:[A TO C] name:[G TO K] (each clause being SHOULD, or put another way, an implicit "OR" in between. The problem may be how you analyze the name field... is it tokenized at all? If so, you might be matching on first, last, and middle names, and the combination of

discontinuous range query

2006-10-04 Thread Tom Hill
Hi - I'm having a bit of trouble building a query to match a range of values in a field that is not continuous. For an example, say I want to find all people with last names starting with A-C, and G-K. If I use MUST on each element of the range, then I get nothing. This I think I understan