<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Testing analyzers(測試分析器) analyze API是查看分析器生成詞語的一個非常有用的工具。內置的分析器(或結合內置的分詞器,詞語過濾器和字符過濾器)可以在請求中指定內聯: ``` POST _analyze { "analyzer": "whitespace", "text": "The quick brown fox."} POST _analyze { "tokenizer": "standard", "filter": [ "lowercase", "asciifolding" ], "text": "Is this déja vu?"} ``` ##### Positions and character offsets(位置和字符偏移) 從analyze API的輸出可以看出,分析器不僅將單詞轉換為詞語,還記錄了每個詞語(用于短語查詢或近義詞查詢)的順序或相對位置,以及原始文本中每個詞語的起始和結束字符的偏移量(用于突出搜索片段)。 或者,在特定的索引上運行analyze API時,可以參考自定義分析器: ``` PUT my_index { "settings": { "analysis": { "analyzer": { "std_folded": { #1 "type": "custom", "tokenizer": "standard", "filter": [ "lowercase", "asciifolding" ] } } } }, "mappings": { "my_type": { "properties": { "my_text": { "type": "text", "analyzer": "std_folded" #2 } } } }} GET my_index/_analyze { #3 "analyzer": "std_folded", #4 "text": "Is this déjà vu?"} GET my_index/_analyze { #5 "field": "my_text", #6 "text": "Is this déjà vu?"} ``` | 1 | 定義名為std_folded的自定義分析器。 | | 2 | 字段my_text使用std_folded分析器。 | | 3,5 | 要參考此分析器,analyze API必須指定索引名稱。 | | 4 | 按名稱查看分析器。 | | 6 | 請參閱字段my_text使用的分析器。 | 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/getting-started.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/getting-started.html)(修改該鏈接為官網對應的鏈接) 譯文鏈接 : [http://www.apache.wiki/display/Elasticsearch](http://www.apache.wiki/display/Elasticsearch)(修改該鏈接為 **ApacheCN** 對應的譯文鏈接) 貢獻者 : [曾少峰](/display/~zengshaofeng),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina)
                  <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>

                              哎呀哎呀视频在线观看