fixed the bug of elasticsearch that everything is retrieved from the index
Merge pull request #1135 from ChaoPang/master

fixed the bug of elasticsearch that everything is retrieved from the index