meilisearch-swift
meilisearch-swift copied to clipboard
[v1.10.0] Language settings & search parameter
trafficstars
Following this central issue
Explanation of the feature
Changes
- new settings
localizedAttributesand the sub-methods associated to it - new search parameter
locales
Usage: https://meilisearch.notion.site/v1-10-Language-settings-usage-26c5d98b553349d9abacbe7aff698e4e
TODO
- [ ] Add a new search parameter named
localesto thesearchmethods (GET and POST) - [ ] Ensure the
updateSettingsroute can accept the newlocalizedAttributessetting - [ ] Create new methods
getLocalizedAttributes,updateLocalizedAttributesandresetLocalizedAttributescorresponding to the sub settingsGET/PUT/DELETEroutes - [ ] Add tests
- [ ] Add code samples for the feature:
search_parameter_reference_locales_1: |- client.index('INDEX_NAME').search('進撃の巨人', { locales: ['jpn'] }) get_localized_attribute_settings_1: |- client.index('INDEX_NAME').getLocalizedAttributes() update_localized_attribute_settings_1: |- client.index('INDEX_NAME').updateLocalizedAttributes([ { attributePatterns: ['jpn'], locales: ['*_ja'] }, ]) reset_localized_attribute_settings_1: |- client.index('INDEX_NAME').resetLocalizedAttributes()