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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # copy_to(合并參數) **`copy_to`**?參數允許你創建自定義的?**[_all](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/mapping-all-field.html)?**字段.換句換來說,可以將多個字段的值復制到**?`group field`**(組字段),然后可以作為單個字段進行查詢.例如,?**first_name**和?`**last_name**?`可以復制到?**`full_name?`**字段中,如下所示?**:** | `curl -XPUT?``'localhost:9200/my_index?pretty'`?`-H?``'Content-Type: application/json'`?`-d'` `{` `"mappings"``: {` `"my_type"``: {` `"properties"``: {` `"first_name"``: {` `"type"``:?``"text"``,` `"copy_to"``:?``"full_name"`??`#?``1` `},` `"last_name"``: {` `"type"``:?``"text"``,` `"copy_to"``:?``"full_name"`??`#?``2` `},` `"full_name"``: {` `"type"``:?``"text"` `}` `}` `}` `}` `}` `'` `curl -XPUT?``'localhost:9200/my_index/my_type/1?pretty'`?`-H?``'Content-Type: application/json'`?`-d'` `{` `"first_name"``:?``"John"``,` `"last_name"``:?``"Smith"` `}` `'` `curl -XGET?``'localhost:9200/my_index/_search?pretty'`?`-H?``'Content-Type: application/json'`?`-d'` `{` `"query"``: {` `"match"``: {` `"full_name"``: {? #?``3` `"query"``:?``"John Smith"``,` `"operator"``:?``"and"` `}` `}` `}` `}` `'` | | 1 2 | **`first_name`**(名字)和?**`last_name`**(姓氏)字段復制到 **`full_name`**?字段. | | 3 | **`first_name`**(名字)和?**`last_name`**(姓氏)字段仍然可以分別查詢,**`full_name?`**可以通過?**`first_name`**(名字)和?**`last_name`**(姓氏)來查詢. | 一些要點**:** * 復制的是字段值,而不是?**`term`**(詞條)(由分析過程產生). * **`_source`**?字段不會被修改來顯示復制的值.? * 相同的值可以復制到多個字段,通過?**`"copy_to": [ "field_1", "field_2" ]`**?來操作.
                  <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>

                              哎呀哎呀视频在线观看