working on search method for elasticsearch