Prefer matching search text in beginning of result using elasticsearch in ElasticSearch Match Query

I have a query and sometimes I can't get to return the most relevant answer:

GET /items2/_search
{
      "query": {
        "match": {
          "description": {
            "query": "query_value",
            "fuzziness": "AUTO:3,5",
            "max_expansions": 10,
            "prefix_length": 0
          }
        }
      }
}

I want to return firstly query_value another_value then another_value query_value. I know about span_first, but for the text field for fuzzy search, this is not suitable.

How I can do this with Match Query?

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