-
Notifications
You must be signed in to change notification settings - Fork 358
[10.x] Meilisearch v1 support #678
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
Conversation
@driesvints I'll bump you for an initial look at the changes also maybe @curquiza or @brunoocasali can take a look too (the changes also have something to do with meilisearch/meilisearch-php#431) |
@mmachatschek we're going to postpone the entire v10 release until Meilisearch PHP v1 is released but that's under the idea that it'll happen in early February. We don't want to wait longer than that. |
Hi @mmachatschek, I approved and released the latest version https://github.com/meilisearch/meilisearch-php/releases/tag/v0.26.1 @driesvints our plan is to release a v1 of Meilisearch PHP in 2023 after the Meilisearch v1 which will occur in February 6th, 2023. We are now, planning the first quarter of 2023 and I'll personally include the PHP release as a top priority. |
Thank you @brunoocasali! |
bd36136
to
dbbb25b
Compare
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 @mmachatschek, thanks a lot for your work here :)
@mmachatschek, I want to ask you to add the analytics information like Algolia's implementation does, if @driesvints agrees, to meilisearch-php. The information can be sent as an array of strings like this:
This information is essential for the Integrations Team to help maintain the integrations. By the way: Analytics is enabled by default in the server, but you can disable them by following this guide |
@brunoocasali good idea. Would be cool if we could do that. Is that something we can already tackle in v9? |
Yes @driesvints! The analytics support started on Meilisearch v0.21, and Meilisearch-PHP added support for custom agents on v0.24.2. |
In that case the only thing we’ll have to see is if we can add it on 9.x in a backwards compatible way so it doesn’t conflict with older meilisearch php installs that users might have. |
@driesvints we can do that on the 9.x branch by making a version compare and then add the agent/or not if the version is lower than <0.24.2 that would be something for a differnt PR. I'll add the agent/analytics info on the 10.x branch with this PR |
1ac2c92
to
19a7c47
Compare
935d7a9
to
4a9dbb9
Compare
@driesvints will you add the migration guide? |
@mmachatschek could you give me a tl;dr of the breaking changes? |
@driesvints is the migration guide list in the PR description enough? I will take another look on the changes and check if there are more breaking changes for users other than the ones I already listed |
@mmachatschek yeah looks good probably. Thanks! |
647dcea
to
f6fed5d
Compare
Seems like there's still work on this PR. Please ping me when it's ready and I'll write the upgrade guide then. |
Thanks! I'll try to review this soon. |
fdb0fc5
to
5fcbf3c
Compare
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.
From my POV it is good, but I may lack more knowledge from the laravel side :)
Cool. I just merged 9.x into 10.x so can you rebase with it? If that's done I'll start my review. |
74727a1
to
70a371d
Compare
fix import Upgrade to meilisearch-php v1 Update EngineManager.php Fix deleteAllIndexes method Fix deleteAllIndexes pagination Update wrong usage of filters instead of filter Update src/EngineManager.php Co-authored-by: Bruno Casali <brunoocasali@gmail.com> address review issue by @pyrou Fetch all indexes before adding delete task Update deleteallindexes implementation increase number fix case change
70a371d
to
291af3d
Compare
ping @driesvints rebase done |
Code looks good. Thanks for all the work all! I'll write the migration guide soon before marking this as ready for review for Taylor. |
@mmachatschek can you give examples of how end users are affected? What did they get before and what will they get now? What Scout code would be affected? |
The pagination used in the new implementation, ensures that users get the correct counts of totalHits and totalPages which leads to more accurate paginations. There will not be any inconsistency between totalHits count on the first page, and the pages that come after that. It may have happened that meilisearch e.g. returned a number of 1.000 totalHits on the first page and 950 on the 10th page.
I don't think there are any actions needed by end-users (that set limit/offset in a custom scout query) as meilisearch prefers the usage of (page/hitsPerPage) in the pagination that we call in the engine. |
Cool, in that case I won't mention it in the upgrade guide. Thanks a lot you all for all your work on this! @taylorotwell this is now ready for you to review. After merging this we can release Scout v10. |
UPGRADE.md
Outdated
|
||
Further more, all casing has been changed from the old `MeiliSearch` to the new `Meilisearch`. This means that all references to Meilisearch code you have in your codebase should adopt this new casing. | ||
|
||
Please see [the full Meilisearch PHP v1.0 changelog](https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0) for all changes. |
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 just fixing the link. The old one was pointing to the Meilisearch release, not PHP release.
Please see [the full Meilisearch PHP v1.0 changelog](https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0) for all changes. | |
Please see [the full Meilisearch PHP v1.0 changelog](https://github.com/meilisearch/meilisearch-php/releases/tag/v1.0.0) for all changes. |
By the way, should we mention, the Meilisearch engine release release?
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.
By the way, should we mention, the Meilisearch engine release release?
The what?
Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
\Meilisearch\Client
)filters => filter
)