11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

information:<br />

Setting Name Type Default Description<br />

numRecordsToKeep int 100 The number of update records to keep per log<br />

maxNumLogsToKeep int 10 The maximum number of logs keep<br />

numVersionBuckets int 65536 The number of buckets used to keep track of max version values<br />

when checking for re-ordered updates; increase this value to reduce<br />

the cost of synchronizing access to version buckets during<br />

high-volume indexing, this requires (8 bytes (long) *<br />

numVersionBuckets) of heap space per <strong>Solr</strong> core.<br />

An example, to be included under in solrconfig.xml, employing the above<br />

advanced settings:<br />

<br />

${solr.ulog.dir:}<br />

500<br />

20<br />

65536<br />

<br />

Query Settings in <strong>Solr</strong>Config<br />

The settings in this section affect the way that <strong>Solr</strong> will process and respond to queries. These settings are all<br />

configured in child elements of the element in solrconfig.xml.<br />

<br />

...<br />

<br />

Topics covered in this section:<br />

Caches<br />

Query Sizing and Warming<br />

Query-Related Listeners<br />

Caches<br />

<strong>Solr</strong> caches are associated with a specific instance of an Index Searcher, a specific view of an index that doesn't<br />

change during the lifetime of that searcher. As long as that Index Searcher is being used, any items in its cache<br />

will be valid and available for reuse. Caching in <strong>Solr</strong> differs from caching in many other applications in that<br />

cached <strong>Solr</strong> objects do not expire after a time interval; instead, they remain valid for the lifetime of the Index<br />

Searcher.<br />

When a new searcher is opened, the current searcher continues servicing requests while the new one<br />

auto-warms its cache. The new searcher uses the current searcher's cache to pre-populate its own. When the<br />

new searcher is ready, it is registered as the current searcher and begins handling all new search requests. The<br />

old searcher will be closed once it has finished servicing all its requests.<br />

In <strong>Solr</strong>, there are three cache implementations: solr.search.LRUCache, solr.search.FastLRUCache, a<br />

nd solr.search.LFUCache .<br />

The acronym LRU stands for Least Recently Used. When an LRU cache fills up, the entry with the oldest<br />

last-accessed timestamp is evicted to make room for the new entry. The net effect is that entries that are<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

452

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!