chriseldredge / Lucene.Net.Linq

LINQ provider to run native queries on a Lucene.Net index
Other
151 stars 66 forks source link

Initial Fuzzy support #65

Closed tamasflamich closed 10 years ago

tamasflamich commented 10 years ago

I added initial fuzzy support that seems to work well in simple cases like:

provider
    .AsQueryable<Entity>()
    .Where(x => (x.Name == "search term").Fuzzy(0.6f))
    .ToList();

provider
    .AsQueryable<Entity>()
    .Where(x => (x.Name == "search term").Fuzzy(0.6f) || (x.Name == "search term 2").Fuzzy(0.6f))
    .ToList();

However it fails in more complex cases like:

provider
    .AsQueryable<Entity>()
    .Where(x => (x.Name == "search term" || x.Name == "search term 2").Fuzzy(0.6f))
    .ToList();

I would be happy too see such feature in an official release.

chriseldredge commented 10 years ago

Thanks!

tamasflamich commented 10 years ago

My pleasure. Can we expect a nuget release in the near future?

chriseldredge commented 10 years ago

Yes, pre-release package available at https://staging.nuget.org/packages/Lucene.Net.Linq/3.3.0-build63

Also adds support for #23.