incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Ollie <j...@ocjtech.us>
Subject Re: Problem using Views
Date Wed, 17 Mar 2010 20:01:27 GMT
On Wed, Mar 17, 2010 at 12:31 PM, Jeffrey Ollie <jeff@ocjtech.us> wrote:
>
> function(doc) {
>  if (doc.record_type ==
> "http://www.geocaching.com/track/details.aspx" && !(typeof
> doc.location === "undefined")) {
>    emit(doc.location, null);
>  }
> }

Ok, I'm confused...  The above works fine as the map function for a
temporary view, but fails when it's used as a permanent view.  Even if
I go into Futon and enter the code into the temporary view, check that
it runs, and then use the "save as" button to convert it to a
permanent view I get the "Cannot encode 'undefined' value as JSON"
error.  What am I missing here?

-- 
Jeff Ollie

Mime
View raw message