Back to main page



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'.


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

Example 1:


Example 2:


Example 3: