Skip to content

Commit 42fd352

Browse files
committed
Add new code-samples for matching_strategy
1 parent 8c34f5c commit 42fd352

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)