lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Golombek" <>
Subject RE: Adding support for NOT NEAR construct?
Date Wed, 17 Oct 2007 19:28:33 GMT
From: Paul Elschot
> One can use SpanNotQuery to get NOT NEAR by using this generalized
> structure:
> SpanNot(foo, SpanNear(foo, bar, distance))
> This also allows for example:
> SpanNot(two, SpanNear(one, three, distance))
> Btw. I don't know of any query language that has this second form.
> AND NOT normally does not work for this because it works on doc level
> and not within the matching text of a field.

Ah, very cool, I hadn't thought about that. Thanks!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message