Rule XML

The Hawksworth rule on the dashboard is represented in this serialized XML format as follows:

 

 

<?xml version="1.0" encoding="utf-16"?> <Rule xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" RuleType="Group" Operator="All"> <Rules> <Rule RuleType="Eval" Operator="None"> <Rules /> <Field>keyword:SKU</Field> <Condition>is</Condition> <Value>ABC123</Value> </Rule> </Rules> <Field /> <Condition /> <Value /> </Rule>

 

Note: the prefix before fieldname (line 7) is decided based on the following:

Use keyword if the field is setup as NOT Stemmed and there is no facet associated with it

Use facet if the field is setup as NOT Stemmed and there is a facet associated with it

Â