Skip to content

Commit 9561cfd

Browse files
meili-bors[bot]meili-botbrunoocasali
authored
Merge #362
362: Changes related to the next Meilisearch release (v0.29.0) r=curquiza a=meili-bot Related to this issue: meilisearch/integration-guides#211 This PR: - gathers the changes related to the next Meilisearch release (v0.29.0) so that this package is ready when the official release is out. - should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases). - might eventually contain test failures until the Meilisearch v0.29.0 is out. ⚠️ This PR should NOT be merged until the next release of Meilisearch (v0.29.0) is out. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose._ Co-authored-by: meili-bot <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
2 parents 5696709 + 146a16a commit 9561cfd

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ JSON output:
206206

207207
## 🤖 Compatibility with Meilisearch
208208

209-
This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
209+
This package only guarantees the compatibility with the [version v0.29.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.29.0).
210210

211211
## 💡 Learn More
212212

spec/meilisearch/client/keys_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
expect(new_key['description']).to eq('A new key to add docs')
3232
end
3333

34+
it 'creates a key with wildcarded action' do
35+
new_key = client.create_key(add_docs_key_options.merge(actions: ['documents.*']))
36+
37+
expect(new_key['actions']).to eq(['documents.*'])
38+
end
39+
3440
it 'creates a key with setting uid' do
3541
new_key = client.create_key(add_docs_key_options.merge(uid: uuid_v4))
3642

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe 'MeiliSearch::Index - Search with matching_strategy' do
4+
include_context 'search books with nested fields'
5+
6+
it 'does a custom search with a matching strategy ALL' do
7+
response = index.search('another french book', matching_strategy: 'all')
8+
9+
expect(response['hits'].count).to eq(1)
10+
end
11+
12+
it 'does a custom search with a matching strategy LAST' do
13+
response = index.search('french book', matching_strategy: 'last')
14+
15+
expect(response['hits'].count).to eq(2)
16+
end
17+
end

0 commit comments

Comments
 (0)