On Wed, Jun 3, 2015 at 4:59 PM, Anton Zenkov <azen...@crimsonhexagon.com> wrote: > Reindexing. If I want to add new fields or change existing fields in the > index I need to go through all documents of the index. >
if your reindexing process needs all the docs, i dont think i can really recommend a better way. a merge reader is the correct thing, might be slower to initialize but really geared at doing just what you are doing. in general across the codec api, merge readers will avoid polluting internal caches (maybe one day OS cache too...), they expose checkIntegrity() method and other things that seem appropriate for a process like this. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org