Fix Elasticsearch search query on sever 1.2.1