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

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

Open
wbste opened this issue Mar 9, 2025 · 0 comments
Open
Labels

Comments

@wbste
Copy link

wbste commented Mar 9, 2025

Description

Hi all, regarding: #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

@wbste wbste added the type/bug label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant