I need to do an auto complete that consumes a mongodb database. The words can be written with or without accent, uppercase or lowercase, that is, I need to define a collage in the mongo that allows me to do a search that ignores accent and case sensitive.
Does mongo have this configuration module? If not, is there any way to resolve this with the C # driver?
var filterBuilder = Builders<UnidadeCurricular>.Filter;
var filter = filterBuilder.Exists(a => a.DeletedAt, false) & filterBuilder.Where(a => a.Nome.StartsWith(nome));