chriseldredge / Lucene.Net.Linq

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

Fluent mappings aren't using per-field analyzers #55

Closed mattjohnsonpint closed 10 years ago

mattjohnsonpint commented 10 years ago

When using the fluent mappings, I am getting no results back when searching on a string containing at least one upper-case letter. It would appear that even though the ClassMap is properly setting CaseInsensitiveKeywordAnalyzer, this isn't being copied into the PerFieldAnalyzer properly.

Failing unit test: https://gist.github.com/mj1856/9147377

chriseldredge commented 10 years ago

Thanks for reporting. I moved your code to encapsulate the behavior and noticed it needed to be added for Key properties as well. I'll close the issue after releasing to nuget.org.

chriseldredge commented 10 years ago

Fix deployed in http://www.nuget.org/packages/Lucene.Net.Linq/3.2.57