Create an index if not exist and add a document to it

Can you share the JSON you used to create the mapping to others can take a look? Also which Elasticsearch version are you using?