Fix negations in ES queries