Hi,

Can anyone please let me know on how to clear caches associated with an
IndexSearcher explicitly?

In my project, I am creating a collection (say collection_1) which holds
the data for my organizations dataset. I am using filterCache,
queryResultCache and DocumentCache extensively and these are all loaded
through some EvenListeners and/or over a period of time.

Periodically, I get new dataset of organizations. For this new dataset, I
am creating a new collection (say collection_2).

Now, my client searches only on collection_2 not on collection_1 any more.
But, I am still keeping my collection_1 as a backup in SolrCloud. *Here*, I
don't want the cache to be hold by IndexSearcher of all the cores of
collection_1 any more, as no one uses this. How to clear this cache?

*Note: *I am not using my collection for real-time updates. The index is
created from bulk data and there will be only one commit on data.

Thanks,
Manohar

Reply via email to