Complete the code to define a keyword field in Elasticsearch mapping.
"status": { "type": "[1]" }
The keyword type is used for structured content like tags or IDs that should be searchable as exact values.
Complete the code to define a text field with English analyzer.
"description": { "type": "[1]", "analyzer": "english" }
The text type is used for full-text search and supports analyzers like 'english' to process the text.
Fix the error in the mapping: the field should be searchable as exact value but is defined as text.
"category": { "type": "[1]" }
To search exact values, the field must be keyword type, not text.
Fill both blanks to create a mapping with a text field and a keyword subfield.
"title": { "type": "[1]", "fields": { "raw": { "type": "[2]" } } }
This mapping defines title as a text field for full-text search, with a keyword subfield raw for exact matching and sorting.
Fill all three blanks to create a mapping with a text field, a keyword subfield, and a custom analyzer.
"summary": { "type": "[1]", "analyzer": "[2]", "fields": { "keyword": { "type": "[3]" } } }
The summary field is a text type using the standard analyzer for full-text search, with a keyword subfield for exact matching.