You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/07/28 19:13:05 UTC

[jira] [Commented] (LUCENE-6580) Allow defined-width gaps in SpanNearQuery

    [ https://issues.apache.org/jira/browse/LUCENE-6580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644668#comment-14644668 ] 

Adrien Grand commented on LUCENE-6580:
--------------------------------------

I think we should try not to add a new method to the Spans class. Could we instead keep it contained to SpanNear? For instance maybe we could have a static utility method that either calls next until the desired position is reached, or directly jumps if the Spans are an instance of GapSpans?

> Allow defined-width gaps in SpanNearQuery
> -----------------------------------------
>
>                 Key: LUCENE-6580
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6580
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: LUCENE-6580.patch, LUCENE-6580.patch, LUCENE-6580.patch
>
>
> SpanNearQuery is not quite an exact Spans replacement for PhraseQuery at the moment, because while you can ask for an overall slop in an ordered match, you can't specify exactly where the gaps should appear.



--
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