fixed the test of elasticsearch
Merge pull request #1138 from ChaoPang/master

fixed the test of elasticsearch