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

underElement (Structured Query)

isubiker edited this page Nov 11, 2011 · 3 revisions

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

{
    "underElement": "bio",
    "query": {
        "element": "para"
        "contains": "Princeton",
    }
}

<constraint>
    <underElement>bio</underElement>
    <query>
        <constraint>
            <element>para</element>
            <contains>Princeton</contains>
        </constraint>
    </query>
</constraint>

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

Clone this wiki locally