Using dot notation in field names¶
Using dot notation for the author
object¶
PUT /reviews_dot_notation
{
"mappings": {
"properties": {
"rating": { "type": "float" },
"content": { "type": "text" },
"product_id": { "type": "integer" },
"author.first_name": { "type": "text" },
"author.last_name": { "type": "text" },
"author.email": { "type": "keyword" }
}
}
}
Retrieve mapping¶
GET /reviews_dot_notation/_mapping