Query with bool must and with dis_max

Hello!
I need query with must match and with dis_max.
I have:
1)
'body' => [
'query' => [
'dis_max' => [
'queries' => [
['match_phrase_prefix' => ['description' => 'user'] ]
]
]
]
]

'query' => [
'bool' => [
'must' => [
['match' => [ 'type' => 'admin'] ]
]
]
]
How can I get trought it?

Resolved
'should' before dis_max resolved problem

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