I have ES 1.3.4 installed and i am trying to use a filter on has child, but I keep getting the error "[has_child] filter does not support [min_children]"
Even though the documents <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html> specifically show it... The has_child filter allows you to specify that a minimum and/or maximum number of children are required to match for the parent doc to be considered a match: { "has_child" : { "type" : "comment", "min_children": 2, <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html#CO49-2> "max_children": 10, <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html#CO49-3> "filter" : { "term" : { "user" : "john" } } } } Any help I can get on this would be greatly appreciated! { "query": { "filtered": { "query": { "match_all": {} }, "filter": { "and": [ { "has_child":{ "type":"service", "min_children":2, "filter":{"match_all": {}} } }, { "term": { "ismd": true } }, { "terms": { "owk": [ 23621 ] } }, { "terms": { "oowk": [ 23621 ] } }, { "term": { "ipl": false } }, { "terms": { "pwk": [ 21754 ] } }, { "term": { "isb": false } } ] } } }, "from": 0, "size": 0, "aggs": { "unique": { "cardinality": { "field": "hhk", "precision_threshold": 40000 } } } } -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fa54ac23-cb19-4a58-9192-d50cc5476d05%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
