XML Configuration Reference : Search : TimeBasedSearchCache
 
TimeBasedSearchCache
com.exalead.mercury.mami.search.v20.TimeBasedSearchCache
The elements of this cache are evicted based on time policy. They are not evicted each time a new generation of the index is available. Therefore, this cache can contain stale data. Warmup queries are refreshed before their cache expiry
Parent elements:
com.exalead.mercury.mami.search.v20.SearchCommand (as SearchCommand)
Attributes:
Name
Type
Default value
Description
name
string
warmupWorkRatio
double
1.0
Maximum ratio of time each warm-up thread will work.
warmupThreads
int
2
Maximum number of threads for warmup
cacheQueries
boolean
True
Should this cache handle caching of incoming queries. If this is false, only warmup queries will be cached. Incoming queries with the "cache=no" argument will never be cached. Incoming queries with the "cache=force:1" argument will override this setting. Incoming queries with the "cache=evict" argument will evict the query from all caches if possible.
maxCachedQueries
int
1000
Maximum number of queries to cache. Additional queries are evicted using a LRU algorithm.
ignoreFromCacheKey
string
cache,user_id,userquery_id,usersession_id
List of url query parameters to ignore from the cache key construction. Separate each field with a come ",".
expiryTimeS
int
3600
Expiry time for queries in the cache
Nested elements:
Name
Type
Description
WarmUpQuery
com.exalead.mercury.mami.search.v20.WarmUpQuery*
Queries that will be automatically cached