Skip to content

[Website]: Regarding the issue of a DSL query statement on the official website #3329

@dhaoh

Description

@dhaoh

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

Image Should we use category. keyword instead of category here?

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:DeveloperIssues owned by the Developer Docs Teamcommunitysource:webIssues originating from the elastic.co docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions