Skip to content

Commit

Permalink
Merge #215
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and thicolares authored Nov 1, 2022
2 parents 477bec9 + e5602e7 commit c3e2bbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ search_parameter_guide_offset_1: |-
await client.index('movies').search('shifu', offset: 1);
search_parameter_guide_limit_1: |-
await client.index('movies').search('shifu', limit: 2);
search_parameter_guide_matching_strategy_1: |-
import 'package:meilisearch/src/matching_strategy_enum.dart';
await client.index('movies').search('big fat liar', matchingStrategy: MatchingStrategy.last);
search_parameter_guide_matching_strategy_2: |-
import 'package:meilisearch/src/matching_strategy_enum.dart';
await client.index('movies').search('big fat liar', matchingStrategy: MatchingStrategy.all);
search_parameter_guide_retrieve_1: |-
await client
.index('movies')
Expand Down

0 comments on commit c3e2bbc

Please sign in to comment.