News for hackers. Stuff that matters.
Re:Full Text Search in Mongo by ChrisFulstow on Sunday March 27, 2011 @08:17PM (#2376528)
This isn't really supposed to be a proper full-text index feature, instead it's building a rudimentary inverted index using a string array property. It's possible to create indexes over array properties in MongoDB, which is very cool, and increases performance to an extent. But even with an index, this approach to full-text was much slower for me than an equivalent search against the same data in Lucene.

I'd love to see a MongoDB component that replicates data from the oplog to a dedicated full-text store like Lucene or Solr.

Re:Full Text Search in Mongo by rb2k_ on Monday March 28, 2011 @04:56AM (#2377681)
> I'd love to see a MongoDB component that replicates data from the oplog to a dedicated full-text store like Lucene or Solr.

Photovoltaic does this: https://github.com/mikejs/photovoltaic

I haven't had time to play arround with it yet though :(

Re:Full Text Search in Mongo by rabidsnail on Sunday March 27, 2011 @08:54PM (#2376614)
How are you doing your tokenization and stemming? I find it hard to believe that the actual token lookup is slower.
Re:Full Text Search in Mongo by ChrisFulstow on Sunday March 27, 2011 @09:12PM (#2376659)
Tokenization was a simple string split on whitespace, and no stemming. It was quite a large Mongo dataset, so only a fraction of the index and data would've been in memory, it could've easily been quicker for a smaller dataset living in memory. For me, one of the benefits of Lucene is the powerful built-in query parsing, tokenization, analyzers, etc.
Re:Full Text Search in Mongo by rabidsnail on Sunday March 27, 2011 @11:21PM (#2376993)
The performance probably would have been better if the dataset (or at least the portion of the dataset that gets touched frequently) was smaller. But why wouldn't lookup in lucene be at least as slow?