Skip to content

Commit b7f3be2

Browse files
bors[bot]meili-botcurquizaalallema
authored
Merge #77
77: Changes related to the next MeiliSearch release (v0.21.0) r=curquiza a=meili-bot This PR gathers the changes related to the next MeiliSearch release (v0.21.0) so that this package is ready when the official release is out. ⚠️ This PR should NOT be merged until: - the next release of MeiliSearch (v0.21.0) is out. - the [`meilisearch-php`](https://github.com/meilisearch/meilisearch-php) dependency has been released to be compatible with MeiliSearch v0.21.0. Once the release is out, the `meilisearch-php` version in this package should be upgraded and committed to this branch. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose. Exceptionally for this release, the pre-release time will be more than just one week._ Done: - Adapts tests according to v0.21.0 breaking changes #99 - Update meilisearch-php To Do: - [x] Change `meilisearch-php` version Co-authored-by: meili-bot <[email protected]> Co-authored-by: Clémentine Urquizar <[email protected]> Co-authored-by: alallema <[email protected]> Co-authored-by: Amélie <[email protected]>
2 parents 389f6ea + bd2972f commit b7f3be2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Also, see our [Documentation](https://docs.meilisearch.com/learn/tutorials/getti
4848

4949
## 🤖 Compatibility with MeiliSearch
5050

51-
This package only guarantees the compatibility with the [version v0.20.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.20.0).
51+
This package only guarantees the compatibility with the [version v0.21.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.21.0).
5252

5353
## 💡 Learn More
5454

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"ext-json": "*",
2323
"doctrine/doctrine-bundle": "^2.4",
2424
"illuminate/collections": "^8.47",
25-
"meilisearch/meilisearch-php": "^0.18",
25+
"meilisearch/meilisearch-php": "^0.19",
2626
"symfony/filesystem": "^4.0 || ^5.0",
2727
"symfony/property-access": "^4.0 || ^5.0",
2828
"symfony/serializer": "^4.0 || ^5.0"

tests/Integration/SettingsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ class SettingsTest extends BaseKernelTestCase
1818

1919
public const DEFAULT_RANKING_RULES
2020
= [
21-
'typo',
2221
'words',
22+
'typo',
2323
'proximity',
2424
'attribute',
25-
'wordsPosition',
2625
'exactness',
2726
];
2827

@@ -85,7 +84,8 @@ public function testUpdateSettings(): void
8584
$this->assertNotEmpty($settings['stopWords']);
8685
$this->assertEquals(['a', 'an', 'the'], $settings['stopWords']);
8786

88-
$this->assertNotEmpty($settings['attributesForFaceting']);
89-
$this->assertEquals(['title', 'publishedAt'], $settings['attributesForFaceting']);
87+
$this->assertNotEmpty($settings['filterableAttributes']);
88+
// commented until this bug is fixed: https://github.com/meilisearch/MeiliSearch/issues/1625
89+
// $this->assertEquals(['title', 'publishedAt'], $settings['filterableAttributes']);
9090
}
9191
}

tests/config/meili_search.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ meili_search:
1010
enable_serializer_groups: true
1111
settings:
1212
stopWords: ['the', 'a', 'an']
13-
attributesForFaceting: ['title', 'publishedAt']
13+
filterableAttributes: ['title', 'publishedAt']
1414
- name: comments
1515
class: 'MeiliSearch\Bundle\Test\Entity\Comment'
1616
- name: aggregated

0 commit comments

Comments
 (0)