How to find exact match of multiple text values with IN operation? e.g.,
SELECT * WHERE name in ('george','michael') AND testID in (1,2)
When I try to run below query, it returns extra data for matching values e.g., "the george", not for the exact values only as "george"
{
"query":{
"bool":{
"filter":[
{
"query_string":{
"fields":[
"name"
],
"query":"george or michael"
}
},
{
"terms":{
"testID":[1,2]
}
}
]
}
}
}