Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Using a URI as the key to documents

1 reply [Last post]
  • Login or register to post comments
Mon, 01/21/2013 - 15:33
spraja08
Offline
Joined: 01/21/2013
Groups: None

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.

Top
  • Login or register to post comments
Tue, 01/22/2013 - 07:32
tgrall
Offline
Joined: 09/05/2012
Groups: None

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

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker