My Query is below
- I am searching for
L1 L2in the elastic search cluster with some aggregation function - I am converting
L1 L2to L1 OR L2
Requirement
- I need to search on
L1 L2first (high weigtage) - Then I need to search on
L1andL2separately.
My Template is below need to update in 'query': '**L1* OR *L2**
template = {
'from': 0,
'size': 10,
'aggs': {
'Tester': {
'terms': {
'field': 'Tester.name.keyword',
'order': {
'_key': 'desc'
}
}
},
'Developer': {
'terms': {
'field': 'Developer.name.keyword',
'order': {
'_key': 'desc'
}
}
},
'Analyst': {
'terms': {
'field': 'Analyst.name.keyword',
'order': {
'_key': 'desc'
}
}
}
},
'query': {
'bool': {
'must': {
'query_string': {
'query': '**L1* OR *L2**'
}
},
'filter': {
'term': {
'parentName.keyword': 'Software Department'
}
}
}
}
}
Is there way to achieve without change in settings