Skip to content

Is there support for fuzzy searching and specifiying fuziness? #1124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Monkleys opened this issue Feb 20, 2019 · 1 comment
Closed

Is there support for fuzzy searching and specifiying fuziness? #1124

Monkleys opened this issue Feb 20, 2019 · 1 comment

Comments

@Monkleys
Copy link

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.

@Monkleys
Copy link
Author

Monkleys commented Feb 20, 2019

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
            }
        }
        }))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant