Answer the question
In order to leave comments, you need to log in
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
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
I advise you to use Solr as a search engine
http://lucene.apache.org/solr/
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question