Yep, it's expected. Segments are write-once. It's been a long standing design that deleted data will be reclaimed on segment merge, but not before. It's pretty expensive to change the terms loaded on the fly to respect deleted document's removed data.
Best, Erick On Wed, Nov 27, 2013 at 4:07 PM, Roman Chyla <roman.ch...@gmail.com> wrote: > Hi, > I'd like to check - there is something I don't understand about cache - and > I don't know if it is a bug, or feature > > the following calls return a cache > > FieldCache.DEFAULT.getTerms(reader, idField); > FieldCache.DEFAULT.getInts(reader, idField, false); > > > the resulting arrays *will* contain entries for deleted docs, so to filter > them out, one has to manually check livedocs. Is this the expected > behaviour? I don't understand why the cache would be bothering to load data > for deleted docs. This is on SOLR4.0 > > Thanks! > > roman >