[ https://issues.apache.org/jira/browse/LUCENE-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817051#comment-13817051 ]
Uwe Schindler commented on LUCENE-5327: --------------------------------------- DocValues are not really fast with MultiDocValues, because it uses a binary search to find the document ID. If you want them on the IndexReader level, use SlowCompositeReaderWrapper.wrap(yourReader), which exposes all atomic APIs on a composite reader, too. This is easier to use than MultiDocValues, because it covers more cases. There is a reason to differentiate between composite and atomic readers, so only stuff that can be done on the atomic level natively and fast should be exposed via IndexReader/CompositeReader. For everything else there are tons of wrapper APIs. By using them you know, that it might not be the fastest approach. Please close this issue as won't fix, thanks. > Expose getNumericDocValues and getBinaryDocValues at toplevel reader and > searcher levels > ---------------------------------------------------------------------------------------- > > Key: LUCENE-5327 > URL: https://issues.apache.org/jira/browse/LUCENE-5327 > Project: Lucene - Core > Issue Type: Improvement > Components: core/search > Affects Versions: 4.5 > Reporter: John Wang > Attachments: patch.diff > > > Expose NumericDocValues and BinaryDocValues in both IndexReader and > IndexSearcher apis. -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org