Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

underKey (Structured Query)

isubiker edited this page Nov 11, 2011 · 2 revisions

Confines the specified query to only match under the specified key.

{
    "underKey": "bio",
    "query": {
        "key": "para"
        "contains": "Princeton",
    }
}

<constraint>
    <underKey>bio</underKey>
    <query>
        <constraint>
            <key>para</key>
            <contains>Princeton</contains>
        </constraint>
    </query>
</constraint>

The above query will only match documents where the bio key has a para key underneath it that contains the string "Princeton".

Clone this wiki locally