lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Maxwell" <>
Subject Re: Subset match query?
Date Wed, 03 Oct 2007 21:30:12 GMT
I understand how that recommendation could potentially cover fields with
undesired terms mixed in with the desired terms.  I fail to see that it
covers the case where the undesired term(s) are last, i.e. "desired desired
undesired."  Could you please elaborate?  Thanks!


On 10/3/07, Chris Hostetter <> wrote:
> A typical solution to problems in this "space" is to index marker terms to
> denote boundaries in the term sequence ... in combination with things
> like SpanNear and SpanNot, this can be used to make queries like "these
> 5 words must be in the same sentence"
> in your specific example however, where you want to match the entire
> sequence of terms for a doc in a specific field, i don't think you need
> any special indexing tricks ... you could probably just use a
> SpanFirst query containing a SpanNear query right? ...
> the key being that the end value of the SpanFirstQuery should be the same
> as the number of lcauses in the SpanNearQuery.
> -Hoss
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message