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

Views not returning documents

3 replies [Last post]
  • Login or register to post comments
Tue, 06/26/2012 - 04:19
hardlifeofapo
Offline
Joined: 04/19/2012
Groups: None

Hi all,

I've just discovered that some of my views are not returning all documents that they are supposed to return. For instance,

I have this document:

{
  "_id": "stock-babau-droneremix",
  "_rev": "3-0001236666a163e50000003b00000000",
  "$flags": 0,
  "$expiration": 0,
  "jsonType": "stock",
  "stock": 3,
  "product": "babau-droneremix"
}

That is not returned by this view (_design/dev_stock/_view/stock) :

function (doc) {
  if(doc.jsonType == "stock") {
    emit(doc.product,doc.stock);
  }
}

Even if I go for the all cluster data set by accessing server.com:8092/default/_design/dev_stock/_view/stock?full_set=true&connection_timeout=60000

I don't get that document in the results.

Any ideas?

EDIT: I'm running Version: 2.0.0 community edition (build-722-rel) on an Ubuntu x86_64-unknown-linux-gnu

Top
  • Login or register to post comments
Sat, 07/07/2012 - 20:10
ingenthr
Offline
Joined: 03/16/2010
Groups:

I don't immediately see a reason why you wouldn't get it back. Does the log show any errors? Also, did you request multiple times or do stale=false?

There is an open bug where the UI was not showing errors. You may want to try with some other HTTP client (like curl) and see if there is an errors section at the end of the JSON response.

Do you think this can be duplicated with the doc and view described above?

Top
  • Login or register to post comments
Mon, 07/16/2012 - 07:56
chris_stclair
chris_stclair's picture
Offline
Joined: 07/16/2012
Groups: None

Definitely try passing in debug=true to the view request as well. This has helped me out many times.

Top
  • Login or register to post comments
Fri, 07/20/2012 - 10:14
scalabl3
Offline
Joined: 07/18/2012
Groups:

@hardlifeofapo Did you get this worked out? Glad we connected on twitter and email!

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

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