Re: Caching Solr boost functions?

2014-02-20 Thread Chris Hostetter
: I'd like to tell Solr to cache those boost queries for the life of the : Searcher so they don't get recomputed every time. Is there any way to do : that out of the box? if the functions never change, you could just index the computed value up front and save cycles at query time -- but that's t

Re: Caching Solr boost functions?

2014-02-19 Thread Jason Hellman
Gregg, The QueryResultCache caches a sorted int array of results matching the a query. This should overlap very nicely with your desired behavior, as a hit in this cache will not perform a Lucene query nor a need to calculate score. Now, ‘for the life of the Searcher’ is the trick here. You

Caching Solr boost functions?

2014-02-18 Thread Gregg Donovan
We're testing out a new handler that uses edismax with three different "boost" functions. One has a random() function in it, so is not very cacheable, but the other two boost functions do not change from query to query. I'd like to tell Solr to cache those boost queries for the life of the Searche