Re: Split child query to query and filter?

2014-08-14 Thread Adam Porat
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

Split child query to query and filter?

2014-06-10 Thread 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