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
Searcher so they don't get recomputed every time. Is there any way to do
that out of the box?

In a different custom QParser we have we wrote a CachingValueSource that
wrapped a ValueSource with a custom ValueSource cache. Would it make sense
to implement that as a standard Solr function so that one could do:

boost=cache(expensiveFunctionQuery())

Thanks.

--Gregg

Reply via email to