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:30:20 UTC
[jira] [Commented] (LUCENE-5091) Modify SpanNotQuery to act as
SpanNotNearQuery too
[ https://issues.apache.org/jira/browse/LUCENE-5091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458396#comment-15458396 ]
Tim Allison commented on LUCENE-5091:
-------------------------------------
Oops. Looks like LUCENE-5091 was a duplicate?
> Modify SpanNotQuery to act as SpanNotNearQuery too
> --------------------------------------------------
>
> Key: LUCENE-5091
> URL: https://issues.apache.org/jira/browse/LUCENE-5091
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/search
> Affects Versions: 4.3.1
> Reporter: Tim Allison
> Assignee: David Smiley
> Priority: Minor
> Fix For: 4.5, 6.0
>
> Attachments: LUCENE-5091.patch, LUCENE-5091.patch.txt
>
>
> With very small modifications, SpanNotQuery can act as a SpanNotNearQuery.
> To find "a" but not if "b" appears 3 tokens before or 4 tokens after "a":
> new SpanNotQuery("a", "b", 3, 4)
> Original constructor still exists and calls SpanNotQuery("a", "b", 0, 0).
> Patch with tests on way.
--
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