This is the dictionary pattern of elasticsearch {'id': 3},{'id': 4},{'id': 5},{'id': 6}
Below is the query to search 'Country Owner.id.keyword' and 'Territory Owner.id.keyword'
- I need to put one condition saying it should not search with id: [3,4,5] so my
output
will contain only from 6 with value'ABC101'
if present
a = {'from': 0, 'size': 200,'query': {
'bool': {
'should': [
{
'terms': {
'Country Owner.id.keyword': [
'ABC101'
]
}
},
{
'terms': {
'Territory Owner.id.keyword': [
'ABC101'
]
}
}
]
}
}
}