Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to include custom sortBy issue #772

Open
MoritzLost opened this issue Jun 21, 2022 · 3 comments
Open

Document how to include custom sortBy issue #772

MoritzLost opened this issue Jun 21, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@MoritzLost
Copy link

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.

@bidoubiwa
Copy link
Contributor

Good idea! Thanks for the issue :)

@iarmankhan
Copy link

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 :/

@bidoubiwa bidoubiwa added the good first issue Good for newcomers label May 22, 2023
@bidoubiwa
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants