V
V
Vladimir Sokolovsky2011-07-29 12:30:44
MongoDB
Vladimir Sokolovsky, 2011-07-29 12:30:44

Full text search on mongodb

The official mongodb documentation has an example of the implementation of full-text search, when strings are split into an array of words. But isn't this duplication of data? Plus, I have data in the database - full-fledged html pages that contain a bunch of tags and other repetitive information. Maybe someone faced such problem and can suggest a more elegant solution for full-text search?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sajgak, 2011-07-29
@sajgak

tags are a way out in some situations, but definitely not in yours (I don’t understand why fully rendered pages should be stored in the database, but we’re not talking about that). In your case, any search engine will do. I use the sphinx and am happy as an elephant

D
DanielWolf, 2011-07-29
@DanielWolf

I advise you to use Solr as a search engine
http://lucene.apache.org/solr/

A
Andrey Shaydurov, 2011-07-30
@GearHead

Solution #1: Solr, Elastic Search and other lucene-based bugs: they accept any ID format unlike Sphinx
Solution #2: There are sphinx screwing modules for mongo in different languages. you would specify a platform, it would be easier to advise. For example, I wrote my gem for Ruby on Rails for this purpose.

U
un1t, 2012-12-05
@un1t

Try Sphinx, it's easy to screw on. Example here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question