queryprop

Find Documents or Collections through a condition on their metadata properties.

Example: find documents which have been imported from Jan 1, 2010. The parameter query would contain:

nature="document" and import-date >=
    xs:date("2010-01-01")

 

HTTP Request: POST

Parameters:

Name Value Description
query a boolean expression on properties of Documents or Collection to find.
path Path of a Collection restricting the search domain. Can be specified explicitly or as the remainder the HTTP URL.
properties [optional] names of properties to return. By default, only properties 'path' and 'nature' are returned. The names must be separated by commas or whitespace.
library Name of Library used (can be empty if exactly one Library in server).

Response:

 mime-type: text/xml or text/plain

Returns properties of matching Collections or Documents, in the same way as getprop, except that the root element is <queryprop>.

 

Error codes:

Compilation
if the query is invalid.