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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Min Bucket Aggregation 最小分組聚合所定義的桶包含一組聚合指定度量的最小值,并且同時輸出桶的鍵和值。指定的度量必須是數字型而且這個組聚合必須是多桶聚合。 ### 語法 min_bucket聚合結構如下: | `{` `"min_bucket"``: {` `"buckets_path"``:?``"the_sum"` `}` `}` | `<span style="color: rgb(85, 85, 85);">min_bucket</span><span style="color: rgb(68, 68, 68);">參數如下:</span>` | 參數名稱 | 描述 | 是否必填 | 默認值 | | --- | --- | --- | --- | | buckets_path | 想要計算最小值的桶路徑,點擊?[the section called “`buckets_path`?Syntax](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-aggregations-pipeline.html#buckets-path-syntax "buckets_path Syntaxedit")[edit](https://github.com/elastic/elasticsearch/edit/5.4/docs/reference/aggregations/pipeline.asciidoc "Edit this page on GitHub")”查看更多細節 | 必填 | ? | | gap_policy | 當數據缺口出現時采用的策略,點擊[the section called “Dealing with gaps in the data](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-aggregations-pipeline.html#gap-policy "Dealing with gaps in the dataedit")[edit](https://github.com/elastic/elasticsearch/edit/5.4/docs/reference/aggregations/pipeline.asciidoc "Edit this page on GitHub")”查看更多細節 | 可選 | skip | | format | 用于規范聚合輸出值的格式 | 可選 | null | ?以下代碼段計算每月總銷售額的最小值: | `POST?``/sales/_search` `{` `"size"``: 0,` `"aggs"`?`: {` `"sales_per_month"`?`: {` `"date_histogram"`?`: {` `"field"`?`:?``"date"``,` `"interval"`?`:?``"month"` `},` `"aggs"``: {` `"sales"``: {` `"sum"``: {` `"field"``:?``"price"` `}` `}` `}` `},` `"min_monthly_sales"``: {` `"min_bucket"``: {` `"buckets_path"``:?``"sales_per_month>sales"`?`#1` `}` `}` `}` `}` | | 1 | buckets_path指示這個min_bucket聚合是要得到sales_per_month日期直方圖中sales聚合的最小值。 | 可能得到如下的響應: | `{` `"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` `}` `}` `]` `},` `"min_monthly_sales"``: {` `"keys"``: [``"2015/02/01 00:00:00"``],?``#1` `"value"``: 60.0` `}` `}` `}` | | 1 | key是字符串數組,因為最小值可能存在于多個存儲桶中 |
                  <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>

                              哎呀哎呀视频在线观看