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?).
Adds the ability to sort facets by their value which could be by using alpha or count.
Ensure the SDKs can handle the new index faceting configuration attribute sortFacetValuesBy. This enum could only take count or alpha.
The faceting configuration now have two attributes:
maxValuesPerFacet: integer
sortFacetValuesBy: object
index_name: alpha|count
*: alpha|count // when should be applied to all indexes
Code samples
Inside of this file: .code-samples.meilisearch.yml:
Create a new entry with this key facet_search_2 containing a call to the updateFaceting settings method.
With this value: "sortFacetValuesBy":{"genres": "count"}
Use this as a reference if the previous description was not helpful:
@brunoocasali@sanders41
Let me know if I'm wrong, but the SDK is already compatible because not strongly typed and thanks to the update_faceting_settings method
Updating the setting will work, but the Facet model needs to be updated to include the new value. Right now get_facetting_settings won't error, but it also won't contain the sort settings.
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
:facet_search_2
containing a call to theupdateFaceting
settings method.With this value:
"sortFacetValuesBy":{"genres": "count"}
Use this as a reference if the previous description was not helpful:
getting_started_faceting
key to contain the new behaviorsortFacetValuesBy
update_faceting_settings_1
key to contain the new behaviorsortFacetValuesBy
TODO:
updateFaceting
settings method calledsortFacetValuesBy
.The text was updated successfully, but these errors were encountered: