我正在laravel v5.3中进行弹性搜索。我在弹性搜索中添加了15000个用户,每个用户都有username,full_name,is_live,id,现在我希望搜索用户使用username或full_name。下面是我制作的搜索数组
Array
(
[index] => people
[type] => people_list
[from] => 0
[size] => 1000
[body] => Array
(
[query] => Array
(
[bool] => Array
(
[should] => Array
(
[match] => Array
(
[full_name] => v.n
[username] => v.n
)
)
)
)
)
)
但我总是收到异常。请以正确的方式指导我如何解决这个问题