If I have a Cloudant MapReduce view with year/month/day as the key array, can I query the dataset just by month or just by day?
No. You can query by y/m/d or by y/m or by y. In other words, you are allowed to omit fields, but you cannot have gaps, so you have to start omitting from the right.
Examples:
key=[2022,5,20]
finds everything for one daystartkey=[2022,1]&endkey=[2022,2]
finds everything in Januarystartkey=[2021]&endkey=[2022]
finds everything in 2021
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.