You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2016/09/02 12:25:20 UTC
[jira] [Commented] (LUCENE-3370) Support for a "SpanNotNearQuery"
[ https://issues.apache.org/jira/browse/LUCENE-3370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458380#comment-15458380 ]
Tim Allison commented on LUCENE-3370:
-------------------------------------
Was this fixed by LUCENE-5091? Can we close this?
> Support for a "SpanNotNearQuery"
> --------------------------------
>
> Key: LUCENE-3370
> URL: https://issues.apache.org/jira/browse/LUCENE-3370
> Project: Lucene - Core
> 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:
> http://www.koders.com/java/fid933A84488EBE1F3492B19DE01B2A4FC1D68DA258.aspx?s=ArrayQuery
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org