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 YonikSeeley: http://wiki.apache.org/solr/SolrCaching?action=diff&rev1=26&rev2=27 Comment: correct filterCache use, add cache=false Below we present the cache-specific parts of the solrconfig.xml file and its recommended settings: == filterCache == + This cache stores unordered sets of document IDs that match the key (usually queries). There are a number of scenarios where the filterCache may be used: - This cache stores '''unordered''' sets of document IDs. This cache can be for three different purposes: - - First, the filter cache stores the results of any filter queries ("fq" parameters) that Solr is explicitly asked to execute. (Each filter is executed and cached separately. When it's time to use them to limit the number of results returned by a query, this is done using set intersections.) + * The filter cache stores the results of any filter queries ("fq" parameters) that Solr is explicitly asked to execute. (Each filter is executed and cached separately. When it's time to use them to limit the number of results returned by a query, this is done using set intersections.) - - Second, the filter cache is used for faceting in some cases. (In particular, when {{{facet.method=enum}}}, a filterCache entry is added for each term tested.) + * The filter cache is used for faceting in some cases. (In particular, when {{{facet.method=enum}}}, a filterCache entry is added for each term tested.) - - Finally, the filter cache may be used for sorting if the <useFilterForSortedQuery/> config option is set to true in solfconfig.xml. + * The filter cache may be used for sorting if the <useFilterForSortedQuery/> config option is set to true in solfconfig.xml. + * The filter cache is generally used in other places whenever the complete set of documents that match a query is required, such as {{{facet.query}}} and {{{group.query}}} commands. + + <!> [[Solr3.4]] Adding the localParam flag of {{{{!cache=false}}}} to a query will prevent the filterCache from being consulted for that query. If you use {{{facet.method=enum}}} (see SolrFacetingOverview), it is recommended that you set the filterCache size to be greater than the number of unique values in all of your faceted fields. @@ -73, +73 @@ autowarmCount="4096"/> }}} == queryResultCache == - This cache stores '''ordered''' sets of document IDs — results of a query ordered by some criteria. + This cache stores '''ordered''' sets of document IDs — the top N results of a query ordered by some criteria. The memory usage for the queryResultCache is significantly less than that of the filterCache because it only stores document IDs that were returned to the user by the query.
