Using facets/aggretagions on parent document, queried by TopChildren

Hi,

The TopChildren query works with an estimated hit size, and the
TotalHits might be incorrect if there are more child docs matching the
required hits.
How does that affect facets or aggregations defined on the parent
document? Would their count might be likewise be incorrent? Or would they
cause the TopChildren to actually expand to look for all possible children?

Thank you.

--
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/f2a87846-64ab-4786-ad91-305b197152c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I will answer myself:
The facets are counted in relation to the total_hits in the response. This
is true just as well when using TopChildren.

בתאריך יום שלישי, 5 באוגוסט 2014 11:11:02 UTC+3, מאת Adam Porat:

Hi,

The TopChildren query works with an estimated hit size, and the
TotalHits might be incorrect if there are more child docs matching the
required hits.
How does that affect facets or aggregations defined on the parent
document? Would their count might be likewise be incorrent? Or would they
cause the TopChildren to actually expand to look for all possible children?

Thank you.

--
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/0d330bf6-235d-4895-8bfb-75740b96b1e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.