[ https://issues.apache.org/jira/browse/LUCENE-6580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Woodward updated LUCENE-6580: ---------------------------------- Attachment: LUCENE-6580.patch Patch adding a SpanGapQuery that can be added as part of SpanNearQuery's constructor. This also adds a Spans.skipToPosition(int) method which GapSpans overrides to make seeking forward more efficient. One thing I don't like here is that SpanGapQuery is a top-level SpanQuery, when it only really makes sense to be used within SpanNearQuery. An alternative could be to add a builder to SpanNearQuery with an .addGap(int) method, and make SpanGapQuery a private class. > 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 > Attachments: 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org