Skip to content

[Website]: Troubleshooting semantic_text fields #2755

@liu-xiao-guo

Description

@liu-xiao-guo

Type of issue

Inaccurate

What documentation page is affected

https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/semantic-text

What happened?

POST test-index/_search
{
    "query": {
        "match": {
            "my_semantic_field": "Which country is Paris in?"
        },
        "fields": [
            "_inference_fields"
          ]
    }
}

The above code snippet on the link is not correct. The correct format should be:

POST test-index/_search
{
  "query": {
    "match": {
      "my_semantic_field": "Which country is Paris in?"
    }
  },
  "fields": [
    "_inference_fields"
  ]
}

Additional info

Image

Metadata

Metadata

Assignees

Labels

Team:DeveloperIssues owned by the Developer Docs Teamsource: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