I have the following query
query = query & Builders<Profile>.Filter.And(query,
Builders<Profile>.Filter.Regex(p => p.email, '^' + search));
But i know that MongoDb
can't use indexes with regex
queries. Is it possible to implement an alternative that will work using indexes ? Also, i have many regexes that could be implemented, for ex. search by string's start and string's end, string contains and other.
I use MongoDb v 3.0.2
& Official c# driver v 2.0