IBM Cloudant Query Parameters
The $text
operator is based on a Lucene search with a standard analyzer. The operator isn't case-sensitive, and matches on any words. However, the $text
operator doesn't support full Lucene syntax, such as wildcards,
fuzzy matches, or proximity detection.
For more information, see the Search documentation. The $text
operator applies to all strings found in the document. If you place this operator in the context of a field
name, it's invalid.
The format of the selector
field is as described in the selector syntax, except for the $text
operator.
The fields
array is a list of fields that must be returned for each document. The provided field names can use dotted notation to access subfields.
See the following example JSON document that uses all available query parameters:
{
"selector": {
"year": {
"$gt": 2010
}
},
"fields": ["_id", "_rev", "year", "title"],
"sort": [{"year": "asc"}],
"limit": 10,
"skip": 0
}