I'd also ask why you care? What benefit do you think you'd get if you did explicitly flush the document cache?
You seem to think there's some benefit to programmatically flushing the cache, but you haven't stated what that benefit is. I suspect that you are making some assumptions that are not true and that this is a waste of effort. Best, Erick On Wed, Jan 30, 2019 at 9:46 AM Walter Underwood <wun...@wunderwood.org> wrote: > > You don’t need to do that. When there is a commit, Solr creates a new Searcher > with an empty document cache. > > wunder > Walter Underwood > wun...@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > > On Jan 29, 2019, at 10:27 PM, sachin gk <gksachi...@gmail.com> wrote: > > > > Hi All, > > > > Is there a way to clear the *document cache* after we commit to the indexer. > > > > -- > > Regards, > > Sachin >