different way of using elastic search