Hey,

not all parent documents (and not the data), just their ids. Still this can
accumulate, which is the reason why you should monitor the size of that
data structure (exposed in the nodes stats).

Hope that helps.


--Alex


On Thu, Jun 19, 2014 at 6:03 AM, Drew Kutcharian <[email protected]> wrote:

> Based on the official docs (
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html
> ):
>
> {quote}
> memory considerations
>
> With the current implementation, all _parent field values and all _id
> field values of parent documents are loaded into memory (heap) via field
> data in order to support fast lookups, so make sure there is enough memory
> for it.
> {/quote}
>
> Does this mean that all the parent docs will be loaded into memory or the
> ones matching the filter? If the former is true, then it would mean that
> one should keep the size of the parent objects to minimum, right? In
> addition, say has_child is a part of a conjunction (regular filter AND
> has_child), would ES still load all the parent docs, or only the ones that
> matched the first filter?
>
> Thanks,
>
> Drew
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/FE901831-FB74-4F89-A313-16C1C08BF0A5%40venarc.com
> <https://groups.google.com/d/msgid/elasticsearch/FE901831-FB74-4F89-A313-16C1C08BF0A5%40venarc.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-%3Dvbk3BkFQBbuXybg_-QX%3DEj6Rou2QMzqbzXUsbYJV8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to