Problems using search_fields and weighting in queries

I am trying to query an Elasticsearch index with some dynamic weighting on specific fields, but the query parser is rejecting the query

I am basing this on the documentation at Relevance Tuning Guide, Weights and Boosts | Elastic App Search Documentation [8.6] | Elastic

the simple query is

{
  "search_fields": {
    "title": {
      "weight": 10
    }
  },
  "query": "gorilla"
}

the response is

"type": "parsing_exception",
                "reason": "Unknown key for a START_OBJECT in [search_fields].",
                "line": 2,
                "col": 20

Can anyone offer any advice/guidance as to why this is failing?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.