[
https://issues.apache.org/jira/browse/LUCENE-4752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598200#comment-13598200
]
Shai Erera commented on LUCENE-4752:
------------------------------------
I traced the code and it seems like OneMerge holds the list of
SegInfoPerCommit, and IW is the one that populates OneMerge.readers list by
using its readersPool, which in turn opens a SegmentReader. I think that
SegmentMerger is therefore the right entry point -- the SortingSegmentMerger
will accumulate the readers in add(SegmentReader) and open a
SortingAtomicReader over a MultiReader of all SegReaders... what do you think?
> Merge segments to sort them
> ---------------------------
>
> Key: LUCENE-4752
> URL: https://issues.apache.org/jira/browse/LUCENE-4752
> Project: Lucene - Core
> Issue Type: New Feature
> Components: core/index
> Reporter: David Smiley
> Assignee: Adrien Grand
>
> It would be awesome if Lucene could write the documents out in a segment
> based on a configurable order. This of course applies to merging segments
> to. The benefit is increased locality on disk of documents that are likely to
> be accessed together. This often applies to documents near each other in
> time, but also spatially.
--
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]