[
https://issues.apache.org/jira/browse/LUCENE-3918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564077#comment-13564077
]
Shai Erera commented on LUCENE-3918:
------------------------------------
Yeah, I see what you mean. Instead of Map<Integer,Position>, we could encode
the positions (including payload) in a stream more efficiently and then sort a
Position class which contains the docId + offset in the encoded stream. I'm
guessing we could do that using a growable DataOutput (instead of
RAMOutputStream which uses arrays of 1024 bytes) or something like that.
I think that will indeed be more efficient. Also the Map is a bit of an overkill
> Port index sorter to trunk APIs
> -------------------------------
>
> Key: LUCENE-3918
> URL: https://issues.apache.org/jira/browse/LUCENE-3918
> Project: Lucene - Core
> Issue Type: Task
> Components: modules/other
> Affects Versions: 4.0-ALPHA
> Reporter: Robert Muir
> Fix For: 4.2, 5.0
>
> Attachments: LUCENE-3918.patch
>
>
> LUCENE-2482 added an IndexSorter to 3.x, but we need to port this
> functionality to 4.0 apis.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]