[
https://issues.apache.org/jira/browse/LUCENE-6371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577433#comment-14577433
]
Paul Elschot commented on LUCENE-6371:
--------------------------------------
It might be possible to add peekNextStartPosition() and peekNextEndPosition()
to Spans and then use those in NSO to leave the subspans at their positions,
and still detect the shortest match non lazily. With the subspans at their
matching positions the payloads could be collected easily.
That would require a peekNextPositionMethod() in PostingsEnum, and that is no
problem in Lucene50PositingsReader. However, it would still be quite a bit of
work (probably too much work) to get these extra methods implemented in all
Spans.
To make NSO iterate lazily, what else could be done after stretchToOrder() than
shrinkToAfterShortestMatch() ?
> 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: [email protected]
For additional commands, e-mail: [email protected]