Table of Contents

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 SmartSearchRuleField
ruleOperator SmartSearchRuleOperator
value 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 SmartSearchRuleField
ruleOperator SmartSearchRuleOperator
valueFrom string
valueTo string

Properties

Field

Gets the constraint that corresponds to this rule.
public SmartSearchRuleField Field { get; set; }

Property Value

SmartSearchRuleField

IsEmpty

Check is empty object
public bool IsEmpty { get; }

Property Value

bool

IsRangeValue

Check is range value
public bool IsRangeValue { get; }

Property Value

bool

Operator

Gets the constraint that corresponds to this rule.
public SmartSearchRuleOperator Operator { get; set; }

Property Value

SmartSearchRuleOperator

Value

Gets or sets the value
public string Value { get; set; }

Property Value

string

ValueFrom

Gets or sets the from range value
public string ValueFrom { get; set; }

Property Value

string

ValueTo

Gets or sets the to range value
public string ValueTo { get; set; }

Property Value

string
To top