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/06 00:39:00 UTC

[Solr Wiki] Update of "SolrCaching" by HossMan

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 HossMan:
http://wiki.apache.org/solr/SolrCaching?action=diff&rev1=28&rev2=29

Comment:
fill in details about fieldValueCache

        autowarmCount="4096"/>
  }}}
  == fieldValueCache ==
- ''This section needs completion, is there a reason it isn't documented?''.  It caches either multivalued fields or fields with multiple tokens that are faceted on.  If you don't define it in solrconfig.xml then it is generated for you with an initial size 10 and max size of 10000.
+ 
+ The fieldValueCache is similar to the low level lucene [[#fieldcache|FilterCache]] except that it supports multiple values per document (either multivalued fields or fields with multiple terms due to tokenization) 
+ 
+ This cache is [[SimpleFacetParameters#facet.method|primarily used by faceting]].
+ 
+ The "keys" of the cache are field names, and the values are [[https://lucene.apache.org/solr/api/org/apache/solr/request/UnInvertedField.html|large data structures mapping docIds to values]].
+ 
+ If the fieldValueCache is not declared in solrconfig.xml then it is generated for you automatically with an initial size 10, a max size of 10000, and no autowarming.
  
  == queryResultCache ==
  This cache stores '''ordered''' sets of document IDs — the top N results of a query ordered by some criteria.
@@ -131, +138 @@

  
  You can specify a regenerator for any of the cache types here, but !SolrIndexSearcher itself specifies the regenerators that Solr uses internally.
  
+ <<Anchor(fieldcache)>>
  == The Lucene FieldCache ==
  Lucene has a low level "FieldCache" which is used for sorting (and in some cases faceting).  This cache is not managed by Solr it has no configuration options and cannot be autowarmed -- it is initialized the first time it is used for each Searcher.