Elasticsearch-dsl-py: Is there support for fuzzy searching and specifiying fuziness?

Created on 20 Feb 2019  路  1Comment  路  Source: elastic/elasticsearch-dsl-py

For example, something like this query:

GET /_search
{
    "query": {
        "fuzzy" : {
            "user" : {
                "value": "ki",
                "boost": 1.0,
                "fuzziness": 2,
                "prefix_length": 0,
                "max_expansions": 100
            }
        }
    }
}

Sorry for the issue, I've been trying and I can't seem to get it running, nor can I find any examples.

Most helpful comment

I managed to figure it out, this might be of help to someone else:

Search().query(Q({"fuzzy": {
            "user": {
                "value": "ki",
                "boost": 1.0,
                "fuzziness": 2,
                "prefix_length": 0,
                "max_expansions": 100
            }
        }
        }))

>All comments

I managed to figure it out, this might be of help to someone else:

Search().query(Q({"fuzzy": {
            "user": {
                "value": "ki",
                "boost": 1.0,
                "fuzziness": 2,
                "prefix_length": 0,
                "max_expansions": 100
            }
        }
        }))
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mortada picture mortada  路  3Comments

ypkkhatri picture ypkkhatri  路  4Comments

njoannin picture njoannin  路  3Comments

MauriJHN picture MauriJHN  路  4Comments

barseghyanartur picture barseghyanartur  路  4Comments