我正在尝试找出使用ElasticSearch处理时间序列数据的最佳方法。我将拥有数亿个这样的文档。我希望能够在Kibana中构建仪表板,以同时显示其中一些文档的时间序列图。
一个示例用例可能是在“家庭”字段中搜索“唐纳德·特朗普家族”,然后在图表中显示排名前10位的家庭成员“ interest_over_time”时间序列,每个成员都有一条线。
是否可以将时间序列数据保留在本主题文档中,还是应该将其拆分为另一个文档?您能举例说明如何构造此文档
{
"interest_over_time": {
"2017-08-06T00:00:00": 6,
"2017-08-13T00:00:00": 12,
"2017-08-20T00:00:00": 10,
"2017-08-27T00:00:00": 8,
"2017-09-03T00:00:00": 8,
"2017-09-10T00:00:00": 5,
"2017-09-17T00:00:00": 7,
"2017-09-24T00:00:00": 7,
"2017-10-01T00:00:00": 7,
"2017-10-08T00:00:00": 9,
"2017-10-15T00:00:00": 7,
"2017-10-22T00:00:00": 7,
"2017-10-29T00:00:00": 8,
"2017-11-05T00:00:00": 6,
"2017-11-12T00:00:00": 6,
"2017-11-19T00:00:00": 9,
"2017-11-26T00:00:00": 10,
"2017-12-03T00:00:00": 6,
"2017-12-10T00:00:00": 6,
"2017-12-17T00:00:00": 8,
"2017-12-24T00:00:00": 8,
"2017-12-31T00:00:00": 9,
"2018-01-07T00:00:00": 10,
"2018-01-14T00:00:00": 6,
"2018-01-21T00:00:00": 6,
"2018-01-28T00:00:00": 7,
"2018-02-04T00:00:00": 11,
"2018-02-11T00:00:00": 6,
"2018-02-18T00:00:00": 7,
"2018-02-25T00:00:00": 16,
"2018-03-04T00:00:00": 6,
"2018-03-11T00:00:00": 6,
"2018-03-18T00:00:00": 8,
"2018-03-25T00:00:00": 7,
"2018-04-01T00:00:00": 6,
"2018-04-08T00:00:00": 5,
"2018-04-15T00:00:00": 5,
"2018-04-22T00:00:00": 5,
"2018-04-29T00:00:00": 5,
"2018-05-06T00:00:00": 5,
"2018-05-13T00:00:00": 6,
"2018-05-20T00:00:00": 4,
"2018-05-27T00:00:00": 16,
"2018-06-03T00:00:00": 7,
"2018-06-10T00:00:00": 7,
"2018-06-17T00:00:00": 9,
"2018-06-24T00:00:00": 5,
"2018-07-01T00:00:00": 6,
"2018-07-08T00:00:00": 5,
"2018-07-15T00:00:00": 5,
"2018-07-22T00:00:00": 12,
"2018-07-29T00:00:00": 8
},
"queries_rising": {
"0": "bill clinton ivanka trump",
"1": "hillary clinton",
"2": "snl ivanka trump",
"3": "ivanka trump instagram",
"4": "ivanka trump speech",
"5": "ivanka trump age",
"6": "melania trump",
"7": "ivanka trump news",
"8": "trump news",
"9": "chelsea clinton",
"10": "ivanka trump mother"
},
"queries_top": {
"0": "donald trump",
"1": "melania trump",
"2": "ivana trump",
"3": "ivanka trump news",
"4": "ivanka trump age",
"5": "ivanka trump shoes",
"6": "trump news",
"7": "ivanka trump clothing",
"8": "ivanka trump twitter",
"9": "trump twitter",
"10": "tiffany trump"
},
"topics": {
"42nd U.S. President": {
"Bill Clinton": 1
},
"45th U.S. President": {
"Donald Trump": 19
},
"American actress": {
"Marla Maples": 1
},
"American businessman": {
"Eric Trump": 1
},
"American businesswoman": {
"Ivanka Trump": 100
},
"American socialite": {
"Tiffany Trump": 2
},
"Counselor to the President": {
"Kellyanne Conway": 1
},
"Department store company": {
"Nordstrom": 1
},
"Family": {
"Family of Donald Trump": 1
},
"First Lady of the United States": {
"Melania Trump": 8
},
"Former First Lady of the United States": {
"Hillary Clinton": 1
},
"Model": {
"Ivana Trump": 4
},
"Senior Advisor to the President of the United States": {
"Jared Kushner": 3
},
"Topic": {
"United States Presidential Inauguration": 1
}
},
"person": "Ivanka Trump",
"type": "Family of Donald Trump"
}