0
0
Elasticsearchquery~10 mins

Why documents are the unit of data in Elasticsearch - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a document with a title field.

Elasticsearch
{ "title": "[1]" }
Drag options to blanks, or click blank then click option'
Aquery
Bindex
CElasticsearch Basics
Dmapping
Attempts:
3 left
💡 Hint
Common Mistakes
Using keywords like 'index' or 'mapping' instead of a field value.
Leaving the field value empty.
2fill in blank
medium

Complete the code to add a numeric field 'views' to the document.

Elasticsearch
{ "views": [1] }
Drag options to blanks, or click blank then click option'
A100
B"many"
C"one hundred"
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Putting numbers inside quotes, making them strings.
Using boolean values instead of numbers.
3fill in blank
hard

Fix the error in the document by completing the missing field name.

Elasticsearch
{ "[1]": "John Doe" }
Drag options to blanks, or click blank then click option'
Aindex
Bauthor
Ctype
Dquery
Attempts:
3 left
💡 Hint
Common Mistakes
Using Elasticsearch keywords as field names.
Leaving the field name blank.
4fill in blank
hard

Fill both blanks to create a document with a 'tags' field containing a list.

Elasticsearch
{ "tags": [[1], [2]] }
Drag options to blanks, or click blank then click option'
A"search"
B"database"
C"index"
D"query"
Attempts:
3 left
💡 Hint
Common Mistakes
Using keywords like 'index' or 'query' as tags without quotes.
Leaving tags as single strings instead of a list.
5fill in blank
hard

Fill all three blanks to create a document with 'title', 'author', and 'published' fields.

Elasticsearch
{ "title": "[1]", "author": "[2]", "published": [3] }
Drag options to blanks, or click blank then click option'
ALearning Elasticsearch
BAlice Smith
C2023
DElasticsearch Guide
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the published year inside quotes.
Mixing up the fields and values.