Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 484 Bytes

using-dot-notation-in-field-names.md

File metadata and controls

23 lines (21 loc) · 484 Bytes

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