Welcome Guest, Not a member yet? Register   Sign In
Unique tags with MongoDB
#1

[eluser]MaartenDeGroote[/eluser]
Hi all,

I recently started working with MongoDB and the MongoDB Library provided by Alex Bilbie.

I have playing a bit with CouchBD and KansoJS before but wanted to stick with php. However, with KansoJS it was fairly easy to get all unique tags out of documents with the following structure

Code:
{
"type": "blog_entry",
"title": "title1",
"tags": ["art", "music", "fashion"]
}

{
"type": "blog_entry",
"title": "title2",
"tags": ["art", "lifestyle"]
}


{
"type": "blog_entry",
"title": "title3",
"tags": ["books", "lifestyle", "cars"]
}

Is it possible to do this easily with the library?

Thanx!
#2

[eluser]MaartenDeGroote[/eluser]
Nobody?
#3

[eluser]CroNiX[/eluser]
You'd have better luck asking the author of that 3rd party library.
#4

[eluser]MaartenDeGroote[/eluser]
* Hoping he will read this too Smile *




Theme © iAndrew 2016 - Forum software by © MyBB