Options accepted by createIndex().
createIndex()
Optional
Field mappings (types, analyzers, etc.) for the new index.
Index settings (shards, replicas, analysis, etc.).
Aliases to create the index with.
Options accepted by
createIndex().