Hi, > - Alternatively you can use UninvertingReader from the misc module and > wrap your index reader. This "emulates" the DocValues APIs on indexes > without DocValues. Internally it uses the old FieldCache code to do this. This > has the same problems as earlier Lucene versions: Heavy heap usage and > slow uninversion of field values. To use it you must wrap every segment of > your index separately (e.g. by implementing FilterDirectoryReader) using > https://lucene.apache.org/core/5_0_0/misc/org/apache/lucene/uninverting > /UninvertingReader.html
Of course there is also the static factory UninvertingReader.wrap(DirectoryReader) to wrap any DirectoryReader for convenience. Uwe > > -----Original Message----- > > From: Torsten Krah [mailto:krah...@gmail.com] > > Sent: Monday, April 25, 2016 6:25 PM > > To: Erick Erickson <erickerick...@gmail.com> > > Cc: java-user <java-user@lucene.apache.org> > > Subject: Re: Lucene 5.0.0 - StringField and Sorting > > > > Hi Erick, > > > > i guess you've muddled the lists - this is lucenes one, not solr. I know > > how to define it in solr but that wasn't the question as i am using pure > > lucene and it did not work as expected from the javadocs there. > > > > Cheers > > > > Torsten > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org