You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/12/19 17:23:33 UTC

[Solr Wiki] Update of "SolrCaching" by ShawnHeisey

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrCaching" page has been changed by ShawnHeisey:
http://wiki.apache.org/solr/SolrCaching?action=diff&rev1=30&rev2=31

Comment:
Added LFUCache.  Removed ".search" from class names for caches.

  
  The ''current'' Index Searcher serves requests and when a ''new'' searcher is opened, the new one is auto-warmed while the current one is still serving external requests. When the new one is ready, it will be ''registered'' as the ''current'' searcher and will handle any new search requests.  The old searcher will be closed after all request it was servicing finish.   The current Searcher is used as the source of auto-warming. When a new searcher is opened, its caches may be prepopulated or "autowarmed" using data from caches in the old searcher.
  
- There are currently two cache implementations — solr.search.LRUCache (LRU = Least Recently Used in memory), and solr.search.FastLRUCache.
+ There are currently three cache implementations — solr.LRUCache (LRU = Least Recently Used in memory), solr.FastLRUCache, and solr.LFUCache (Least Frequenty Used).
  
- <!> [[Solr1.4]] FastLRUCache is a 1.4 feature
+ <!> [[Solr1.4]] FastLRUCache is a 1.4 feature 
+ <!> [[Solr4.0]] LFUCache is a 4.0 feature
  
  = Common Cache Configuration Parameters =
  Caching configuration is set-up in the Query section of [[SolrConfigXml|solrconfig.xml]].  For most caches, you can set the following parameters....
@@ -17, +18 @@

  == class ==
  The `SolrCache` implementation you wish to use .The available implementations are
  
-  * `solr.search.LRUCache`
+  * `solr.LRUCache`
-  * `solr.search.FastLRUCache`
+  * `solr.FastLRUCache`
+  * `solr.LFUCache`
  
- <!> [[Solr1.4]] FastLRUCache is a 1.4 feature
+ <!> [[Solr1.4]] FastLRUCache is a 1.4 feature 
+ <!> [[Solr4.0]] LFUCache is a 4.0 feature
  
  == size ==
  The maximum number of entries in the cache.