public IContentQuery <T> WhereContains(string fieldName, object value) { var expression = new WhereContainsExpression(this.Expression, fieldName, value); return(this.Create(expression)); }
protected abstract void VisitWhereContains(WhereContainsExpression expression);
protected override void VisitWhereContains(WhereContainsExpression expression) { whereClause.AppendFormat("(doc[{0}]&&doc[{0}].indexOf({1})>=0)", MakeValue(expression.FieldName), MakeValue(expression.Value)); this.viewNameBuilder.AppendFormat("{0}_CONTAINS_{1}", expression.FieldName, AsViewNameString(expression.Value)); }