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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # include_in_all(_all 查詢包含字段) **include_in_all** 參數用于控制 **_all** 查詢時需要包含的字段.默認為 **true**,除非在 **index** 設置成 **no。** 以下示例如何將 **data** 字段從 **_all** 查詢中剔除 : ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "properties": { "title": { #1 "type": "text" }, "content": { #2 "type": "text" }, "date": { #3 "type": "date", "include_in_all": false } } } } } ' ``` | 1 2 | **title** 字段和 **content** 字段將包含在 **_all** 查詢中。 | | 3 | **date** 字段將不包含在 **_all** 查詢中。 | 注意 **include_in_all** 可以在同一個索引的同一個字段作不同的設置.可以使用 **[PUT mapping API](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/indices-put-mapping.html "Put Mapping")** 相同字段名修改參數值。 **include_in_all?**參數也可作用于**type**(類型)、文檔或者嵌套字段,這樣該作用域下的所有字段將繼承該屬性。例如: ``` curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "my_type": { "include_in_all": false, #1 "properties": { "title": { "type": "text" }, "author": { "include_in_all": true, #2 "properties": { "first_name": { "type": "text" }, "last_name": { "type": "text" } } }, "editor": { "properties": { "first_name": { "type": "text" }, #3 "last_name": { "type": "text", "include_in_all": true } #4 } } } } } } ' ``` | 1 | ?**my_type** 下的所有字段將不包含在 **_all** 查詢中。 | | 2 | **author.first_name** 和?**author.last_name** 將包含在 **_all** 查詢中。 | | 3 4 | 只有?**editor.last_name** 字段包含在 **_all** 查詢中。**editor.first_name** 字段由于繼承 **type**(類型)屬性將不包含在 **_all** 查詢中。 | 備注 **Multi-fields** 和?**include_in_all** **_all** 查詢加入的是原始字段,而不是作用在字段分詞產生的 **terms** 上。因此,在?**[multi-fields](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/multi-fields.html "fields")**?上設置**include_in_all** 為 **true** 將毫無意義,因為每一個?**multi-field** 將繼承父字段而擁有相同的參數值。 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/include-in-all.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/include-in-all.html)(修改該鏈接為官網對應的鏈接) 譯文鏈接 :[http://www.apache.wiki/pages/viewpage.action?pageId=9405298](http://www.apache.wiki/pages/viewpage.action?pageId=9405298)(修改該鏈接為 **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>

                              哎呀哎呀视频在线观看