1
我有兩個文件索引像下面 文件1如何刪除elasticsearch中以前索引的文檔?
{
"_index": "custom-design",
"_type": "cars",
"_id": "porche129",
"_score": 1.2413527,
"_source": {
"clientID": "ps1233443",
"customisation": "yes",
"userType": "heavy",
"totalBilling": 3000
}
}
}
文獻2
{
"_index": "custom-design",
"_type": "cars",
"_id": "porche232",
"_score": 1.2413527,
"_source": {
"clientID": "ps1233443",
"customisation": "yes",
"userType": "heavy",
"totalBilling": 3000
}
}
}
正如你可以看到這兩個文件編制索引,並有不同的ID,但相同的內容。是否可以在索引後檢測並清除重複的文檔?