protected void AddFieldValueClause(CombinedQuery query, string fieldName, string fieldValue, QueryOccurance occurance) { if (String.IsNullOrEmpty(fieldName) || String.IsNullOrEmpty(fieldValue)) return; // if we are searching by _id field, do not lowercase fieldValue = IdHelper.ProcessGUIDs(fieldValue); query.Add(new FieldQuery(fieldName, fieldValue), occurance); }