我有两个具有以下结构的文件
Shipment_received :
{
Some header level detail
"ItemId" : "I1",
"Quantity" : Q1
"Vendor" : "V1"
}
shipment_Ordered : {
Some header level details
"ItemId" : "I2"
"Quantity" : Q2
"Vendor":"V1"
}
对于给定的供应商,我想查找订单数量和收货数量的平均差异。如何使用弹性搜索来完成?