Tuesday, 29 September 2015

Elastic search : Document

Elasticsearch is a document-oriented database, it stores everything as document. If you query elastic search, it returns json document as result.

For example, query (GET _count) returns a json response like below.

{
   "count": 1439,
   "_shards": {
      "total": 2,
      "successful": 2,
      "failed": 0
   }
}

What is JSON Document?
In simple terms, if you serialize an object into JSON, it is known as JSON document.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment