Plsease explain me how cache works in ES

I got pretty simple question, but i can'f find and answer rly.

After i index document in ES it wil be commited to index in about 1 second.
What will happen to my cache filled with filter query ealier. It will be
cleared to give me most current response?

In solr when i index and commit new document new searcher is boarn and all
cachech are cleared. How it look here?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/389eb7d5-b022-49d5-a345-600c635b15c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Marcin,

Elasticsearch caches filters per segment. Let's say that you have a search
S and a filter F which is cached. If you perform updates, then a new
searcher S2 will be created, that likely shares most of its segments with
S. So on the next time that you will be using F in a query, Elasticsearch
will only generate cache entries for the segments of S2 that were not part
of S.

On Tue, May 13, 2014 at 11:20 AM, Marcin Ciurla mizayah@gmail.com wrote:

I got pretty simple question, but i can'f find and answer rly.

After i index document in ES it wil be commited to index in about 1 second.
What will happen to my cache filled with filter query ealier. It will be
cleared to give me most current response?

In solr when i index and commit new document new searcher is boarn and all
cachech are cleared. How it look here?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/389eb7d5-b022-49d5-a345-600c635b15c2%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/389eb7d5-b022-49d5-a345-600c635b15c2%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j644JR6NsY42gbm-qOJZ8nUoebeGouakP8isfoUaxJnNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.