On 1/30/2019 2:27 AM, sachin gk wrote:
To support an existing functionality we have turned the opensearcher to false. Is there a way to flush the cache programiticaly.
Executing a commit with openSearcher=true is the only way I know of without custom code.
When you commit with openSearcher set to false, it's generally much faster than with openSearcher set to true ... but any changes made to the index will not be visible to people making queries, because those will continue using the existing searcher that has no idea anything has changed.
If you're willing to write your own code, you can usually do just about anything you want. There are no guarantees that what you want will actually be beneficial ... I agree with Erick on wondering why you would try to cripple Solr in this way. Solr's caches are almost always a good thing when used appropriately.
Thanks, Shawn