Skip to content

Commit

Permalink
add code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
danFbach committed Jan 14, 2025
1 parent f800298 commit c0e50dc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,3 +843,18 @@ facet_search_3: |-
FacetQuery = "c"
};
await client.Index("books").FacetSearchAsync("genres", query);
search_parameter_reference_locales_1: |-
var searchQuery = new SearchQuery { Locales = new[] { "jpn" } };
await client.index('INDEX_NAME').SearchAsync('進撃の巨人', searchQuery);
get_localized_attribute_settings_1: |-
await client.index('INDEX_NAME').GetLocalizedAttributesAsync()
update_localized_attribute_settings_1: |-
await client.index('INDEX_NAME').UpdateLocalizedAttributesAsync(new LocalizedAttributeLocale[]
{
new LocalizedAttributeLocale() {
Locales = new[] { "jpn" },
AttributePatterns = new[] { "*_ja" }
}
});
reset_localized_attribute_settings_1: |-
await client.index('INDEX_NAME').ResetLocalizedAttributesAsync();

0 comments on commit c0e50dc

Please sign in to comment.