indexing and querying elastic-search working