CodeIgniter Forums
Unique tags with MongoDB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Unique tags with MongoDB (/showthread.php?tid=48729)



Unique tags with MongoDB - El Forum - 01-26-2012

[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!


Unique tags with MongoDB - El Forum - 01-30-2012

[eluser]MaartenDeGroote[/eluser]
Nobody?


Unique tags with MongoDB - El Forum - 01-30-2012

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


Unique tags with MongoDB - El Forum - 01-30-2012

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