public Query contains(String field, String regEx, RegexOptions options) { Dictionary <string, object> operationMap = new Dictionary <string, object>(); operationMap.Add("$regex", regEx); operationMap.Add("$options", options.getRegexOptions()); queryInfo.Add(field, operationMap); return(this); }