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

directory (Structured Query)

isubiker edited this page Nov 11, 2011 · 1 revision

Looks for documents that are immediate children of or descendants of the specified directory. For simple directory queries that should only find documents that are direct children of the specified directory, the query can be specified as:

{
    "directory": "/foo/bar/"
}

<directory>/foo/bar/</directory>

To specify a list of directories:

{
    "directory": ["/foo/", "/bar/"]
}

<directory>
    <value>/foo/</value>
    <value>/bar/</value>
</directory>

To return all documents that are direct children or descendants of a directory, the query is specified as:

{
    "directory": "/foo/bar/",
    "descendants": true
}

<constraint>
    <directory>/foo/bar/</directory>
    <descendants>true</descendants>
</constraint>
Clone this wiki locally