[
https://issues.apache.org/jira/browse/LUCENE-761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Busch updated LUCENE-761:
---------------------------------
Attachment: lucene-761.patch
Here is the simple patch. All unit tests pass. I'll commit this soon if nobody
objects...
> Clone proxStream lazily in SegmentTermPositions
> -----------------------------------------------
>
> Key: LUCENE-761
> URL: https://issues.apache.org/jira/browse/LUCENE-761
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Michael Busch
> Assigned To: Michael Busch
> Priority: Minor
> Attachments: lucene-761.patch
>
>
> In SegmentTermPositions the proxStream should be cloned lazily, i. e. at the
> first time nextPosition() is called. Then the initialization costs of
> TermPositions are not higher anymore compared to TermDocs and thus there is
> no reason anymore for Scorers to use TermDocs instead of TermPositions. In
> fact, all Scorers should use TermPositions, because custom subclasses of
> existing scorers might want to access payloads, which is only possible via
> TermPositions. We could further merge SegmentTermDocs and
> SegmentTermPositions into one class and deprecate the interface TermDocs.
> I'm going to attach a patch once the payloads feature (LUCENE-755) is
> committed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]