customer doc
{
"id": "123",
"name": "alibaba",
"sellerId": "111"
}
workflow doc
{
"id": "100",
"title": "hello",
"customerId": "123"
}
I want to search workflow documents with sallerId, it look like
{
"query": {
"bool": {
"must": [
{
"term": {
"sellerId": {
"value": "111"
}
}
}
]
}
}
}
I can't use parent-child, because customer is not really a parent of workflow, some workflow doc dosen't has customer infomation. How could i use customer.sellerId to search workflow doc.