2、
統計フィールドBの異なる値の数
{ "サイズ":0、 "aggs":{ "distinct_colors":{ "カーディナリティ":{ "フィールド": "B"}}}}
統計フィールドlocal_ipを異なる値
{ "サイズ" 0 "aggs":{ "langs":{ "という用語は":{ "フィールド": "local_ipを"、 "サイズ":50000000}}}}
3、
GET / products5 / _search
{ "クエリ":{ "マッチ":{ "名前": "LED TV"}}、 "aggs":{ "代理店":{ "ネスト":{ "パス": "代理店"}、 "aggs": { "langs":{ "という用語は":{ "フィールド": "resellers.price"、 "サイズ":50000000}}}}}}
GET / products5 / _search
{ "クエリ":{ "BOOL":{ "必須":[]、 "must_not":[]、 "べきである":[]、 "フィルタ":[{ "ネスト":{ "パス": "代理店" 、 "クエリ":{ "BOOL":{ "必須":[{ "という用語は、" { "resellers.price":44}}]、 "must_not":[]、 "べき":[]、 "フィルタ" :[]}}}}]}} "から":0、 "サイズ":10、 "ソート":[]}
4、
PUT / products5 / _DOC / 13
{ "名前": "LED TV"、 "販売代理店":[{ "価格":101}、{ "価格":110}、{ "価格":130}]、 "日付": "2015年2月1日午前5時02分00" 秒}
GET / products5 / _search
{ "クエリ":{ "マッチ":{ "名": "主導テレビ"}}、 "aggs":{ "sales_per_month":{ "date_histogram":{ "フィールド": "日付"、 "fixed_interval":」 60メートル "}、" aggs ":{" 代理店 ":{" ネスト ":{" パス ":" 代理店 "}、" aggs ":{" 販売 ":{" という用語は ":{" フィールド ":" 代理店。価格」、 "サイズ":50000000}}}}}}}}
ESページ
https://www.elastic.co/guide/cn/elasticsearch/guide/current/pagination.html
https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-from-size.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html