bitemyapp / bloodhound

Haskell Elasticsearch client and query DSL
bitemyapp.com
BSD 3-Clause "New" or "Revised" License
424 stars 118 forks source link

Fuzziness option in MatchQuery #240

Closed ashutoshrishi closed 5 years ago

ashutoshrishi commented 6 years ago

I need to build a match query with fuzziness set to AUTO. If I am not wrong, a "fuzziness" option can be given on most query types:

{
    "match": {
            "content": {
              "zero_terms_query": "none",
              "operator": "or",
              "query": "random query",
          "fuzziness": "AUTO",
              "boost": 1
            }
   }
}

Is there any way around this?

ashutoshrishi commented 6 years ago

I have tried to fix this in #241. Could someone have a look?