4 ms·
I think the big missing piece of the puzzle, though, is full-text searching. True, but you can emulate it somewhat by indexing on all keywords of the text. Mo
by _pius 17y ago
I think the big missing piece of the puzzle, though, is full-text searching.
True, but you can emulate it somewhat by indexing on all keywords of the text. MongoDB can index on keys deeply nested in the structure, so you could have a field that's an array of each word in the text and then index on those.
- jherdman 17y agoIndeed, and that's how Business Insider is currently handling search. I'm not sure if this is necessarily a "good" solution though. Thoughts?
- _pius 17y agoGood question, but I don't know enough about this problem to say. It'd be interesting to see some benchmarks comparing a search of a document indexed this way versus, say, a Lucene full-text search.