I am new to ElasticSearch (ES). Day one on the java high level API.
I understand that POST a document allows ES to auto-generate the document ID. PUT allows me to use a pre-existing ID.
From the API docs here, I am not sure how to differentiate between the two approaches when indexing a new document. I wish to use the POST approach.