title: ElasticSearch has_child query min_children fraction, not count
body: <p>I am looking for a way to issue an ElasticSearch <a href="https://www.elastic.co/guide/en/elasticsearch/reference/2.3/query-dsl-has-child-query.html#_min_max_children" rel="nofollow">has_child query</a> where <code>min_children</code> can be specified as the fraction of all children that satisfy the child query. The <code>has_child</code> query API supports a <code>min_children</code> field, but this specifies a minimum count of child documents that need to match, not a fraction. Is there a way to do this, for example using scripting?</p>