You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi everyone
I was trying to retrieve all occurrences of a headline field in my collection but I got only an array of my headlines. Could you tell me if it is possible to get an string of this array?
Below my pipeline:
[{$match: {
dtNews:{$gt: "2019-10-01"}
}}, {$project: {
str_title:1
}}, {$group: {
_id: null,
tex: {
$addToSet: "$str_title"
}
}}]
Ezequias.
Tom Hollander
unread,
Mar 1, 2020, 12:57:25 AM3/1/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi Ezequias -
This isn't a direct answer to your question since I don't have full context on your collection - but you may want to check out MongoDB Charts which has a Word Cloud chart type. Even if you want to build a word cloud your own way, you may be able to use the aggregation query generated by Charts.
HTH
Tom
Stennie
unread,
Mar 1, 2020, 9:25:55 PM3/1/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message