I have a text field named profile
(with default analyzer), and I want to query with words including white spaces.
For example, when I wanted to search by vice president
, I created a query
{
"query": {
{
"match": {
"profile": {
"query": "vice president"
}
}
}
}
}
I expected I got only documents which have profiles like I am a vice president. Thank you.
, but I also got documents whose profiles have only words vice
or president
(profile like I am the president.
).
How to get only documents which includes adjacent words of vice president
?