Skip to content

Code search sort order should be stable #24170

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

Open
silverwind opened this issue Apr 17, 2023 · 0 comments
Open

Code search sort order should be stable #24170

silverwind opened this issue Apr 17, 2023 · 0 comments
Labels
type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@silverwind
Copy link
Member

silverwind commented 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.

@silverwind silverwind added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/enhancement An improvement of existing functionality and removed type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Apr 17, 2023
@silverwind silverwind changed the title Sort order in /explore/code should be stable Code search sort order should be stable Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

1 participant