Updated REST api based on the deletebyQuery Rest calls

Hopefully this will fix the parsing issues with multiple "must" clauses in a boolean query