1

PHP APIを使用しようとしていますが、コードに示されているのと同じ例です

https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/_search_operations.html#_scrolling

$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 を使用しています

何か案は?

4

2 に答える 2

0

誤ってスクロール属性を body 内に配置した可能性があります。

于 2018-05-31T07:01:02.190 に答える