aparo/pyes — Issue #143: Should HasChildFilter take a query in its second argument instead of a filter?
Author: hlian
Created: 2011-12-23 20:54:59+00:00
State: open

https://github.com/aparo/pyes/blob/master/pyes/filters.py#L355

The docstring suggests it should take a query, which I believe is correct, but the input validation throws an exception unless the argument is a filter. I believe taking a filter will generate invalid JSON because, according to the Query DSL, it should be a query:

http://www.elasticsearch.org/guide/reference/query-dsl/has-child-filter.html

[Awesome library, by the way.]