We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I make a search call like this:
$results = Statement::search('automated_detection:true')->options([ 'size' => 100 ])->keys();
I always get 10 results.
When I look at this function:
\Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine::search
public function search(BaseBuilder $builder) { return $this->performSearch($builder, []); }
the [] is always sending blank options.
When I change it to bring in the options.
public function search(BaseBuilder $builder) { return $this->performSearch($builder, $builder->options); }
Then I get a result with 100 results in it.
Am I calling the options and search correctly? Is this a bug?
The text was updated successfully, but these errors were encountered:
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();
Sorry, something went wrong.
Didn't notice options api. Make sense to integrate. Could be useful for simple cases
options
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: