Page 283 - HTTP权威指南
P. 283

用户
                                                                              Web服务器


                     用户

                                 Web搜索网关      全文索引数据库 搜索引擎爬虫/索引器              Web服务器
                     用户



                     用户                                                       Web服务器
                   Web搜索用户                查询索引                          爬行及索引

               图 9-7 产品级搜索引擎中包含了一些协作的爬虫和查询网关

               图 9-8 显示了三份文档和相应的全文索引。全文索引列出了包含每个单词的文档。


                                                         单词     文档
                                                       a         A B
                                                       best      A  C
                                 A                     buy       A
                                                       drill     A B
                                  We have the best     electric  A
                                    tools,like the
                                   WorkMaster 5000     fat          C
                                  electric drill. Buy a   fire    B
                                  drill from us today!  from     A
                                 B                     have      A
                                                       into       B
                                  The routine fire     know         C
                                   drill turned into   lose         C

                                  a tragedy today...   routine    B  C
                                                       the       A  B C
                                 C                     to           C
                                                       today     A  B
                                   We know the         tools     A
                                   best routine        tragedy    B
                                    to lose fat.       turned     B
                                                       us        A
                                                       we        A  C
                                                       workmaster  A

               图 9-8 三份文档和一个全文索引

               比如:

               •   单词“a”位于文档 A 和 B 中;



               256   |   第 9 章
   278   279   280   281   282   283   284   285   286   287   288