How do I configure the Solr filter filterCache, firstSearcher and newSearcher?

Question 1: I'm trying to optimize my search engines in my solrconfig.xml file, and there are two different searchers that can get warm. I understand that firstSearcher only starts when the server starts. NewSearcher is created whenever you need a new search engine. It seems to me that we want the same fqs and faces to be indicated in each of them. When does it happen, when do you want them to be different?

Question 2: Is there any way to determine the impact on the start time of the search user to add fq or facet? I know that I can brute-force measure the search engine start time using fqs / facets against one without, but this is not very granular. Assuming that it will cost / benefit for an individual fq / facet, I would like to measure it so that I can decide which things are worth warming up and which are not.

Question 3: How can I effectively filterCache filter size? I have a specific set of fq that I know can suffer, about 500 of them, so it seems that I would set it to 500. However, Solr seems to use filterCache for the query results, which should be faceted. Since 90% of my requests have a edge, it looks like we will need to use the number of requests expected as the basis for the cache size. Does this sound right?

+5
source share
1 answer
  • Your understanding is correct. However, the new Searcher can be autavarmed from the latter, so there is one difference. Another thing is that since newSearcher happens to commit, if you do frequent commits, you can do significantly less work than if you start cold.

  • . , , firstSearcher, , , . - " ", .

  • , FilterCache, , ( )/8 . , 500, 100M- , 6,25G , . , , , , . , , , - . . https://issues.apache.org/jira/browse/SOLR-8171.

+2

All Articles