Caching of documents

Hi

How elastic caches queries ? what is the common algorithm LRU ??? Something
else ?

Thanks
Roman

--

Hello Roman,

On Thu, Nov 29, 2012 at 2:40 PM, Roman Kournjaev kournjaev@gmail.comwrote:

Hi

How elastic caches queries ?

It only caches filters and document fields, as far as I know. Some filters
are cached by default, some aren't, but you can control that by setting
_cache to either true or false.

what is the common algorithm LRU ??? Something else ?

Yes, LRU. And there are some settings which you can tune to control both
filter caches and field data caches:

You might also find this article on caching really interesting:

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

Hi,

Elasticsearch use the cache objects of the Guava library. (Mentioned by
Ivan Brusic here
https://groups.google.com/d/msg/elasticsearch/OLwmBRVaScc/bR4nWreSVgcJ )

Reading this page is really interesting :

Regards.

Benoît

On Thursday, November 29, 2012 4:12:49 PM UTC+1, Radu Gheorghe wrote:

Hello Roman,

On Thu, Nov 29, 2012 at 2:40 PM, Roman Kournjaev <kour...@gmail.com<javascript:>

wrote:

Hi

How elastic caches queries ?

It only caches filters and document fields, as far as I know. Some filters
are cached by default, some aren't, but you can control that by setting
_cache to either true or false.

what is the common algorithm LRU ??? Something else ?

Yes, LRU. And there are some settings which you can tune to control both
filter caches and field data caches:
Elasticsearch Platform — Find real-time answers at scale | Elastic

You might also find this article on caching really interesting:
ElasticSearch Cache Usage - Sematext

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

--

Queries for themselves are not cached between executions, whereas query
results are cached, as Radu and Benoît explained.

Best regards,

Jörg

On Thursday, November 29, 2012 1:40:47 PM UTC+1, Roman Kournjaev wrote:

Hi

How elastic caches queries ? what is the common algorithm LRU ???
Something else ?

Thanks
Roman

--