How to match a word which includes white spaces?

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 ?

This?

1 Like

I think this is! Thank you
(I'm a Japanese (which does not have white spaces between words) user so not familiar with this kind of query for English...)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.