Type of issue
Other
What documentation page is affected
https://www.elastic.co/docs/reference/query-languages/query-dsl/full-text-filter-tutorial
What happened?
I am a beginner who has just started learning Elasticsearch and have some doubts about a DSL statement example on the official website。
GET /cooking_blog/_search { "query": { "bool": { "must": [ { "term": { "tags": "vegetarian" } }, { "range": { "rating": { "gte": 4.5 } } } ], "should": [ { "term": { "category": "Main Course" } }, { "multi_match": { "query": "curry spicy", "fields": [ "title^2", "description" ] } }, { "range": { "date": { "gte": "now-1M/d" } } } ], "must_not": [ { "term": { "category.keyword": "Dessert" } } ] } } }
This is an example of boolean query on the official website

Should we use category. keyword instead of category here?
Additional info
No response
Type of issue
Other
What documentation page is affected
https://www.elastic.co/docs/reference/query-languages/query-dsl/full-text-filter-tutorial
What happened?
I am a beginner who has just started learning Elasticsearch and have some doubts about a DSL statement example on the official website。
GET /cooking_blog/_search { "query": { "bool": { "must": [ { "term": { "tags": "vegetarian" } }, { "range": { "rating": { "gte": 4.5 } } } ], "should": [ { "term": { "category": "Main Course" } }, { "multi_match": { "query": "curry spicy", "fields": [ "title^2", "description" ] } }, { "range": { "date": { "gte": "now-1M/d" } } } ], "must_not": [ { "term": { "category.keyword": "Dessert" } } ] } } }This is an example of boolean query on the official website
Additional info
No response