Complete the code to create a document with a title field.
{ "title": "[1]" }The document must have a field value like a title string. Here, "Elasticsearch Basics" is the title.
Complete the code to add a numeric field 'views' to the document.
{ "views": [1] }The 'views' field should be a number, so 100 is correct. Strings or booleans are not valid here.
Fix the error in the document by completing the missing field name.
{ "[1]": "John Doe" }The field name should describe the data. 'author' fits the value 'John Doe' as the document's author.
Fill both blanks to create a document with a 'tags' field containing a list.
{ "tags": [[1], [2]] }The 'tags' field holds a list of strings describing the document. 'search' and 'database' are good tags.
Fill all three blanks to create a document with 'title', 'author', and 'published' fields.
{ "title": "[1]", "author": "[2]", "published": [3] }The document has a title string, an author string, and a published year as a number.