Delete child documents via a term query rather than has_parent
Merge branch '1051-delete-by-query' of https://github.com/simong/Hilary into 1051-delete-by-query