Fix search for ES 1.0