Class SmartSearchRule
- Namespace
- Dynamicweb.SmartSearch.SmartSearchRules
- Assembly
- Dynamicweb.SmartSearch.dll
Rule for smart filter
public class SmartSearchRule
- Inheritance
-
SmartSearchRule
- Inherited Members
Constructors
SmartSearchRule()
Initializes a new instance of an object.
public SmartSearchRule()
SmartSearchRule(SmartSearchRuleField, SmartSearchRuleOperator, string)
Initializes a new instance of an object.
public SmartSearchRule(SmartSearchRuleField field, SmartSearchRuleOperator ruleOperator, string value)
Parameters
field
SmartSearchRuleFieldruleOperator
SmartSearchRuleOperatorvalue
string
SmartSearchRule(SmartSearchRuleField, SmartSearchRuleOperator, string, string)
Initializes a new instance of an object.
public SmartSearchRule(SmartSearchRuleField field, SmartSearchRuleOperator ruleOperator, string valueFrom, string valueTo)
Parameters
field
SmartSearchRuleFieldruleOperator
SmartSearchRuleOperatorvalueFrom
stringvalueTo
string
Properties
Field
Gets the constraint that corresponds to this rule.
public SmartSearchRuleField Field { get; set; }
Property Value
IsEmpty
Check is empty object
public bool IsEmpty { get; }
Property Value
IsRangeValue
Check is range value
public bool IsRangeValue { get; }
Property Value
Operator
Gets the constraint that corresponds to this rule.
public SmartSearchRuleOperator Operator { get; set; }
Property Value
Value
Gets or sets the value
public string Value { get; set; }
Property Value
ValueFrom
Gets or sets the from range value
public string ValueFrom { get; set; }
Property Value
ValueTo
Gets or sets the to range value
public string ValueTo { get; set; }