Fix es query to get actual records.
Merge pull request #14 from RickEyre/master

Fix es query to get actual records.