Code search sort order should be stable #10673

Open
opened 2025-11-02 09:15:02 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @silverwind on GitHub (Apr 17, 2023).

Feature Description

When searching code via /explore/code with REPO_INDEXER_TYPE=bleve, the sort order of results is not stable and seems to shuffle randomly when code is pushed to the instance.

I'd suggest always sort these code search results by file path, in ascending alphabetical order. More sort order options could be added later via a dropdown menu.

Originally created by @silverwind on GitHub (Apr 17, 2023). ### Feature Description When searching code via `/explore/code` with `REPO_INDEXER_TYPE=bleve`, the sort order of results is not stable and seems to shuffle randomly when code is pushed to the instance. I'd suggest always sort these code search results by file path, in ascending alphabetical order. More sort order options could be added later via a dropdown menu.
GiteaMirror added the type/enhancementtype/proposal labels 2025-11-02 09:15:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10673