lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: discontinuous range query
Date Thu, 05 Oct 2006 05:20:02 GMT
>
> : 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 everything may match most of your documents.
>
> also keep in mind that "C" is lexigraphicaly less then "Chris" so Chris
> doesn't fall in the range [A TO C].
>

Maybe worth to notice that when combined in a wider query, the (MUST) range
part should be 'grouped', as in:
    content:camera +(price:[102 TO 104] price:[105 TO 107])




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message