<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之旅 廣告
                # Range 原文鏈接: [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/range.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/range.html) 譯文鏈接: [http://www.apache.wiki/pages/editpage.action?pageId=10031152](http://www.apache.wiki/pages/editpage.action?pageId=10031152) 貢獻者: [張學](/display/~zhangxue),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) 支持以下范圍類型: | **`integer_range`** | 32位有符號整型數范圍。最小值是-231,最大值是`231-1。` | | **`float_range`** | 單精度32位IEEE 754浮點值范圍。 | | **`long_range`** | 64位有符號整型數范圍。最小值是-263,最大值是263`-1。` | | **`double_range`** | 雙精度64位IEEE 754浮點值范圍。 | | **`date_range`** | 以系統紀元經過的無符號64位整數毫秒表示的日期值范圍。 | 以下是使用各種范圍字段配置映射的示例,后跟跟蹤多個范圍類型的示例。 ``` PUT range_index { "mappings": { "my_type": { "properties": { "expected_attendees": { "type": "integer_range" }, "time_frame": { "type": "date_range", #1 "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis" } } } } } PUT range_index/my_type/1 { "expected_attendees" : { #2 "gte" : 10, "lte" : 20 }, "time_frame" : { #3 "gte" : "2015-10-31 12:00:00", #4 "lte" : "2015-11-01" } } ``` 以下是date_range查詢的一個例子,該日期字段名為“time_frame”。 ``` POST range_index/_search { "query" : { "range" : { "time_frame" : { #5 "gte" : "2015-10-31", "lte" : "2015-11-01", "relation" : "within" #6 } } } } ``` 上述查詢產生的結果。 ``` { "took": 13, "timed_out": false, "_shards" : { "total": 2, "successful": 2, "failed": 0 }, "hits" : { "total" : 1, "max_score" : 1.0, "hits" : [ { "_index" : "range_index", "_type" : "my_type", "_id" : "1", "_score" : 1.0, "_source" : { "expected_attendees" : { "gte" : 10, "lte" : 20 }, "time_frame" : { "gte" : "2015-10-31 12:00:00", "lte" : "2015-11-01" } } } ] } } ``` | 1 | **date_range**類型接受由日期類型定義的相同字段參數。 | | 2 | 舉辦與10至20名與會者的會議舉例。 | | 3 | 日期范圍接受與**date range queries**(日期范圍查詢)中所述相同的格式。 | | 4 | 示例日期范圍使用日期時間戳。 這也接受日期數學格式,或者系統時間的“**now**”。 | | 5 | **Range queries**(范圍查詢)與**range query**(范圍查詢)中所述相同。 | | 6 | 范圍查詢范圍字段支持一個關系參數,可以是**WITHIN**,**CONTAINS**,**INTERSECTS**(默認)之一。 | ### range字段的參數 **range**字段接受一下參數: | [`coerce`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/coerce.html "coerce") | 嘗試將字符串轉換為數字并截斷整數的分數。 接受**true**(默認)和**false**。 | | [`boost`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-boost.html "boost") | 映射字段級查詢時間提升。 接受一個浮點數,默認為**1.0**。 | | [`include_in_all`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/include-in-all.html "include_in_all") | 字段值是否應包含在**_all**字段中? 接受**true**或者**false**。 如果**index**設置為**false**,或者如果父對象字段將**include_in_all**設置為**false**,則默認為**false**。 否則默認為**true**。 | | [`index`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-index.html "index") | 應該可以搜索該字段嗎? 接受**true**(默認)和**false**。 | | [`store`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping-store.html "store") | 字段值是否應與**_source**字段分開存儲和檢索。 接受**true**或**false**(默認)。 |
                  <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>

                              哎呀哎呀视频在线观看