meilisearch-js-plugins icon indicating copy to clipboard operation
meilisearch-js-plugins copied to clipboard

Document how to include custom sortBy issue

Open MoritzLost opened this issue 3 years ago • 3 comments

Description

I recently had some issues figuring out how to configure a custom sort parameter statically – without using the sortBy widget. As per this issue, the solution is to add the sort parameter directly to the index name (indexName: 'my_index:my_custom_param:asc'). This isn't documented anywhere as far as I can tell. It would be great to mention this in the README and provide examples for instantsearch-js as well as the InstantSearch libraries for React/Vue/etc.

MoritzLost avatar Jun 21 '22 10:06 MoritzLost

Good idea! Thanks for the issue :)

bidoubiwa avatar Sep 27 '22 15:09 bidoubiwa

Thank you @MoritzLost Spent few hours trying to achieve the exact same thing and then stumbled upon this issue. Strange that they never documented it :/

iarmankhan avatar May 18 '23 10:05 iarmankhan

It should be added, I'm hoping someone has time to contribute to add that small piece of documentation.

bidoubiwa avatar May 22 '23 10:05 bidoubiwa