> whether DocList can even be used for facets, No way. For sure. Overall, FacetComponent explicitly requires docset https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java#L82 and then https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L1564 https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L971 I don't recommend changing anything in this flow.
On Thu, Nov 17, 2022 at 9:05 PM Shawn Heisey <apa...@elyograg.org> wrote: > 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 > > -- Sincerely yours Mikhail Khludnev