lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Sewe <>
Subject Re: Lucene 4.x -> 5.x: Converting FieldValueFilter to FieldValueQuery
Date Fri, 06 Nov 2015 09:41:03 GMT
Hi Chris,

> : > The fact that you need to index doc values is related to another change in
> : > which we removed Lucene's FieldCache and now recommend to use doc values
> : > instead. Until you reindex with doc values, you can temporarily use
> : > UninvertingReader[1] to have the same behaviour as in Lucene 4.x.
> : 
> : Is indexing doc values vs. UninvertingReader a space/time tradeoff? Or
> : is the general recommendation to index doc values and only resort to an
> : UninvertingReader when a full 4.x to 5.x conversion is to costly in
> : terms of dev. hours?
> Using docValues is going to be better for almost every use case -- it adds 
> additional disk space (and some additional time spent building the index) 
> but saves a large amount of RAM + time when opening IndexSearchers.
> It is essetnailly a more efficient, on disk, version of FieldCache 
> constructed hwen building then index instead of "on the fly" the first 
> time it's used.

thank you for your explanation. Exactly what I was after.

Best wishes,


Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message