meilisearch / meilisearch/meilisearch-js-plugins
Be able to use the sort parameter through the configuration widget
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 531
- Forks
- 71
- Avg merge
- 10d 14h
- Merged PRs (30d)
- 2
Description
Description
As for now to apply a sort to your index you need to use the sortby widget
Nonetheless, it should be made possible to apply one sort in the configuration widget.
Basic example
For example like this
instantsearch.widgets.configure({
sort: "mydate:asc"
})
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the configuration widget referenced in the issue and compare its behavior with the documented sortby widget. Done means passing sort: "mydate:asc" to configure applies that sort to the index without requiring the separate sortby widget; the issue does not name a source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, search
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100