-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add multiSearch
#481
Add multiSearch
#481
Conversation
@@ -30,6 +31,7 @@ class Client | |||
use HandlesTasks; | |||
use HandlesKeys; | |||
use HandlesSystem; | |||
use HandlesMultiSearch; |
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.
Just interesting - what's the decision to use so many traits that are used only once here and that just hides the code?
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.
I'm following the adopted pattern, but in fact, I agree because the Client
class would be humongous if all those methods were defined directly there.
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.
Hey @norkunas,
@brunoocasali left on holliday so I'll be releasing this PR. I agree with you as well, nonetheless I suggest we open an issue on this subject for a possible refacto of that section and merge this one as it is. What do you think?
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.
hi @bidoubiwa, i don't mind :)
649abf4
to
4956257
Compare
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. - [Release notes](https://github.com/phpstan/phpstan/releases) - [Changelog](https://github.com/phpstan/phpstan/blob/1.10.x/CHANGELOG.md) - [Commits](phpstan/phpstan@1.10.3...1.10.6) --- updated-dependencies: - dependency-name: phpstan/phpstan dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
cef5d73
to
75d2564
Compare
75d2564
to
7d363f3
Compare
489: Update version for the next release (v1.1.0) r=bidoubiwa a=meili-bot This version introduces features released on Meilisearch v1.1.0 🎉 Check out the changelog of [Meilisearch v1.1.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.1.0) for more information on the changes. ### 🚀 Enhancements - Add a new optional argument to `addDocumentsCsv`, `addDocumentsCsvInBatches`, and `updateDocumentsCsvInBatches`. This argument allows you to customize the separator character in your `csv` file. (#480) `@brunoocasali` - Add a new getter, the `facetStats` on `SearchResult` (#487) `@brunoocasali.` - Add `$client->multiSearch()` method to execute multiple search requests simultaneously with different configurations. (#481) `@brunoocasali` - Introduce `SearchQuery` builder class to build the search requests used in the `multiSearch`. Usage example: ```php $this->client->multiSearch([ (new SearchQuery())->setIndexUid('books') ->setQuery('princ') ->setSort(['author:desc']), (new SearchQuery())->setIndexUid('movies') ->setQuery('be') ->setHitsPerPage(4) ->setFilter(['duration-float > 3']), ]); ```⚠️ The `SearchQuery` was not meant to be used if the regular `$index->search()` requests (yet). Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
SearchQuery
which will handle future search requests$client
calledmultiSearch()
which will take an array ofSearchQuery
.