Home  >  Article  >  Backend Development  >  请老师帮忙,难道每一句都做了索引?解决思路

请老师帮忙,难道每一句都做了索引?解决思路

WBOY
WBOYOriginal
2016-06-13 13:33:34762browse

请老师帮忙,难道每一句都做了索引?
百度搜索“广告植入现代商业社会是很正常的“可以完全匹配出这一句话,我在想,难道百度把搜索的文章第一个句子都拆分保存到数据库当中,并作了索引?不然怎么那么快的匹配出来呢?但仔细一想也不太可能啊?汉字最少也得5000字以上不算标点符号,如果这样不规则的组合,得组合成多少句不一的句子啊?光9位数字就可以组合这么多了:
9^9=387420489 何况5000字,?请老师解释一下。

------解决方案--------------------
全文索引

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn