如何使用logstash在完成建议器中插入/更新数据? 有多个索引,我正在使用logstash将数据插入这些索引中。 我也有一个完成建议索引。 完成建议者索引看起来像这样
"_index": "suggestions","_type": "_doc","_id": "pYK8kG0BDQ4vGpkEtkHV","_score": 1,"_source": {
"suggest": [
{
"input": "John Doe","weight": 2
},{
"input": "John","weight": 1
},{
"input": "Doe","weight": 1
}
]
}