lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smiley <>
Subject Re: solr 4.7 MultiFields and MultiDocValues slow
Date Tue, 15 Mar 2016 13:56:09 GMT
Basically, ideally you can do what you need to do by first iterating over
the LeafReaders and working with each there.  If you can do that, then you
don't need SlowCompositeReaderWrapper and the overhead it introduces via
its Multi* classes.  Very few tasks require SCRW.  Dumping the index to a
JSON format shouldn't require SCRW.
~ David

On Mon, Mar 7, 2016 at 4:49 AM Rahul Kumar <>

> Hello everyone,
> I am using solr 4.7.2 . I am somewhat new to solr and want to dump solr
> indexes to json format. To check for deleted docs I have used
> *Bits liveDocs = MultiFields.getLiveDocs(reader);*
> I also want to get field Boosts for all documents and for that I have used
> *NumericDocValues ndv = MultiDocValues.getNormValues(reader,
> <>());*
> *The documentation of these methods states that they are both quite
> expensive and slow *as they merge individual sub-segment readers. The doc
> recommends to write these implementations yourself. Can someone please
> explain why will my implementation be fast as I will also have to merge the
> segment readers as I want to have the info for all documents. Or Can anyone
> suggest an optimal way to implement these methods. Any help is highly
> appreciated.
> --
> Thanks and Regards
> Rahul Jha
Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker
LinkedIn: | Book:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message