我正在尝试使用 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 出现类似此未知键的错误。
目前使用 Elasticsearch 版本 6.2.2
有任何想法吗?