我尝试使用弹性搜索按名称对我的文档进行排序&官方的php客户端,我该如何继续?按名称排序elasticsearch
$params = [
'index' => $this->index ,
'type' => 'videos',
'from' => $this->uri->segment(2),
'size' => 12,
'body' => [
'query' => [
'filtered' => [
'filter' => [
'term' => [ 'name' => $query ] ,
'term' => [ 'tags' => $query ]
]
]
]
]
];
$data['results'] = $this->client->search($params);
这是没有发生working.fatal错误 – VipinS