lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidworks.com>
Subject Re: Clear cache used by Solr
Date Fri, 07 Jun 2013 13:17:58 GMT
On Fri, Jun 7, 2013 at 7:32 AM, Erick Erickson <erickerickson@gmail.com> wrote:
> I really question whether this is valuable. Much of Solr performance
> is there explicitly because of caches

Right, and it's also the case that certain solr features are coded
with the cache in mind (i.e. they will be utilized for a single
request for things like highlighting, multi-select faceting, etc.

On Fri, Jun 7, 2013 at 3:24 AM, Varsha Rani <varsha.yadav@orkash.com> wrote:
> 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.

If you are using/testing lucene query syntax, you can just add an
additional term that doesn't match anything and then keep changing
it... that will prevent the query/filter cache from recognizing it as
the same.

q=(my big query I'm testing) aaaaab

And then next time change the "b" to a "c", etc.

Or you could explicitly tell solr not to cache it:

http://yonik.com/posts/advanced-filter-caching-in-solr/

q={!cache=false}(my big query I'm testing)

-Yonik
http://lucidworks.com

Mime
View raw message