Open robertbrowncc opened 1 year ago
I was able to get it to work like this too albeit a little funky:
$results = Statement::search('automated_detection:true',
function (Client $client, Search $search) {
$search->setSize(100);
return $client->search(['index' => 'statements', 'body' => $search->toArray()]);
})->keys();
Didn't notice options
api. Make sense to integrate. Could be useful for simple cases
When I make a search call like this:
I always get 10 results.
When I look at this function:
the [] is always sending blank options.
When I change it to bring in the options.
Then I get a result with 100 results in it.
Am I calling the options and search correctly? Is this a bug?