How to clear the cache in Solr?

Eric Wilson picture Eric Wilson · Feb 1, 2012 · Viewed 17.4k times · Source

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.

Answer

bubbassauro picture bubbassauro · May 15, 2013

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.