I have the following class:
public class Movie
{
string Name get; set;
string Director get; set;
IList<String> Tags get; set;
}
How I can query the Tags? I want to query as SQL with a like %term%. I tried with /term/i, but it does not work.
term = string.Format(@"/{0}/i", term);
var tags = db.GetCollection().Find(
new { Tags = term },
new { Tags = OrderBy.Descending },
new { Tags = 1}, 8, 0).ToList();
Any ideas?
The correct query is: