<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Percentiles Bucket Aggregation(百分數桶聚合) 同級管道聚合,它計算同級聚合中指定度量的所有桶的百分位數。指定度量必須是數字,并且同級聚合必須是多桶聚合。 ## Syntax(語法) 百分數聚合看起來像這樣: | `{` `"percentiles_bucket"``: {` `"buckets_path"``:?``"the_sum"` `}` `}` | ? ## Table?8.?`sum_bucket`?Parameters(Table 8\. sum_bucket參數) | 參數名稱 | 描述 | 是否必要 | 默認值 | | --- | --- | --- | --- | | `buckets_path` | 我們希望找到的數據的桶的路徑(相關詳細信息,請參閱"buckets_path Syntax"一節) | 必須 | ? | | `gap_policy` | 在數據中找到差異時應用的策略(相關詳情,請參閱“Dealing with gaps in the data”一節) | 可選 | `skip` | | `format` | 應用于此聚合的輸出值的格式 | 可選 | `null` | | `percents` | 要計算的百分數列表 | 可選 | `[ 1, 5, 25, 50, 75, 95, 99 ]` | 以下代碼計算每月sales桶總數的百分數: | `POST /sales/_search` `{` `"size"``:?``0``,` `"aggs"`?`: {` `"sales_per_month"`?`: {` `"date_histogram"`?`: {` `"field"`?`:?``"date"``,` `"interval"`?`:?``"month"` `},` `"aggs"``: {` `"sales"``: {` `"sum"``: {` `"field"``:?``"price"` `}` `}` `}` `},` `"percentiles_monthly_sales"``: {` `"percentiles_bucket"``: {` `"buckets_path"``:?``"sales_per_month>sales"``,?? #``1` `"percents"``: [?``25.0``,?``50.0``,?``75.0`?`]?????????? #``2` `}` `}` `}` `}` | | 1 | buckets_path指示這個為percentiles_bucket聚合,我們希望在sales_per_month數據直方圖中計算sales聚合的統計數據。 | | 2 | percents指定了我們希望計算的百分數,在這里,是第25,第50和第75百分數。 | 以下是響應信息: | `{` `"took"``:?``11``,` `"timed_out"``:?``false``,` `"_shards"``: ...,` `"hits"``: ...,` `"aggregations"``: {` `"sales_per_month"``: {` `"buckets"``: [` `{` `"key_as_string"``:?``"2015/01/01 00:00:00"``,` `"key"``:?``1420070400000``,` `"doc_count"``:?``3``,` `"sales"``: {` `"value"``:?``550.0` `}` `},` `{` `"key_as_string"``:?``"2015/02/01 00:00:00"``,` `"key"``:?``1422748800000``,` `"doc_count"``:?``2``,` `"sales"``: {` `"value"``:?``60.0` `}` `},` `{` `"key_as_string"``:?``"2015/03/01 00:00:00"``,` `"key"``:?``1425168000000``,` `"doc_count"``:?``2``,` `"sales"``: {` `"value"``:?``375.0` `}` `}` `]` `},` `"percentiles_monthly_sales"``: {` `"values"`?`: {` `"25.0"``:?``375.0``,` `"50.0"``:?``375.0``,` `"75.0"``:?``550.0` `}` `}` `}` `}` | ## Percentiles_bucket implementation(Percentiles_bucket實現) 百分數桶返回最近輸入的數據點,該數據點不大于所請求的百分數;它不會在數據點之間插值。 百分數是精確計算的,不是近似值(與百分數指標不同)。這意味著在丟棄數據之前,實現會在內存中維護一個有序的數據列表來計算百分數。如果你嘗試在數百萬的數據點中計算一個百分數的percentiles_bucket,可能會遇到內存壓力問題。
                  <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>

                              哎呀哎呀视频在线观看