For elasticsearch