Cached filters and NRT search


(Otis Gospodnetić) #1

Hello,

On http://www.elasticsearch.org/guide/reference/query-dsl/ there is a
section on Filters and Caching.
My question is - how does caching filters work with NRT search?
If results are constantly changing (assuming continuous indexing
here), how do cached filters remain valid?

Thanks,
Otis

Sematext is hiring Search Engineers -- http://sematext.com/about/jobs.html


(Shay Banon) #2

Json already have numeric types and boolean types, so those are used based
on it. Date types are automatically detected if the string matches
predefined (though configurable) date formats (more info here:
http://www.elasticsearch.org/guide/reference/mapping/root-object-type.html).

On Wed, Aug 3, 2011 at 12:00 AM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:

Hello,

On http://www.elasticsearch.org/guide/reference/query-dsl/ there is a
section on Filters and Caching.
My question is - how does caching filters work with NRT search?
If results are constantly changing (assuming continuous indexing
here), how do cached filters remain valid?

Thanks,
Otis

Sematext is hiring Search Engineers -- http://sematext.com/about/jobs.html


(Shay Banon) #3

Answered the wrong thread there. Filters are cached on the segment level
without the need to refresh them if deletes happen. So, big segments will
have those filters "heavily" cached, while small flushed NRT segments will
get those refilled, but only for that segment.

On Wed, Aug 3, 2011 at 12:00 AM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:

Hello,

On http://www.elasticsearch.org/guide/reference/query-dsl/ there is a
section on Filters and Caching.
My question is - how does caching filters work with NRT search?
If results are constantly changing (assuming continuous indexing
here), how do cached filters remain valid?

Thanks,
Otis

Sematext is hiring Search Engineers -- http://sematext.com/about/jobs.html


(Otis Gospodnetić) #4

Ah, of course! Thanks.

Otis

Sematext is hiring Search Engineers -- http://sematext.com/about/jobs.html

On Aug 2, 5:10 pm, Shay Banon kim...@gmail.com wrote:

Answered the wrong thread there. Filters are cached on the segment level
without the need to refresh them if deletes happen. So, big segments will
have those filters "heavily" cached, while small flushed NRT segments will
get those refilled, but only for that segment.

On Wed, Aug 3, 2011 at 12:00 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

Hello,

Onhttp://www.elasticsearch.org/guide/reference/query-dsl/there is a
section on Filters and Caching.
My question is - how does caching filters work with NRT search?
If results are constantly changing (assuming continuous indexing
here), how do cached filters remain valid?

Thanks,
Otis

Sematext is hiring Search Engineers --http://sematext.com/about/jobs.html


(system) #5