meilisearch / meilisearch/meilisearch-js-plugins

Be able to use the sort parameter through the configuration widget

Open
#616 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.