Description
Could you please provide an example on how to use the CreateIndexRequest API, particularly how to define the mappings?
I didn't catch how to use the CreateIndexRequest.Builder#mappings() API to do something like
PUT /logs
{"mappings": {
"properties": {
"@timestamp": { "type": "date" },
"message": { "type": "match_only_text" }
}
}
}