I'm using com.couchbase.client
maven dependency in java spring project. I fetch a couchbase document from code in following way:
JsonDocument document = bucket.get(id); //matches id case sensitively
But i've got a new requirement. I have to fetch the documents based on case insensitive matching of id.
For example:
Let's say couchbase has a document with id heLLo_Doc
When i execute bucket.get("hello_doc")
i want the document with id heLLo_Doc
to be returned. If there are more than one document with same lowercase id(ex: Hello_Doc
,hEllo_doc
etc) i need to get all those documents.
Is there any method provided by couchbase to do this?
The worst way to do this is to search for all possibilities, that i don't want to do.