Skip to content

Documentation for Fuzzy, FuzzyLikeThis, FuzzyLikeThisField? #1510

Open
@leberknecht

Description

@leberknecht

Im trying to construct a fuzzy query, and i was somehow successful by using something like

Q('fuzzy', value=name)

but this doesnt let me control the fuzziness. I found out here #1124 that i can do this instead:

Q({"fuzzy": {"value": {"value": name, "fuzziness": fuzziness}}})

which gives the result that i want. Before opening this issue i search a bit and saw here #1505 that they are talking about a keyword argument for fuzziness, but that doesnt work for term, match or fuzzy queries (where the first two make total sense, but i somehow hoped that it is valid for fuzzy..).

I see that there are three types of Fuzzy-Query classes in the source, would it be possible to document this? :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions