Meaningless Drivel is fun!*
The moose likes MongoDB and the fly likes Text analytics on MongoDb documents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » MongoDB
Bookmark "Text analytics on MongoDb documents" Watch "Text analytics on MongoDb documents" New topic

Text analytics on MongoDb documents

jagdev bhogal

Joined: Apr 24, 2012
Posts: 3
How do you do text analytics with the documents that are stored in mongodb?
Rick Copeland

Joined: Apr 09, 2013
Posts: 17
I'm not sure I completely understand the question, but I'll give it a shot anyway....

Just to be clear starting out: "documents" in MongoDB are actually JSON-like objects, not text documents like you'd maybe use with Microsoft Word or other word processors.

As to how you can do text analytics on fields within MongoDB documents, you can use the recently released full text search to do searching, and there are a limited number of string-processing functions within the aggregation framework, but in general I'd say that text processing isn't the best use case for MongoDB.

If you decide to do it anyway, you could certainly use MongoDB as the persistence layer of your analytics engine, but it's not going to provide you with many benefits over any other persistence engine.

Hope that helps!

My book: [MongoDB Applied Design Patterns]
My blog: [Just a Little Python]
I agree. Here's the link:
subject: Text analytics on MongoDb documents
Similar Threads
How to use regular expressions
MongoDb vs CouchDb ?
How to save parent child objects in mongodb
Connection to a MongoDB
MongoDB To Oracle Using Java