Skip to content

Filename search does not work. #34322

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

Closed
wbste opened this issue Apr 30, 2025 · 1 comment
Closed

Filename search does not work. #34322

wbste opened this issue Apr 30, 2025 · 1 comment
Labels

Comments

@wbste
Copy link

wbste commented Apr 30, 2025

Description

Related to my last request: #33828 which was added to the latest release.

I am still unable to find (for example) PDFs, PNGs, etc, by filename. **.pdf doesn't work, partial filenames don't work, etc. Test by finding any binary file in any repo, go to the Explore tab, and copy/paste the filename.

Maybe there's a special syntax to search for it that isn't in the docs?

Just downloaded latest release, deleted my old repos.bleve folder. Have the following config:

[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
MAX_FILE_SIZE = 1048576
REPO_INDEXER_INCLUDE =
REPO_INDEXER_EXCLUDE = resources/bin/**

The files I'm testing are smaller than 1 MB, fyi.

Gitea Version

1.24.0rc0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Binary on Windows host

Database

None

@wbste wbste added the type/bug label Apr 30, 2025
@wbste
Copy link
Author

wbste commented Apr 30, 2025

Closing. Took a look at the latest example and copied it. Now I see PDFs! Not sure if it's due to removing the EXCLUDE I had above, or setting the FUZZINESS to 1, but it works!

https://github.com/go-gitea/gitea/blob/ba5c3f808768f46d20d723e7f062b4d970165067/custom/conf/app.example.ini#L1500C1-L1534C30

Final config (some PDFs are quite large).

[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
MAX_FILE_SIZE = 104857600
TYPE_BLEVE_MAX_FUZZINESS = 1

EDIT: Only can search by extension, not any sort of filename. I.e. pdf works, but test.pdf doesn't, nor does any variation like **test**pdf. Will investigate...

@wbste wbste closed this as completed Apr 30, 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