<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之旅 廣告
                # Convert Processor(轉換處理器) 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/5.3/convert-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/convert-processor.html) 譯文鏈接 : [http://www.apache.wiki/pages/viewpage.action?pageId=9406810](http://www.apache.wiki/pages/viewpage.action?pageId=9406810) 貢獻者 : [那伊抹微笑](/display/~wangyangting),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) 將現有 **field**(字段)的 **value**(值)**converts**(轉換)為 **different** **type**(不同的類型),例如將 **string** 轉換為 **integer**。如果字段的值是 **array**(數組),則會轉換所有的成員。 所支持的 **type**(類型)包括 :?**integer**,**float**,**string**,**boolean**,和 **auto**。 指定的類型為 **boolean** 的情況下,如果該字段的 **string** **value**(字符串值)與 **true** 相等(忽略大小寫),則將該 **field**(字段)設置為 **true**。如果該字段的 **string** **value**(字符串值)與 **false** 相等(忽略大小寫),則將該 **field**(字段)設置為 **false**,否則將拋出 **exception**(異常)。 執行的類型為 **auto** 的情況下,將會嘗試將 **string-valued**(字符串值類型的)**field**(字段)轉換為最接近的 **non-string type**(非字符串類型)。例如,字段值為 “**true**” 的情況下將會被轉換為相應的 **boolean type**(布爾類型): **true**。如果字段的值為 “**242.15**”,將會被自動轉換為 **242.15** 的 **float** 類型。如果所提供的 **field**(字段)不能被正確的轉換,則 **Convert** **processor** 仍將會成功的處理,并按原樣保留字段值。在這種情況下,**target_field?**仍將使用未轉換的字段值更新。 ## Table?15.?Convert Options(表 15\. 轉換選項) | Name(名稱) | Required(必要的) | Default(默認值) | Description(描述) | | --- | --- | --- | --- | | **`field`** | **yes** | - | 將要轉換其值的 **field**(字段)。 | | **`target_field`** | **no** | **`field`** | 指定轉換結果的 **field**(字段),默認情況下更新到原來的 **field** 上。 | | **`type`** | **yes** | - | 轉換現有值的 **type**。 | | **`ignore_missing`** | **no** | **`false`** | 如果為 **true** 的情況下,并且該 **field** 不存在或者是 **null**,則該 **processor**(處理器)將靜默退出而不修改文檔。 | ``` { "convert": { "field" : "foo", "type": "integer" } } ```
                  <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>

                              哎呀哎呀视频在线观看