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

  • Home
  • SEARCH
  • 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 6660313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:08:24+00:00 2026-05-26T02:08:24+00:00

As previously advised I have set up a database on iriscouch. Entered a couple

  • 0

As previously advised I have set up a database on iriscouch. Entered a couple of records.

I read in the CouchDB Guide book, I need to create a map function, in order to see my records

eg

function(doc) {
  if(doc.date && doc.title) {
    emit(doc.date, doc.title);
  }
}

Now where do I put this function. Is it a MySQL like view and saved in the database and how do I get the result to my web page ?

Do I create the view within iriscouch somehow ?

Any guidance gratefully received as it is the usual first tentative steps problem of just not getting the idea and I have yet to find a ‘Hello World’ example which shows all steps.

Thanks

mcl

  • 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-05-26T02:08:25+00:00Added an answer on May 26, 2026 at 2:08 am

    To me, it is similar as files on a computer filesystem. Most files just store data. But some files are also programs which can run and become an application. In CouchDB, all data is stored in documents however some documents activate special behavior in CouchDB. These are called design documents.

    Design documents have an id of _design/example, i.e. it must start with _design/. You can create a document with the Futon tool, just like any other document. Add a key called views with a value of a JSON object:

    { "titles_by_date":
      { "map": "function(doc) { if(doc.date && doc.title) emit(doc.date, doc.title); }"
      }
    }
    

    If you have other questions, there is also the Iris Couch forum any discussion about CouchDB and Iris Couch.

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

Sidebar

Related Questions

Previously I have asked to strip text from a field and convert it to
Previously I've asked about inserting a column into a dataset . I now have
I'm developing a Grails web application (mainly as a learning exercise). I have previously
Thanks @dtb for help, he advised really need piece of code for generic service
HI I have made a maintenance package in that have used shrink database task
I have posted a question on here previously asking similar advise, but this project
I have recently been advised that for my current rails app relationships I should
Previously, I asked the question . The problem is the demands of our file
Previously, I had a class that wrapped an internal System.Collections.Generic.List<Item> (where Item is a
Previously, I was passing information to a Silverlight control inside of the Page_Load method.

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.