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

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

When I read the issue description, I thought this would make SpanNearQuery more 
similar to PhraseQuery but it seems to work differently?

For instance if you search for the "quick ? ? fox" phrase query with a slop of 
2, a document containing "quick fox" will match thanks to the slop. However in 
this Spans implementation, it looks like the gap is required regardless of the 
slop since NearSpansOrdered ensures that the start position of a spans is 
greater than the position of the previous span?

> 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, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to