<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                suggest,completion suggest,自動完成,搜索推薦,搜索提示 --> 自動完成,auto completion > 比如說我們在百度,搜索,你現在搜索“大話西游” --> > 百度,自動給你提示,“大話西游電影”,“大話西游小說”, “大話西游手游” 不用你把所有你想要輸入的文本都輸入完,搜索引擎會自動提示你可能是你想要搜索的那個文本 ~~~ PUT /news_website { "mappings": { "news" : { "properties" : { "title" : { "type": "text", "analyzer": "ik_max_word", "fields": { "suggest" : { "type" : "completion", "analyzer": "ik_max_word" } } }, "content": { "type": "text", "analyzer": "ik_max_word" } } } } } ~~~ > completion,es實現的時候,是非常高性能的,會構建不是倒排索引,也不是正拍索引,就是純的用于進行前綴搜索的一種特殊的數據結構,而且會全部放在內存中,所以auto completion進行的前綴搜索提示,性能是非常高的 大話西游 ~~~ PUT /news_website/news/1 { "title": "大話西游電影", "content": "大話西游的電影時隔20年即將在2017年4月重映" } PUT /news_website/news/2 { "title": "大話西游小說", "content": "某知名網絡小說作家已經完成了大話西游同名小說的出版" } PUT /news_website/news/3 { "title": "大話西游手游", "content": "網易游戲近日出品了大話西游經典IP的手游,正在火爆內測中" } ~~~ 搜索: ~~~ GET /news_website/news/_search { "suggest": { "my-suggest" : { "prefix" : "大話西游", "completion" : { "field" : "title.suggest" } } } } ~~~ 基于前綴的搜索提示 在這個實例中,以“大”開始,也能搜到 ~~~ GET /news_website/news/_search { "suggest": { "my-suggest" : { "prefix" : "大", "completion" : { "field" : "title.suggest" } } } } ~~~ ~~~ { "took": 6, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 0, "max_score": 0, "hits": [] }, "suggest": { "my-suggest": [ { "text": "大話西游", "offset": 0, "length": 4, "options": [ { "text": "大話西游小說", "_index": "news_website", "_type": "news", "_id": "2", "_score": 1, "_source": { "title": "大話西游小說", "content": "某知名網絡小說作家已經完成了大話西游同名小說的出版" } }, { "text": "大話西游手游", "_index": "news_website", "_type": "news", "_id": "3", "_score": 1, "_source": { "title": "大話西游手游", "content": "網易游戲近日出品了大話西游經典IP的手游,正在火爆內測中" } }, { "text": "大話西游電影", "_index": "news_website", "_type": "news", "_id": "1", "_score": 1, "_source": { "title": "大話西游電影", "content": "大話西游的電影時隔20年即將在2017年4月重映" } } ] } ] } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看