.setQuery(filteredQuery(matchAllQuery(), hasChildFilter("child", matchAllQuery())))
.execute().actionGet();
assertThat("Failures " + Arrays.toString(searchResponse.shardFailures()), searchResponse.shardFailures().length, equalTo(0));
assertThat(searchResponse.failedShards(), equalTo(0));
assertThat(searchResponse.hits().totalHits(), equalTo(1l));
<BUG>client.prepareSearch("test")
</BUG>
.setQuery(filteredQuery(matchAllQuery(), hasParentFilter("parent", matchAllQuery())))
.execute().actionGet();
assertThat("Failures " + Arrays.toString(searchResponse.shardFailures()), searchResponse.shardFailures().length, equalTo(0));

.setQuery(filteredQuery(matchAllQuery(), hasChildFilter("child", matchAllQuery())))
.execute().actionGet();
assertThat("Failures " + Arrays.toString(searchResponse.shardFailures()), searchResponse.shardFailures().length, equalTo(0));
