Using a URI as the key to documents
Mon, 01/21/2013 - 15:33
I am trying to use http URIs (for example, http://id.latize.com/e/gpe/Singapre) as keys to my document. It works fine for storage and retrieval using the java client. I am trying to create a view. In the view code, I get syntax errors when I refer to my key as doc.http://id.latize.com/e/gpe/Singapore. Any suggestions are most welcome. Thanks.
Hello,
Do you mind giving us a full example:
- document structure
- view code
- error message
I have done a very simple test without issue.
Also when you are talking about key, to the document, remember that a key (document key for operation) has a maximum size of 250 bytes:
http://www.couchbase.com/docs/couchbase-devguide-2.0/couchbase-keys.html
Regards
Tug
@tgrall