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

Adrien Grand commented on LUCENE-6371:
--------------------------------------

bq. After stretchToOrder(), there is not necessarily a match.

Indeed: my idea was to have a for loop where we first advance the first spans 
to the next position, then call stretchToOrder(). Then two cases: either it 
doesn't match and the for-loop continues, or it is a match and we return. It 
will return a superset of today's matches of NearSpansOrdered.

bq. So maybe shrinkToFirstMatch() first from the first subspans to the last but 
one (instead of now shrinkToAfterShortest the other way around.)

I don't see how it would help with the eager advancing issue, ie. if you try to 
advance a sub span to minimize the distance and it goes too far, there is no 
way to go back?

> Improve Spans payload collection
> --------------------------------
>
>                 Key: LUCENE-6371
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6371
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Paul Elschot
>            Assignee: Alan Woodward
>            Priority: Minor
>             Fix For: Trunk, 5.3
>
>         Attachments: LUCENE-6371.patch, LUCENE-6371.patch, LUCENE-6371.patch, 
> LUCENE-6371.patch, LUCENE-6371.patch, LUCENE-6371.patch
>
>
> Spin off from LUCENE-6308, see the comments there from around 23 March 2015.



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

Reply via email to