public SCQuery Contains(string field, string regex, SCRegexOption optionsSet) { var dic = new Dictionary <string, object>(); dic.Add("$regex", regex); dic.Add("$options", optionsSet.Options); info.AddNode(field, dic); return(this); }
public SCQuery EndWith(string field, string regex, SCRegexOption optionsSet = null) { var dic = new Dictionary <string, object>(); dic.Add("$regex", regex + "$"); if (optionsSet != null) { dic.Add("$options", optionsSet.Options); } info.AddNode(field, dic); return(this); }