Lucene itself doesn't do any caching. Maybe you are thinking of Solr? The OS also does caching, so if you want a "cold" test you'll have to tell the OS to flush its IO cache in between tests. EG on Linux do "sudo echo 3 > /proc/sys/vm/drop_caches".
Mike McCandless http://blog.mikemccandless.com On Wed, Jan 2, 2013 at 10:39 AM, S L <sol.leder...@gmail.com> wrote: > I'm doing some performance testing and caching is not helpful for the tests. > Is there a way to clear lucene's query cache between rounds of tests? I've > tried restarting tomcat but that doesn't help. > > Thanks. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Is-there-a-way-to-clear-lucene-s-cache-tp4030059.html > Sent from the Lucene - General mailing list archive at Nabble.com.