Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8147409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:20:38+00:00 2026-06-06T14:20:38+00:00

I need to learn couchbd and have been going through tutorials on views. I

  • 0

I need to learn couchbd and have been going through tutorials on views. I understand them conceptually, but in practice I am unable to effectively supply view parameters when I query a view. I am following the syntax in examples to the best of my ability. So I have the following simple design document:

{"_id":"_design/simple","_rev":"1-0391fe242d8b6045da1984283287f91c","views":{"foo":{"map":"function(doc) { if(doc.date && doc.title) {emit(doc.date, doc.title);}}"}}}

I can query the view foo without any view parameters and get the following result:

curl http://127.0.0.1:5984/viewtester/_design/simple/_view/foo

produces

{"total_rows":3,"offset":0,"rows":[
{"id":"hello-world","key":"2009/01/15 15:52:20","value":"Hello World"},
{"id":"biking","key":"2009/01/30 18:04:11","value":"Biking"},
{"id":"bought-a-cat","key":"2009/02/17 21:13:39","value":"Bought a Cat"}
]}

But adding a view parameter doesn’t seem to work:

curl http://127.0.0.1:5984/viewtester/_design/simple/_view/foo?key="2009/01/15 15:52:20"

produces no output, just sending me to the next command prompt. I’ve tried various examples with different types of keys and have run into the same issue.

Any insight into what I’m doing wrong would be greatly appreciated.

Thanks, Nowell

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:20:39+00:00Added an answer on June 6, 2026 at 2:20 pm

    Cheeso is right, you have to URL encode your value, not just the "s, but the other chars as well. In fact, replace curl with echo to see what your shell really passes to curl after it has finished processing.

    FWIW, I think most of us hit do our read queries, like hitting views, in a browser – so all the url-encoding is taken care of for us.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to learn RegEx but don't have time to figure this out right
Do I need to learn the WCF Service trace viewer tool? I understand I
I'm lately feeling the need to learn a build tool. I'm looking through StackOverflow
I can do a few things with PowerPoint, but I need to learn more
Ok I promise I'll learn regular expressions tonight but right now I need a
I need to learn UML but from a C# perspective. I'm beginner with C#
So do I really need to learn about them ? Isn't there an interesting
I need to learn Sharepoint, not so much admin functions, but usage/development. Anyone know
I need to learn nHibernate from scratch. I'm a experienced .net developer, but I
Ok, so heres what I need to learn. I have 2 java programs that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.