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

Partial Selection and Key Ranges

2 replies [Last post]
  • Login or register to post comments
Sun, 02/10/2013 - 13:28
mattds
Offline
Joined: 02/05/2013
Groups: None

Hi,

The "Partial Selection and Key Ranges" section of the documentation (http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writi...) mentions appending \u0000 to the startkey to get an endkey that will limit returned keys to be those prefixed by the startkey. This doesn't seem to work, is this a mistake in the documentation, I see elsewhere mention of \uefff which seems to work for this.

Thanks,
Matt

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

Hello Matt,

You are right it looks like a bug in our documentation, most of the time developer are using as you state "\uefff" or "\u02ad".
http://blog.couchbase.com/understanding-letter-ordering-view-queries

So if you are looking for a range for all key starting with A you can do

 ?startkey="A"&startkey="A\uefff"

I have capture this issue in the following bug: http://www.couchbase.com/issues/browse/MB-7722

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Tue, 02/12/2013 - 09:54
mattds
Offline
Joined: 02/05/2013
Groups: None

Thanks Tug

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