Given a key in a collection , no doc is returned

      Given a key & using get document by key in a collection , no doc is returned,Provide the code is correct. 

And the documents also has the Key value.And i have around 9000 documents in the view.

Subject: given a key in a collection , no doc is returned

Hi,

Is your first column sorted?

do you seaach for the same type of value for your key? (String, int)?

JYR

For faster answers, be C R I S P Y

Subject: given a key in a collection , no doc is returned

Make sure your code has the right server and right database. Though the code is right, there may be chance that you might access your local or db on a different server. Then check if your view’s first column is sorted.