Skip to content

Commit c4aeec2

Browse files
committed
Update code sample
1 parent 66f7923 commit c4aeec2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.code-samples.meilisearch.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,14 @@ get_filterable_attributes_1: |-
528528
update_filterable_attributes_1: |-
529529
client.index('movies')
530530
.updateFilterableAttributes([
531-
'genres',
532-
'director'
531+
"genres",
532+
{
533+
attributePatterns: ["genre"],
534+
features: {
535+
facetSearch: true,
536+
filter: { equality: true, comparison: false },
537+
},
538+
}
533539
])
534540
reset_filterable_attributes_1: |-
535541
client.index('movies').resetFilterableAttributes()

0 commit comments

Comments
 (0)