lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trejkaz (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3370) Support for a "SpanNotNearQuery"
Date Wed, 10 Aug 2011 22:05:27 GMT


Trejkaz commented on LUCENE-3370:

That's not a bad idea.

Some care should be taken though - the padding would work more logically, so to convert from
slop (which doesn't!) you would have to add 1 to the slop value to get the padding value.

> Support for a "SpanNotNearQuery"
> --------------------------------
>                 Key: LUCENE-3370
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/search
>            Reporter: Trejkaz
> Sometimes you want to find an instance of a span which does not hit near some other span
query.  SpanNotQuery only excludes exact hits on the term, but sometimes you want to exclude
hits 1 away from the first, and other times you might want the range to be wider.
> So a SpanNotNearQuery could be useful.  
> SpanNotQuery is actually very close, and adding slop+inOrder support to it is probably
sufficient to make a SpanNotNearQuery. :)
> There appears to be one project which has done it in this fashion, although this particular
code looks like it's out of date:

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message