Using this code…
using (var entry = new MutableDocument("1"))
{
entry.SetString("content", "hâkimler");
Database.Save(entry);
}
using (var entry = new MutableDocument("2"))
{
entry.SetString("content", "hakimler");
Database.Save(entry);
}
var index = IndexBuilder
.FullTextIndex(FullTextIndexItem.Property("content"))
.SetLanguage(null)
.IgnoreAccents(false);
Database.CreateIndex("ftsidx", index);
var whereClause = FullTextExpression
.Index("ftsidx")
.Match("'hâkimler'");
return QueryBuilder
.Select(SelectResult.All())
.From(DataSource.Database(Database))
.Where(whereClause)
.Execute();
I would expect this to return only one result since it should respect the accent over the â, but it returns both. I have tried this on the iOS (.NET) support version as well as the NetDesktop support version.
I also get the same result with other accents such as when comparing ayudo with ayudó. I have tried setting the locale in SetLanguage
with no effect (I don’t really want to set the language locale anyway because the text may be multilanguage).
Am I missing something? Any help would be appreciated…