私は非常にESに慣れています。私はhttps://github.com/dariusk/corpora/blob/master/data/humans/us_presidents.jsonを学習セットとして使用しています。文書更新時のElasticSearch/Kibanaフィールド
は、最初に私はKibanaにおける開発ツール]タブでこれを入力する:
POST /presidents/president/1
{
"website":"",
"startdate":"2009-01-20",
"role_type_label":"President",
"enddate":"2013-01-20",
"description":"President",
"district":null,
"phone":null,
"title":"President",
"congress_numbers":[
111,
112,
113
],
"title_long":"President",
"current":false,
"person":{
"name":"President Barack Obama [D]",
"firstname":"Barack",
"twitterid":null,
"middlename":"",
"gender":"male",
"bioguideid":"O000167",
"namemod":"",
"birthday":"1961-08-04",
"link":"https://www.govtrack.us/congress/members/barack_obama/400629",
"youtubeid":null,
"sortname":"Obama, Barack (President) [D]",
"lastname":"Obama",
"gender_label":"Male",
"osid":"N00009638",
"pvsid":"9490",
"nickname":"",
"id":400629,
"cspanid":null
}
}
:
POST /presidents/president/1
{ "bo" :
{
"website":"",
"startdate":"2009-01-20",
"role_type_label":"President",
"enddate":"2013-01-20",
"description":"President",
"district":null,
"phone":null,
"title":"President",
"congress_numbers":[
111,
112,
113
],
"title_long":"President",
"current":false,
"person":{
"name":"President Barack Obama [D]",
"firstname":"Barack",
"twitterid":null,
"middlename":"",
"gender":"male",
"bioguideid":"O000167",
"namemod":"",
"birthday":"1961-08-04",
"link":"https://www.govtrack.us/congress/members/barack_obama/400629",
"youtubeid":null,
"sortname":"Obama, Barack (President) [D]",
"lastname":"Obama",
"gender_label":"Male",
"osid":"N00009638",
"pvsid":"9490",
"nickname":"",
"id":400629,
"cspanid":null
}
...
}
}
は、それから私は、私は、個々の大統領についてのより多くのデータを追加したい場合は、私はむしろこれを行う必要があることに気づきましたOK、ESはアップデートをうまく受け入れました。
しかし、私は木場の管理/索引パターンに行くと、person.lastname
とbo.person.lastname
の両方のフィールドが表示されます。
なぜ前のフィールドが残っていますか?更新されたドキュメントに含まれていないフィールドをESが保持するのは正常ですか?
また、今日の選挙結果については、例外的に面白いものは別として、明らかにご質問ください。