Skip to content
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

Option to exclude archived repo's from code search results #17824

Open
jpraet opened this issue Nov 26, 2021 · 3 comments
Open

Option to exclude archived repo's from code search results #17824

jpraet opened this issue Nov 26, 2021 · 3 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@jpraet
Copy link
Member

jpraet commented Nov 26, 2021

Feature Description

I'm not quite sure if it should actually search through archived repo's though?

It's useful but could be improved to have option to exclude them from search results. Also would be cool for archived repo results to show after normal repo results (using priority weights)

Originally posted by @lafriks in #17817 (comment)

Screenshots

No response

@jpraet jpraet added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. and removed type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Nov 26, 2021
@lunny
Copy link
Member

lunny commented Nov 26, 2021

I think maybe we need to upgrade the indexer version to support that. Some repositories' properties maybe need to store into indexer.

@silverwind
Copy link
Member

Another question is how the UI should look. I think we should not clutter the interface too much, so I imagine a cogwheel icon with a popup menu of options on the right side of the search bar, possibly also including the existing option for fuzzy search in there.

@algernon
Copy link
Contributor

Perhaps another approach could be to allow repositories to opt themselves out of the indexer?

This way, by default, everything would work as it does now. But repo owners could opt out of indexing, whether the repo is archived or not, which in turn would hide them from code search results.

The added benefit of this would be that even live repos could opt out of search, which I personally would find very useful too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants