Skip to content

Commit

Permalink
Use enum on Matching Strategy code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
thicolares committed Nov 1, 2022
1 parent 07de852 commit e5602e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ search_parameter_guide_offset_1: |-
search_parameter_guide_limit_1: |-
await client.index('movies').search('shifu', limit: 2);
search_parameter_guide_matching_strategy_1: |-
await client.index('movies').search('big fat liar', matchingStrategy: 'last');
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: |-
await client.index('movies').search('big fat liar', matchingStrategy: 'all');
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 e5602e7

Please sign in to comment.