How yo make a fuzzy query with the new java api

I try to make a fuzzy query but it doesn't work.
Can someone help ?

fuzzy_query

Hi @Dorian .

Add ~ operator in your query.

{
  "query": {
    "query_string": {
      "default_field": "title",
      "query": "faast~",
      "fuzziness": 1
    }
  }
}

Thank you so much man it works.
Can i ask you one more question ?
I try to make a query string like this but i only want documents that have a field between a certain range.
How can i do that ?

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