Skip to content

Commit

Permalink
Merge #668
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
meili-bors[bot] and meili-bot authored Aug 26, 2024
2 parents f6f1357 + b1d1cc1 commit 110be45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Meilisearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Meilisearch
{
public const VERSION = '1.9.1';
public const VERSION = '1.10.0';

public static function qualifiedVersion()
{
Expand Down

0 comments on commit 110be45

Please sign in to comment.