Processing data using spark streaming before indexing in elasticsearch

Hi.
I work in computer corporation. I have a file containing customer transactions. I would like to use spark streaming to specify that any transaction belongs to which the customer, then each transaction is stored in the index of same customer in elasticsearch.
please help me.

Have a look at https://www.elastic.co/guide/en/elasticsearch/hadoop/current/index.html