Ravendb - How to query words ignoring accent

Asked

Viewed 67 times

1

I need to make a person name query ignoring the accent.

Ex: in my document I have a record with the name "Leticia". If I refer to "Eticia" the result is empty. The behavior I need is to find the person even though the query is without the accent.

session
   .Query<PersonResult, Person_Index>()
   .Search(r => r.FullName, $"*{name}*", escapeQueryOptions: EscapeQueryOptions.AllowAllWildcards)
   .ProjectFromIndexFieldsInto<PersonResult>();
  • 1

    You can put the code of your current query??

  • I resolved this issue by reading this post from Elemar: http://www.elemarjr.com/pt/2017/07/ravendb-consegue-falar-portugues/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.