11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

document IDs are transient, this cache is not auto-warmed. The size for the documentCache should always be<br />

greater than max_results times the max_concurrent_queries, to ensure that <strong>Solr</strong> does not need to refetch<br />

a document during a request. The more fields you store in your documents, the higher the memory usage of this<br />

cache will be.<br />

<br />

User Defined Caches<br />

You can also define named caches for your own application code to use. You can locate and use your cache<br />

object by name by calling the <strong>Solr</strong>IndexSearcher methods getCache() , cacheLookup() and cacheInse<br />

rt().<br />

<br />

If you want auto-warming of your cache, include a regenerator attribute with the fully qualified name of a class<br />

that implements solr.search.CacheRegenerator. You can also use the NoOpRegenerator, which simply<br />

repopulates the cache with old items. Define it with the regenerator parameter as:<br />

regenerator="solr.NoOpRegenerator".<br />

Query Sizing and Warming<br />

maxBooleanClauses<br />

This sets the maximum number of clauses allowed in a boolean query. This can affect range or prefix queries<br />

that expand to a query with a large number of boolean terms. If this limit is exceeded, an exception is thrown.<br />

1024<br />

This option modifies a global property that effects all <strong>Solr</strong> cores. If multiple solrconfig.xml files<br />

disagree on this property, the value at any point in time will be based on the last <strong>Solr</strong> core that was<br />

initialized.<br />

enableLazyFieldLoading<br />

If this parameter is set to true, then fields that are not directly requested will be loaded lazily as needed. This can<br />

boost performance if the most common queries only need a small subset of fields, especially if infrequently<br />

accessed fields are large in size.<br />

true<br />

useFilterForSortedQuery<br />

This parameter configures <strong>Solr</strong> to use a filter to satisfy a search. If the requested sort does not include "score",<br />

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

454

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

Saved successfully!

Ooh no, something went wrong!