0
0
Elasticsearchquery~10 mins

Pipeline testing in Elasticsearch - Interactive Code Practice

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

Complete the code to specify the pipeline ID for testing.

Elasticsearch
{
  "pipeline_id": "[1]"
}
Drag options to blanks, or click blank then click option'
Atest_pipeline
Bmy_pipeline
Cpipeline_1
Ddefault_pipeline
Attempts:
3 left
💡 Hint
Common Mistakes
Using a pipeline ID that does not exist.
2fill in blank
medium

Complete the code to provide the document to test in the pipeline.

Elasticsearch
{
  "docs": [
    {
      "_source": [1]
    }
  ]
}
Drag options to blanks, or click blank then click option'
A{"message": "Hello World"}
B"message: Hello World"
C["message", "Hello World"]
Dmessage: Hello World
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid JSON format for the document.
3fill in blank
hard

Fix the error in the pipeline test request by completing the missing field.

Elasticsearch
{
  "pipeline": "[1]",
  "docs": [
    {
      "_source": {"user": "alice"}
    }
  ]
}
Drag options to blanks, or click blank then click option'
Amy_pipeline
Btest_pipeline
Cuser_pipeline
Dpipeline_test
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong or misspelled pipeline name.
4fill in blank
hard

Fill both blanks to create a pipeline test request with a pipeline ID and a document containing a field.

Elasticsearch
{
  "pipeline": "[1]",
  "docs": [
    {
      "_source": {"[2]": "value"}
    }
  ]
}
Drag options to blanks, or click blank then click option'
Atest_pipeline
Bmessage
Cuser
Dmy_pipeline
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing pipeline ID and document field names.
5fill in blank
hard

Fill all three blanks to create a pipeline test request with a pipeline ID, a document field, and a nested field value.

Elasticsearch
{
  "pipeline": "[1]",
  "docs": [
    {
      "_source": {
        "[2]": {
          "nested_field": "[3]"
        }
      }
    }
  ]
}
Drag options to blanks, or click blank then click option'
Atest_pipeline
Buser
Cactive
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing nested field names and values.