Reputation: 89
I have stored values for example:
I need to query for values which matches the string "ABCDEF" after removing all not chars.
So in response I need to have only records 1,2,5
Upvotes: 0
Views: 32
Reputation: 4199
If the query value has a space between ABC
and DEF
, then you can use the normal query
but without using .keyword
after the field name.
for example:
{
"query": {
"match": {
"textField": "ABC DEF"
}
}
}
Upvotes: 1