Skip to content

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

Closed
@wbste

Description

@wbste

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions