You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository.
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
This issue is divided into two sections, first, you need to make the implementation, and second, you must update the code-samples (no one likes outdated docs, right?).
@brunoocasali working on this one as well. does it need to process the facet name into camel case for the user, or is it on the user to provide the correct facet name?
I'm implementing the sortFacetValuesBy type as an enum which will utilizes JsonStringEnumConverter.
I have modified Faceting:
namespaceMeilisearch{/// <summary>/// Faceting configuration./// </summary>publicclassFaceting{/// <summary>/// Gets or sets maxValuesPerFacet./// </summary>[JsonPropertyName("maxValuesPerFacet")]publicintMaxValuesPerFacet{get;set;}/// <summary>/// Gets or sets sortFacetValuesBy./// </summary>[JsonPropertyName("sortFacetValuesBy")]publicDictionary<string,SortFacetValuesBy> SortFacetValuesBy {get;set;}}[JsonConverter(typeof(JsonStringEnumConverter))]publicenumSortFacetValuesBy{/// <summary>/// Sort by alpha value./// </summary>Alpha,/// <summary>/// Sort by count value./// </summary>Count}}
does the key of the dictionary, the facet name, need any automatic JSON serialization to comply with camelcase?
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
Related to meilisearch/integration-guides#280
This issue is divided into two sections, first, you need to make the implementation, and second, you must update the code-samples (no one likes outdated docs, right?).
New implementation
Related to:
Adds the ability to sort facets by their value which could be by using
alpha
orcount
.Ensure the SDKs can handle the new index faceting configuration attribute
sortFacetValuesBy
. This enum could only takecount
oralpha
.The faceting configuration now have two attributes:
Code samples
Inside of this file:
.code-samples.meilisearch.yml
:Create a new entry with this key
facet_search_2
containing a call to theupdateFaceting()
settings method."Translate" the following curl example: https://github.com/meilisearch/documentation/blob/e4fdc3d485c22e31a045b8a71bacf18b6a7d50e0/.code-samples.meilisearch.yaml#L1078
Update
getting_started_faceting
key to contain the new behaviorsortFacetValuesBy
Refer to this curl example: https://github.com/meilisearch/documentation/blob/e4fdc3d485c22e31a045b8a71bacf18b6a7d50e0/.code-samples.meilisearch.yaml#L875
Update
update_faceting_settings_1
key to contain the new behaviorsortFacetValuesBy
Refer to this curl example: https://github.com/meilisearch/documentation/blob/e4fdc3d485c22e31a045b8a71bacf18b6a7d50e0/.code-samples.meilisearch.yaml#L854
TODO:
updateFaceting
settings method calledsortFacetValuesBy
.The text was updated successfully, but these errors were encountered: