The most basic framework of search is word segmentation + inverted index. Weights and so on are all details of the model (of course, for Baidu and Google, this is the most important thing, they need to go up pagerank and so on).
The set operation of redis is simply customized for inverted index.
I use Lucene more, which is more customizable, but the amount of development and maintenance is slightly larger. I recently tried to use Souyi's in-site search engine, which is good for websites with small and medium-sized data volumes.
The most basic framework of search is word segmentation + inverted index. Weights and so on are all details of the model (of course, for Baidu and Google, this is the most important thing, they need to go up pagerank and so on).
The set operation of redis is simply customized for inverted index.
In fact, there are many ways to search. You can refer to this answer http://segmentfault.com/q/1010000000663373/a-1020000000702395
I use Lucene more, which is more customizable, but the amount of development and maintenance is slightly larger. I recently tried to use Souyi's in-site search engine, which is good for websites with small and medium-sized data volumes.