search support for searching filenames #11394

Closed
opened 2025-11-02 09:36:29 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @inbjo on GitHub (Aug 3, 2023).

Feature Description

Hello, everyone.
I'm using elasticsearch as a search driver.

I often come across scenarios where I need to search for a file name in a repository or an organization.
Currently, gitea only supports searching for code content.

When I look at the storage structure in elasticsearch, I see that gitea treats the file path as the primary key, and it seems that the primary key cannot be searched for in elasticsearch.

To summarize:
I want to be able to search the file name to find out which repository the file belongs to and the path. I think this is a very useful feature. Many thanks to the gitea team!

Screenshots

No response

Originally created by @inbjo on GitHub (Aug 3, 2023). ### Feature Description Hello, everyone. I'm using elasticsearch as a search driver. I often come across scenarios where I need to search for a file name in a repository or an organization. Currently, gitea only supports searching for code content. When I look at the storage structure in elasticsearch, I see that gitea treats the file path as the primary key, and it seems that the primary key cannot be searched for in elasticsearch. To summarize: I want to be able to search the file name to find out which repository the file belongs to and the path. I think this is a very useful feature. Many thanks to the gitea team! ### Screenshots _No response_
GiteaMirror added the proposal/acceptedtype/proposal labels 2025-11-02 09:36:29 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 3, 2023):

You are looking for this
grafik

@KN4CK3R commented on GitHub (Aug 3, 2023): You are looking for this ![grafik](https://github.com/go-gitea/gitea/assets/1666336/87d90759-646d-4989-939e-6a50260d3f46)
Author
Owner

@inbjo commented on GitHub (Aug 4, 2023):

You are looking for this grafik

This is fine for finding files in a single repository, but not if the files are spread across different repositories.

@inbjo commented on GitHub (Aug 4, 2023): > You are looking for this ![grafik](https://user-images.githubusercontent.com/1666336/258202299-87d90759-646d-4989-939e-6a50260d3f46.png) This is fine for finding files in a single repository, but not if the files are spread across different repositories.
Author
Owner

@lunny commented on GitHub (Oct 22, 2024):

This should be resolved by #32210

@lunny commented on GitHub (Oct 22, 2024): This should be resolved by #32210
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11394