forked from marklogic-community/Corona
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".