On Fri, Jun 7, 2013 at 7:32 AM, Erick Erickson <erickerick...@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.ya...@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

Reply via email to