Split child query to query and filter?

Hi,

I need to perform a query + filter on child documents. For the query, I'm
using TopChildren.
Now I wonder what would be more efficient regarding query on date/numeric
(no score needed) fields
of this child -
should I query on these fields using a HasChild filter in a bool query
with the TopChildren query,
or should I just combine those date/numeric fields within a single
TopChildren query?

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/78636d82-808f-4149-84e5-6a8f18ee048f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I will answer myself:
Any queried type (the parent or any one of its children), if there should
be a filter on it, should be queried using a filtered query clause. Any
filtered field should come under the filtered-query *filter *clause, and
any analyzed or score-affecting field should come under the filtered-query *query
*clause.

בתאריך יום שלישי, 10 ביוני 2014 12:05:20 UTC+3, מאת Adam Porat:

Hi,

I need to perform a query + filter on child documents. For the query,
I'm using TopChildren.
Now I wonder what would be more efficient regarding query on date/numeric
(no score needed) fields
of this child -
should I query on these fields using a HasChild filter in a bool query
with the TopChildren query,
or should I just combine those date/numeric fields within a single
TopChildren query?

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/ecc523ba-4a55-4470-beaf-0fd2ff9f58aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.