Get index of item in results set

Could you provide a script as described in About the Elasticsearch category. It will help to better understand what you want to do. Please, try to keep the example as simple as possible.

I'm not sure what you're indexing and how...