couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni P <fiat...@gmail.com>
Subject Re: Export question
Date Thu, 05 Feb 2015 19:05:50 GMT
Why do you want that? Values that are surrounded by quotes are strings. Do
you want strings? You just need to convert your values to strings when
emitting them, like

function(doc) {
  emit([doc.user.friends_count.toString(), doc.user.followers_count
.toString(), doc.retweet_count.toString(), doc.text], doc.id_str);
}

On Tue, Feb 3, 2015 at 10:37 PM, Ayhan Kesenci <a.kesenci89@googlemail.com>
wrote:

> I export a view with a curl command
>
> and the view looks like this in the map
>
> function(doc) {
> emit([doc.user.friends_count,
> doc.user.followers_count,doc.retweet_count,doc.text], doc.id_str);
> }
>
>
> is it possible to surround the for example doc.user.friends_count with
> quote signs, to have it like this with the usual comma between the quote
> signs?
>
>
> "doc.user.friends_count","
> doc.user.followers_count","doc.retweet_count","doc.text"
>
> thank you
>
> 2015-02-04 1:31 GMT+01:00 Ayhan Kesenci <a.kesenci89@googlemail.com>:
>
> > I export a view with a curl command
> >
> > and the view looks like this in the map
> >
> > function(doc) {
> > emit([doc.user.friends_count,
> > doc.user.followers_count,doc.retweet_count,doc.text], doc.id_str);
> > }
> >
> >
> > is it possible to surround the for example doc.user.friends_count with
> > quote signs, to have it like this with the usual comma between the quote
> > signs?
> >
> >
> > "doc.user.friends_count","
> > doc.user.followers_count","doc.retweet_count","doc.text"
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message