1.Solr caches 与 Index Searcher有关,只要Index Searcher 存在,缓存中的任何items就会有效。Caching 和在solr里的普通caches不同,因为他没有失效日期,而是与Index Searcher同在。
2.Solr caches有三种实现,LRU(最小最近使用),FastLRU,LFU。
FastLRU有更快的read,但是更慢的写比着LRU。
3.Solrcache的几种设置维度。
1.field cache:结构 field name:large data structures mapping docIDS to values,应用于facet和sort。
2.document cache:应用于page 场合,缓存预测的值。
3.queryResultcache:优化策略:the unique query * the number of sort parameters * the number
of possible orders of sort
4.filterResultcache:优化策略:the unique filterkey num.
5.user cache:用户自定义缓存。HTTPcache是官方实现的clientCache,我们也可以自定义本地cache
6.improving performance: to set the firstSearcher and next seacher. fistSeacher 用来加速一个新开始的IndexSearcher,比如第一次启动Solr
next searcher 用来加速添加新索引后的查询速度。