Back to main page

$&

Concept:

$& expresses a harder version of boolean AND operation. This 'hard AND' is not analyzed by Aito into features, but treated as a single, atomic entity. This same atomicity can be achieved using the $prop expression.

This makes the following clauses equivalent

{ "price" : {"$prop": { "$and" : [ {"$gte" : 0 },  {"$lte" : 100 } ] } } }
{ "price" : { "$&" : [ {"$gte" : 0 },  {"$lte" : 100 } ] } }

Format:

    { "$&" : [ Proposition, ... ] }

See also:

Example 1:

    { "$&" : [ { "price" : { "$gt" : 100 } }, { "tags" : "laptop" } ] }