The Stochastic Game

Ramblings of General Geekery

Posts with tag 'mongodb'

    MongoDB for Lucene and ASP.NET

    My latest home project (yet to be announced) is using MongoDB for storage, which led me to write a couple of libraries you may be interested in if you use that kind of database. Keep reading for the details. MongoDB directory for Lucene MongoDB.Lucene is what you would expected given the name: a MongoDB backend for Lucene indexes. It’s a simple port of the standard FSDirectory using Mongo’s GridFS storage. I’m sure there’s a lot of room for improvement (performance, storage efficiency, lock reliability), but it’s working well enough for small applications.

    Formatting mongo output

    If you’re working with MongoDB’s mongo command line tool and you often see yourself reading through this: > db.contactInfos.find({"source":ObjectId("4e39da93058cfe28a039b546")}) { "_id" : ObjectId("4e6e9a9f058cfe01dc1bcded"), "source" :ObjectId("4e39da93 058cfe28a039b546"), "sourceId" : "754731", "sourceUserName" : "loudej", "ful lName" : "Louis DeJardin", "description" : "A software guy on the ASP.NET te am and author of Spark", "avatarUrl" : " 161371928/DSC01367_normal.jpg", "websiteUrl" : "", "location" : "Kenmore, WA", "friendCount" : 97, "followerCount" : 1428 } { "_id" : ObjectId("4e6e9a9f058cfe01dc1bcdf3"), "source" : ObjectId("4e39da9 3058cfe28a039b546"), "sourceId" : "16925866", "sourceUserName" : "sebastienr os", "fullName" : "Sébastien Ros", "description" : "", "avatarUrl" : "http:/ /a1.