【发布时间】:2019-06-10 23:10:00
【问题描述】:
我正在尝试使用 PHP API,以及代码中给出的相同示例
$client = ClientBuilder::create()->build();
$params = [
"scroll" => "30s", // how long between scroll requests. should be small!
"size" => 50, // how many results *per shard* you want back
"index" => "my_index",
"body" => [
"query" => [
"match_all" => new \stdClass()
]
]
];
// Execute the search
// The response will contain the first batch of documents
// and a scroll_id
$response = $client->search($params);
但是 [scroll] 中的 VALUE_STRING 出现类似 Unknown key 的错误。
目前使用 Elasticsearch 6.2.2 版
有什么想法吗?
【问题讨论】:
标签: php elasticsearch php-7.2 elasticsearch-6