Elasticsearch indexing and context usage