<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之旅 廣告
                # index_options(索引設置) **index_options**?參數用于控制添加到倒排索引中的信息,服務于搜索和高亮等目的。他可以包括以下參數: **docs**: 只有文檔編號被索引。能夠回答的問題只有此?**term**(詞條)是否存在于此字段。 **freqs**:文檔編號和 **term**(詞條)的頻率會被索引。**term**(詞條)頻率用于給搜索評分,重復出現的?**term**(詞條)評分將高于單個出現的 ?**term**(詞條)。 **positions**:文檔編號、**term frequencies**(詞條頻率)和 **term**(詞條)位置(或順序)將被索引。**Position**被用于?**[proximity](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-match-query-phrase.html "Match Phrase Query")?queries?**(鄰近查詢)和**?[phrase queries](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-match-query-phrase.html "Match Phrase Query")**(短語查詢)。 **offsets**: 文檔編號、**term**(詞條)頻率,位置,起始和結尾字符偏移量(用于映射該?**term?**(詞條)到原始字符串)將被索引。**Offset**用于**[postings highlighter](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/search-request-highlighting.html#postings-highlighter "Postings highlighter")**。 被分析器分析的字符串字段使用?**position?**作為默認值,其他的字段使用?**docs?**作為默認值。 ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "properties": { "text": { "type": "text", "index_options": "offsets" } } } } } ' curl -XPUT 'localhost:9200/my_index/my_type/1?pretty' -H 'Content-Type: application/json' -d' { "text": "Quick brown fox" } ' curl -XGET 'localhost:9200/my_index/_search?pretty' -H 'Content-Type: application/json' -d' { "query": { "match": { "text": "brown fox" } }, "highlight": { "fields": { "text": {} #1 } } } ' ``` | 1 | ?**text**?字段將使用**postings highlighter**?作為默認值,因為他的索引配置為?**offsets**。 | 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/index-options.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/index-options.html)(修改該鏈接為官網對應的鏈接) 譯文鏈接 : [http://www.apache.wiki/pages/viewpage.action?pageId=9405579](http://www.apache.wiki/pages/viewpage.action?pageId=9405579)(修改該鏈接為 **ApacheCN** 對應的譯文鏈接) 貢獻者 : [郭峰](/display/~guofeng),[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>

                              哎呀哎呀视频在线观看