-
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
Implements localized attributes #662
Merged
curquiza
merged 3 commits into
bump-meilisearch-v1.10.0
from
implements-localized-attributes
Aug 1, 2024
Merged
Implements localized attributes #662
curquiza
merged 3 commits into
bump-meilisearch-v1.10.0
from
implements-localized-attributes
Aug 1, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irevoire
added
the
Meilisearch bump
Changes related to the Meilisearch bump version
label
Jul 30, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
reviewed
Jul 31, 2024
norkunas
approved these changes
Jul 31, 2024
2 tasks
irevoire
force-pushed
the
implements-localized-attributes
branch
from
July 31, 2024 16:11
93e8d12
to
6c24ae4
Compare
Too many unrelated commits :) |
irevoire
force-pushed
the
implements-localized-attributes
branch
from
August 1, 2024 08:17
6c24ae4
to
ad3aae0
Compare
Oops yes good catch, I failed my rebase 😅 |
2 tasks
4 tasks
Merging! The non-passing test is not related to this PR (already present on bump-meilisearch-v1.10) |
This was referenced Aug 2, 2024
meili-bors bot
added a commit
that referenced
this pull request
Aug 26, 2024
668: Update version for the next release (v1.10.0) r=brunoocasali a=meili-bot _This PR is auto-generated._ The automated script updates the version of meilisearch-php to a new version: "v1.10.0" CHANGELOGS 👇 This version introduces features released on Meilisearch v1.10.0 🎉 Check out the changelog of [Meilisearch v1.10.0](https://github.com/meilisearch/meilisearch/releases/tag/v1.10.0) for more information on the changes. ## 🚀 Enhancements - Add localized attributes settings (#662) `@/irevoire` ``` $client->index('INDEX_NAME')->updateLocalizedAttributes([ 'locales' => ['jpn'], 'attributePatterns' => ['*_ja'] ]); ``` - Add `locales` search parameter (#663) `@/irevoire` ```php $client->index('INDEX_NAME')->search('進撃の巨人', [ 'locales' => ['jpn'] ]); ``` - Add federation options when doing multi-search (#663) `@/irevoire` ```php $client->multiSearch([ (new SearchQuery()) ->setIndexUid('movies')) ->setQuery('batman') ->setLimit(5), (new SearchQuery()) ->setIndexUid('comics') ->setQuery('batman') ->setLimit(5), ], (new MultiSearchFederation()) ); ``` - Add capability to update documents by function (⚠️ experimental feature) (#664) `@/irevoire` ```php $function = ' if doc.id % context.modulo == 0 { doc.title = `kefir would read ${doc.title}`; }; doc.remove("comment"); doc.remove("genre"); '; $client-> index->updateDocumentsByFunction($function, ['context' => ['modulo' => 3]]); ``` ## ⚙️ Maintenance/misc - Update CI (#666 & #667) `@/norkunas` Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Warning
The tests won't work since the Meilisearch implementation is broken currently in rc0, see the following PR meilisearch/meilisearch#4836
I did the test on the branch that implemented the change though.
Related issue
Fixes #660
What does this PR do?
locales
to thesearch
methodupdateSettings
route can accept the newlocalizedAttributes
settinggetLocalizedAttributes
,updateLocalizedAttributes
andresetLocalizedAttributes
corresponding to the sub settingsGET/PUT/DELETE
routes