Options accepted by indexDocument().
indexDocument()
Optional
'index' (default; overwrite) or 'create' (fail if the ID already exists).
'index'
'create'
Refresh policy for making the write visible to search immediately.
Route the document to a specific shard.
Options accepted by
indexDocument().