-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
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
Fix using bundle configured nbResults
for search
#308
Conversation
ab73c08
to
f6e9212
Compare
f6e9212
to
12bd269
Compare
12bd269
to
1df77be
Compare
@@ -155,7 +155,7 @@ public function search( | |||
): array { | |||
$this->assertIsSearchable($className); | |||
|
|||
$ids = $this->engine->search($query, $this->searchableAs($className), $searchParams); | |||
$ids = $this->engine->search($query, $this->searchableAs($className), $searchParams + ['limit' => $this->configuration['nbResults']]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we use an array_merge
or something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need :) test proves that:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM then!!!
bors merge |
Canceled. |
Pull Request
Related issue
Fixes #306
What does this PR do?
nbResults
to engine search when it's not explicitly provided manuallyPR checklist
Please check if your PR fulfills the following requirements: