Back to main page

$has

Concept:

Has operation tests, whether the field has the specified feature. Please note that has is a low level operation, that operates at the feature level. The features can differ significantly from the original data, specifically in case of text, when analyzers are used. For example: if you have field the 'content' with text "programmers and horses", the field may not have 'programmers' or 'horses' features, but the stems 'programmer' and 'hors'.

Format:

    { "$has" : int | long | decimal | boolean | null | string }

Example 1:

    {"$has":"hors"}

Example 2:

    {"$has":4}

Example 3:

    {"$has":true}