Skip to content

Commit e4ba373

Browse files
Merge #384
384: Add new code-samples for matching_strategy r=brunoocasali a=thicolares # Pull Request ## Related issue Fixes #374 ## What does this PR do? - Add new code-samples requested by the Meilisearch v0.29 release: `matching_strategy`. ## 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 8c34f5c + 42fd352 commit e4ba373

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
@@ -276,6 +276,14 @@ search_parameter_guide_show_matches_position_1: |-
276276
client.index('movies').search('winter feast', {
277277
show_matches_position: true
278278
})
279+
search_parameter_guide_matching_strategy_1: |-
280+
client.index('movies').search('big fat liar', {
281+
matching_strategy: 'last'
282+
})
283+
search_parameter_guide_matching_strategy_2: |-
284+
client.index('movies').search('big fat liar', {
285+
matching_strategy: 'all'
286+
})
279287
settings_guide_synonyms_1: |-
280288
client.index('tops').update_settings({
281289
synonyms: {

0 commit comments

Comments
 (0)