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
fieldSmartSearchRuleFieldruleOperatorSmartSearchRuleOperatorvaluestring
SmartSearchRule(SmartSearchRuleField, SmartSearchRuleOperator, string, string)
Initializes a new instance of an object.
  
  public SmartSearchRule(SmartSearchRuleField field, SmartSearchRuleOperator ruleOperator, string valueFrom, string valueTo)
  Parameters
fieldSmartSearchRuleFieldruleOperatorSmartSearchRuleOperatorvalueFromstringvalueTostring
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; }