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

Possible UI or View Issue with Emit of Same Key

1 reply [Last post]
  • Login or register to post comments
Thu, 02/23/2012 - 16:43
drakmir
Offline
Joined: 01/07/2012
Groups: None

Set bucket up with a series of documents.

Create a view with the following map function:

function (doc) {
emit("x", null);
}

Note that the UI shows links for the first document only. Either the doc._id in the emit array is being set incorrectly or the UI is displaying the wrong link.

Note that this works (although it introduces the document id into the key):

function (doc) {
emit(["x", doc._id], null);
}

Top
  • Login or register to post comments
Fri, 02/24/2012 - 18:22
drakmir
Offline
Joined: 01/07/2012
Groups: None

This appears to be a duplicate of

http://www.couchbase.com/forums/thread/duplicates-returned-view-results

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