<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 腳本變化(Scripting changes ) 1\. 移除Groovy, JavaScript, and Python等腳本語言 roovy, JavaScript, and Python等腳本語法已經在5.0版不再推薦使用,現在這些腳本語言已經被移除.取而代之的是推薦是painless語言. 2\. 移除本地腳本 本地腳本都被移除,取而代之的是,請實現"ScriptEngine" 3\. 移除腳本文件 腳本文件已經都被移除.取而代之的是使用存儲腳本.同時,關聯設置"path.scripts"也已經被移除. 4\. 日期字段現在返回日期 由于使用epoch(時間點)過長,在"doc.some_date_field.value"中的字段現在返回"ReadableDateTime"取代milliseconds.同樣的還有doc.some_date_field[some_number].如果你需要獲取毫秒數,你可以使用doc.some_date_field.value.millis來獲取毫秒數 5\. 移除通過索引內部變量"_index"來訪問索引 "_index"變量已經被移除.如果你需要使用它來進行高級評分,請考慮自己實現一個"Similarity"插件. 6\. 腳本設置 所有存在腳本安全的設置都被移除.取而代之的是兩個新的設置,script.allowed_types和script.allowed_contexts 7\. 當存儲腳本作為請求的一部分時,不再需要指定"lang"參數 當發送存儲腳本請求時,"lang"參數不再需要進行指定,否則會出現一個錯誤.請注意,一個使用存儲腳本的請求不同于一個設置存儲腳本的請求.腳本語言已經存儲為集群狀態的一部分,“id”足以訪問執行存儲腳本所需的所有信息. The?`lang`?variable can no longer be specified as part of a request that uses a stored script otherwise an error will occur. Note that a request using a stored script is different from a request that puts a stored script. The language of the script has already been stored as part of the cluster state and an?`id`?is sufficient to access all of the information necessary to execute a stored script. 8\. 當進行腳本設置,獲取,或者刪除一個存儲腳本的時候,腳本參數"lang"不再使用 當你在"_scripts"路徑下使執行put,get,和delete操作的時候,不再需要指定"lang"參數作為url請求的一部分.所有的存儲腳本必須有一個唯一的"id"作為唯一的命名空間,而不再需要"lang"和"id"一起作為唯一的命名空間. Stored scripts can no longer have the?`lang`?parameter specified as part of the url when performing PUT, GET, and DELETE actions on the?`_scripts/`?path. All stored scripts must have a unique?`id`?as the namespace is only?`id`?now and no longer?`lang`?and?`id`. 9\. 移除存儲查詢模板API 使用"_search/template" api 進行 put,get 和 delete操作都被移除.存儲查詢模板API已經被存儲腳本API取代. 例如,之前你可能存儲了如下查詢模板: ~~~ PUT /_search/template/custom_template { "query": { "match": { "f1": "{{f1}}" } } } ~~~ 取而代之的是如下的存儲腳本: ~~~ PUT /_scripts/custom_template { "script": { "lang": "mustache", "source": { "query": { "match": { "f1": "{{f1}}" } } } } } ~~~
                  <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>

                              哎呀哎呀视频在线观看