Has Child Filter vs. Has Child Query explanation difference question

Hi,

The following is a simple example of "Has Child Filter" and "Has Child
Query" here:

My question is, if I use "explain" in the queries, why do I see subtle
difference in explanation, specifically, why there is missing NotDeleted()
in "Has Child Query" explain description? My understanding of "Has Child
Query" doc (
http://www.elasticsearch.org/guide/reference/query-dsl/has-child-query.html)
is that the query should be equivalent to the query used in "Has Child
Filter" example.

Is missing NotDeleted() important?

(Using 0.19.8)

Regards,
Lukas

--

I think I found the answer:
https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/query/HasChildQueryParser.java#L116

Regards,
Lukas

On Wed, Sep 5, 2012 at 4:34 PM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

Hi,

The following is a simple example of "Has Child Filter" and "Has Child
Query" here:
gist:3637424 · GitHub

My question is, if I use "explain" in the queries, why do I see subtle
difference in explanation, specifically, why there is missing NotDeleted()
in "Has Child Query" explain description? My understanding of "Has Child
Query" doc (
Elasticsearch Platform — Find real-time answers at scale | Elastic)
is that the query should be equivalent to the query used in "Has Child
Filter" example.

Is missing NotDeleted() important?

(Using 0.19.8)

Regards,
Lukas

--