Has Child Filter vs. Has Child Query explanation difference question


(Lukáš Vlček) #1

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

--


(Lukáš Vlček) #2

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:
https://gist.github.com/3637424

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

--


(system) #3