Skip to content

Commit c3e2bbc

Browse files
Merge #215
215: Add new code-samples for matching_strategy r=brunoocasali a=thicolares # Pull Request ## Related issue Fixes #210 ## What does this PR do? - Add new code-samples requested by the Meilisearch v0.29 release ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Thiago Colares <[email protected]>
2 parents 477bec9 + e5602e7 commit c3e2bbc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.code-samples.meilisearch.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ search_parameter_guide_offset_1: |-
199199
await client.index('movies').search('shifu', offset: 1);
200200
search_parameter_guide_limit_1: |-
201201
await client.index('movies').search('shifu', limit: 2);
202+
search_parameter_guide_matching_strategy_1: |-
203+
import 'package:meilisearch/src/matching_strategy_enum.dart';
204+
205+
await client.index('movies').search('big fat liar', matchingStrategy: MatchingStrategy.last);
206+
search_parameter_guide_matching_strategy_2: |-
207+
import 'package:meilisearch/src/matching_strategy_enum.dart';
208+
209+
await client.index('movies').search('big fat liar', matchingStrategy: MatchingStrategy.all);
202210
search_parameter_guide_retrieve_1: |-
203211
await client
204212
.index('movies')

0 commit comments

Comments
 (0)