Search Operator Syntax

Search query objects are composed of the logical and comparison operators that are to be used in the search, and the operators themselves are also represented as JSON objects, making it easy to create complex, nested searches.

The general format for comparison operators is as follows:

{ "Field": { "OP": "Value" } }

Here, "OP" is the name of the operator such as "$EQ" or "$LIKE", "Field" is the name of the Maximizer.Web.Data field under comparison, such as "LastName" or "CompanyName", and "Value" is the value to be compared.

Comparison operators can be combined together using logical operators to form a compound search. The general format for logical operators is as follows:

{ "OP": [ { Operand1 }, { Operand2 }, ... ] }

Here, "OP" is the name of the operator such as "$AND" or "$OR", and "OperandN" are the comparison operators to be combined using the operator.