I'm trying to compare the performance of different Solr queries. In order to get a fair test, I want to clear the cache between queries.
How is this done? Of course, one can restart the server, I was curious if there is a quicker way.
Go to Core Admin and click Reload. When refreshed, you should see a green check mark on the "current" field. Show activity on this post. Disable all the caches from solrconfig.
The most typical way Solr uses the filterCache is to cache results of each fq search parameter, though there are some other cases as well. Subsequent queries using the same parameter filter query result in cache hits and rapid returns of results.
Solr caches are associated with a specific instance of an Index Searcher, a specific view of an index that doesn't change during the lifetime of that searcher. As long as that Index Searcher is being used, any items in its cache will be valid and available for reuse.
Solr is a search server built on top of Apache Lucene, an open source, Java-based, information retrieval library. It is designed to drive powerful document retrieval applications - wherever you need to serve data to users based on their queries, Solr can work for you.
I'm using version 4.2.1 and even with autowarmCount="0"
the cache is not updated after doing a Dataimport.
In that case, on Solr Admin (usually http://localhost:8983/
)
Go to Core Admin and click Reload. When refreshed, you should see a green check mark on the "current" field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With