lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Lucene 5.0.0 - StringField and Sorting
Date Mon, 25 Apr 2016 18:11:24 GMT

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.tm@gmail.com]
> > Sent: Monday, April 25, 2016 6:25 PM
> > To: Erick Erickson <erickerickson@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-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message