Fix Elasticsearch search query on sever 1.2.1
Merge pull request #973 from inthause/documents

Fix Elasticsearch search query on sever 1.2.1