basic search implementation using elasticsearch