Explore/search only searches "code files", not file types like PDF, PNG, etc. #14232

Closed
opened 2025-11-02 11:07:07 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @wbste on GitHub (Mar 9, 2025).

Description

Hi all, regarding: https://github.com/go-gitea/gitea/pull/32210. I'm on Gitea 1.23.5, and have indexing configured identical to the docs: https://docs.gitea.com/administration/repo-indexer

Searching is performed under https://GITEADOMAIN/explore/code, Exact search type. Have tried FILENAME.pdf, **pdf, **.pdf, etc. Note this is an issue with other file types that are not binaries. I can take any non-standard file and get zero results.

As a counter point, if I search README.md all the top results are readme files.

I'm trying to search site-wide in the Explore tab for filenames, but haven't limited luck. Something like Dockerfile seems to work fine, but if I put in an exact filename of a PDF, for example, I get zero results for both fuzzy and exact match. Does that PR only apply to "known code" files? Any format that isn't recognized (i.e. pdf) never returns results.

Perhaps I'm using Gitea in an "alternative" fashion, but I do have a handful of repos of non-code files (both binary and human-readable), and short of using Go to File from within the actual repo, I can't search for the files.

Gitea Version

1.23.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

1.23.5

Operating System

No response

How are you running Gitea?

Self-hosted, internal. I'm the sole user and admin.

Database

SQLite

Originally created by @wbste on GitHub (Mar 9, 2025). ### Description Hi all, regarding: https://github.com/go-gitea/gitea/pull/32210. I'm on Gitea 1.23.5, and have indexing configured identical to the docs: https://docs.gitea.com/administration/repo-indexer Searching is performed under https://GITEADOMAIN/explore/code, Exact search type. Have tried FILENAME.pdf, **pdf, **.pdf, etc. Note this is an issue with other file types that are not binaries. I can take any non-standard file and get zero results. As a counter point, if I search `README.md` all the top results are readme files. I'm trying to search site-wide in the Explore tab for filenames, but haven't limited luck. Something like `Dockerfile` seems to work fine, but if I put in an exact filename of a PDF, for example, I get zero results for both fuzzy and exact match. Does that PR only apply to "known code" files? Any format that isn't recognized (i.e. `pdf`) never returns results. Perhaps I'm using Gitea in an "alternative" fashion, but I do have a handful of repos of non-code files (both binary and human-readable), and short of using Go to File from within the actual repo, I can't search for the files. ### Gitea Version 1.23.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version 1.23.5 ### Operating System _No response_ ### How are you running Gitea? Self-hosted, internal. I'm the sole user and admin. ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 11:07:07 -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#14232