Data in Elasticsearch is stored in documents. Documents are JSON objects that contain fields and values.

For example, a document containing information about a particular person might look like this:

{
“name”: “John Doe”,
“age”: 34,
“address”: {
“street”: “123 Main Street”,
“city”: “New York”,
“state”: “NY”
},
“interests”: [“sports”, “music”, “movies”]
}

Leave a Reply

Your email address will not be published. Required fields are marked *