I have the following code:
var rules = new RulesGroup()
{
CombineMethod = RuleGroupCombineMethod.And
};
if (createdByAccessUserId != null && createdByAccessUserId != "-1")
{
rules.Add(new Rule(new RuleField()
{
ID = "CreatedByAccessUserId",
Name = "CreatedByAccessUserId",
TypeName = typeof(String).FullName
}, RuleOperator.Equals, createdByAccessUserId));
}
if (category != null && category != "-1")
{
rules.Add(new Rule(new RuleField()
{
ID = "Category",
Name = "Category",
TypeName = typeof(String).FullName
}, RuleOperator.Equals, category));
}
Now I would like to add an OR RuleGroupCombineMethod in order to add a free-text query that will search in multiple fields. Is this possible?
Regards,
Peter