Added crude elasticsearch error handling
Added has-child and has-parent queries