When true
, the query is answered using the index only and no documents are fetched.
Schema for a database name.
Fields that were requested to be projected from the document. If no fields were requested to be projected this will be empty and all fields will be returned.
Schema for information about an index.
Schema for the list of all the other indexes that were not chosen for serving the query.
The used maximum number of results returned.
Optional
mrargsArguments passed to the underlying view.
Options used for the request.
Optional
partitionedSchema for any JSON type.
JSON object describing criteria used to select documents. The selector specifies fields in the document, and provides an expression to evaluate with the field content or other data.
The selector object must:
Using a selector is significantly more efficient than using a JavaScript filter function, and is the recommended option if filtering on document attributes only.
Elementary selector syntax requires you to specify one or more fields, and the corresponding values required for those fields. You can create more complex selector expressions by combining operators.
Operators are identified by the use of a dollar sign $
prefix in the name field.
There are two core types of operators in the selector syntax:
$eq
operator matches when the specified field contains a value that is equal to the
supplied argument.It is important for query performance to use appropriate selectors:
$eq
, $gt
, $gte
, $lt
, and $lte
(but not $ne
) can be used as the
basis of a query. You should include at least one of these in a selector.$not
, $or
, $in
, and $regex
cannot be answered from an index. For query
selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
the number of documents that will need to be scanned.See the Cloudant Docsfor a list of all available combination and conditional operators.
For further reference see selector syntax.
Schema for a list of objects with extra information on the selector to provide insights about its usability.
Skip parameter used.
Static
deserializeStatic
serialize
Schema for information about the index used for a find query.