5. Pagination
Every search request returns a "bookmark" attribute. Pass this back to Cloudant to get the next "page" of
results.
curl https://$account.cloudant.com/foo/_design/bar/_search/baz?q=*:*&limit=1
curl
https://$account.cloudant.com/_design/bar/_search/baz?q=*:*&limit=1&bookmark=g2wAAAABaANkA
B9kYmNvcmVAZGI1LmplbmV2ZXIuY2xvdWRhbnQubmV0bAAAAAJhAGI_____amgCRj_wAAAAAA
AAYQBq
6. Sorting
The "sort" parameter lets you sort results on any indexed field or combination of indexed fields.
curl https://$account.cloudant.com/foo/_design/bar/_search/baz?q=*:*&sort="size<string>"
curl https://$account.cloudant.com/foo/_design/bar/_search/baz?q=*:*&sort="color<string>"
7. Tokenization (https://docs.cloudant.com/search.html)
• Tokenizers break down textual input into tokens for efficient and
flexible searching
• Using an appropriate tokenizer is often critical
• Generic analyzers: standard, email, keyword, whitespace
• Language specific analyzers: english, french, german, spanish,
chinese, dutch...
• You can configure different analyzers for different fields
• Some tokenizers omit common words
• Some tokenizers omit common prefixes or suffixes