You are currently browsing legacy 5.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Session: Querying: How to Use Fuzzy

Fuzzy search is supported via Fuzzy method. This method is available only from DocumentQuery level and can only be performed on single term values. Because of that it can be used only right after WhereEquals method.


IDocumentQuery<T> Fuzzy(decimal fuzzy);
fuzzy decimal Value between 0.0 and 1.0 where 1.0 means closer match.


    .WhereEquals(x => x.Name, "Ernts Hnadel").Fuzzy(0.5m)
    .WhereEquals(x => x.Name, "Ernts Hnadel").Fuzzy(0.5m)
from Companies
where fuzzy(Name = 'Ernts Hnadel', 0.5)