Questions tagged [couchapp]

CouchApps are JavaScript and HTML5 applications served directly from CouchDB.

CouchApps are JavaScript and HTML5 applications served directly from CouchDB.

224 questions
1
vote
1 answer

Group documents by _id but allow for searching by other values

I have documents and a view where you can search by the keywords list. A document may look like: { _id: "foo", keywords: ["bar", "baz"], } Then, I have the view: map: function (doc) { doc.keywords.forEach(function(word) { …
Explosion Pills
  • 188,624
  • 52
  • 326
  • 405
1
vote
1 answer

CouchDB templating system: extend with separate footer & header

I'm using couchdb\couchapp to host a web application. I comes from Django, and with jinja2 I'm able to extend templates in two ways: {% include "header.html" %} or {% extends "base.html" %} <<<---- preferred I'm looking for a way to do the same…
Guido
  • 319
  • 2
  • 9
1
vote
1 answer

Error while installing couch DB version 1.5.1

While installing couch DB 1.5.1 from source, in the step where make is called I get this error make[1]: *** No rule to make target `THANKS', needed by `THANKS.gz'. Stop. make[1]: Leaving directory `/somedir' make: *** [install-recursive] Error…
Abbyss
  • 155
  • 1
  • 9
1
vote
2 answers

How to import a Javascript library in a List Functions

Is there a way to import "external" Javascript libraries for use in List Functions in CouchDB? I am trying to build a List Function that will perform a XSL Transformations and I was hoping to be able to use the Sarissa library. EDIT: Please see my…
lalibi
  • 3,057
  • 3
  • 33
  • 41
1
vote
1 answer

CouchDB "couchapps" in Erlang?

I'm not a javascript guy. I'd like to (if possible) write CouchDB applications which live inside CouchDB using Erlang, not javascript. Before I go any further, there are at least 2 usages of the term "couchapp." One usage is an application living…
user3355020
  • 315
  • 1
  • 9
1
vote
1 answer

How to renew session in CouchDB

I am using COUCHDB built in Session API in my application. I now want to renew the session as every user logs in, also i do not want to give a long expiry time to the session.
1
vote
1 answer

Efficient bulk deletion of documents in couch DB

I have a database where I need to remove documents with a regular interval. It is going to be in the ballpark of 100k documents per batch. As of today that is achieved by first doing a request to a view which returns a list of the _id:s and _rev:s…
Einar Sundgren
  • 4,325
  • 9
  • 40
  • 59
1
vote
1 answer

jQuery Ajax PUT an attachment to CouchDB doc

I have code that does POST attachments to Couch docs using jquery.form.js. That's all good, but I really need to allow the user to enter multiple files in the form, let's say 5 files for now, then in code iterate the five files in the form, creating…
Locohost
  • 1,682
  • 5
  • 25
  • 38
1
vote
1 answer

How can I return a JSON object using the jquery.couch.js API?

So I am able to create an HTML design document (CouchApp) that queries a view, runs some calculations, then puts everything into a nice JSON object and display the raw object in the browser/console, but I am wondering if there is a way to have the…
Brian
  • 1,703
  • 3
  • 17
  • 23
1
vote
1 answer

CouchDB: representing NVL() in view

I'm writing a Couchdb _design document for the SQL command below: SELECT NVL(MAX(NVL(VERSION,0)),0)+1 FROM pricelistdocs WHERE PRICE_LIST_ID = ? AND DELETION_FLAG = 0; I came up with a _design view function below while run and return values but I…
Origin
  • 47
  • 8
1
vote
1 answer

CouchDB port 80

Is it possible to run couchdb on port 80? I'm looking to host a couchapp from it and don't want my users to have to type a port number in the url. When I change the port to 80 in the couchdb config it becomes unavailable, and I have no access to it…
skinneejoe
  • 3,921
  • 5
  • 30
  • 45
1
vote
1 answer

CouchDB, Kanso, File Upload Error

I'm trying to attach files to CouchDB documents when they are created. This is the HTML code:
1
vote
1 answer

Reuse of functions across couchdb views using commonjs pattern

There are a number of functions I want to use across various couchdb view map functions. I am trying to use the commonjs require pattern. Using the following design doc why does the test1 require statement work whereas the test2 require statement…
johowie
  • 2,475
  • 6
  • 26
  • 42
1
vote
2 answers

CouchDB-Lucene index function doesn't work with external code

I'm using CouchDB-Lucene for retrieving data from some of my tables in my database. The thing is that I have to parse that data to know which ones I want to put in my lucene index. So, I thought that I could use a class that I already wrote to…
1
vote
1 answer

couchdb session and IE8

I am writing a couchapp, which uses the couch.jquery.js library. When I login to the site with ie8, i get a successful login (it returns ok, and a login id), but when I query the session, I get a userCtx.name of null (just like if the login didn't…
ddouglascarr
  • 1,334
  • 3
  • 14
  • 23