elasticsearch/elasticsearch — Issue #1590: Filter cache to have just weighted (node) and none, and index query parser cache to be size based
Author: kimchy
Created: 2012-01-05 18:43:36+00:00
State: open
Labels: enhancement, v0.19.0

Upgrading to guava 11, use its `Cache` interface. Also, do some refactoring in some of our caching layers:

* Filter cache now only has two modes: `weighted` (the old node mode) and `none`. The others are really meaningless and the `weighted` one is the best one to use as it allows to assign a percentage from the JVM heap for filter cache.
* Index query parser cache is a very lightweight cache, mainly there not to parse the same query several times when several shards exists on the same node. Move away from using weak values to simply using a size bounded cache (100 by default).