On 11/17/22 08:45, Andy Lester wrote:
Short of that, wouldn't it make sense for facets to put the q in the queryResultsCache, not the filterCache?
The queryResultCache is defined as <QueryResultKey,DocList> ... very different from the <Query,DocSet> that filterCache uses. I have no idea whether DocList can even be used for facets, but it is likely that DocSet is faster and more directly applicable. Because filterCache was already available, a choice was probably made to just use that rather than introduce a whole new cache.
That decision is a bad one for your use case. Having a separate facetCache seems like a very good thing for your use case and probably would be generally helpful for overall performance in a variety of use cases.
That part of Solr code is very unfamiliar to me, I wouldn't have any idea where to begin or what to do for implementing facetCache. I would tackle it if I knew how.
Thanks, Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org For additional commands, e-mail: dev-h...@solr.apache.org