Using the couchbase SDK or spring data couchbase, is there a way to look up documents in a [low, high] range of ids, without using an index?
In more details, I have a bucket with document ids structured in the standard ${entityType}::${id}
format, and I would like to get all documents in a certain [low, high] range of ids.
For instance, for the Address entity type, I would like to get all Address documents whose ids are between 1000 and 2000, inclusive. Given only Address::1234, Address::1567 and Address::2222 are in my bucket, only the two first documents should be returned.
I would expect that it is possible since it seems possible in the GUI
but I can't seem to find how.
Lastly, I don't want to use indexes because
- I'm using couchbase community and index replicas are only available in the enterprise edition, which makes manually duplicating them and managing them a pain
- I'm trying to save space on my couchbase server
Couchbase SDK version: 3+, using java