Make search result order match the order of objects received from Meilisearch #579

Closed
AdamK2003 wants to merge 1 commit from AdamK2003/akkoma:meilisearch-result-order into develop
First-time contributor

The search results are normally sorted by published date before getting to the client, which makes the result order not match the Meilisearch result order if you tweak your Meilisearch ranking settings. This PR sorts the results back into the initial Meilisearch order after fetching them from the repo.

The search results are normally sorted by published date before getting to the client, which makes the result order not match the Meilisearch result order if you tweak your Meilisearch ranking settings. This PR sorts the results back into the initial Meilisearch order after fetching them from the repo.
Fix search result order for Meilisearch
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
7dd439807f
Owner

@AdamK2003 can you test whether Oneric/akkoma@f32335742d also works for you? It directly fetches results in the correct order instead of using a O(n²) resort afterwards, but i don’t have Meilisearch set up.

EDIT: i was now able to confirm this works myself, see #772

@AdamK2003 can you test whether https://akkoma.dev/Oneric/akkoma/commit/f32335742daf8b037b136584f859cb59666edf65 also works for you? It directly fetches results in the correct order instead of using a O(n²) resort afterwards, but i don’t have Meilisearch set up. **EDIT:** i was now able to confirm this works myself, see #772
Oneric closed this pull request 2025-05-05 19:26:17 +00:00
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma!579
No description provided.