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

Open
opened 2025-11-02 07:56:07 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @jpraet on GitHub (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 https://github.com/go-gitea/gitea/issues/17817#issuecomment-979735851

Screenshots

No response

Originally created by @jpraet on GitHub (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 https://github.com/go-gitea/gitea/issues/17817#issuecomment-979735851_ ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 07:56:07 -06:00
Author
Owner

@lunny commented on GitHub (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.

@lunny commented on GitHub (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.
Author
Owner

@silverwind commented on GitHub (Nov 26, 2021):

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.

@silverwind commented on GitHub (Nov 26, 2021): 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.
Author
Owner

@algernon commented on GitHub (Jul 19, 2022):

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.

@algernon commented on GitHub (Jul 19, 2022): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8177