私のインデックスには、広告と製品の 2 つのタイプがあります。
製品 :
_index: fadel
_type: product
_id: 103|2
_version: 1
_score: 1
_source: {
code: 35569058
manufacturer: Packard Bell
tax_class_id: [ ]
visibility: 4
price: [ ]
in_stock: 1
.....
....
広告
_index: fadel
_type: ads
_id: 92
_version: 1
_score: 1
_source: {
customer_id: 2
ads_id: 92
product_id: 28
price_current: 1200.0000
is_pro_customer: 0
state: 13
qty_current: 19
}
fields: {
_parent: 28|2
}
製品のすべての広告を取得する方法と、関連する製品を広告に取得する方法
PS : 1 つの商品に 1 つ以上の広告が含まれる場合がありますが、広告は 1 つの商品に関連付けられています
ありがとうございました