When searching for code, options Match and Fuzzy are switched #12830

Closed
opened 2025-11-02 10:22:19 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @esbennn on GitHub (Apr 12, 2024).

Description

When searching for code under Explore, selecting Fuzzy as search type performs a matched search, while selecting Matchperforms a fuzzy search.

For example, in my organization, searching for flightcase with Fuzzy yields 3 results, but flightcas yields none.
Searching for flightcase with Match yields 3 results, as does searching for flightcas.

See attached screenshots

Gitea Version

1.21.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Screenshot from 2024-04-04 09-06-22
Screenshot from 2024-04-04 09-06-15
Screenshot from 2024-04-04 09-06-10

Git Version

2.30.2

Operating System

Raspbian GNU/Linux 11 (bullseye)

How are you running Gitea?

Running official arm release with systemd on raspbian

Database

MySQL/MariaDB

Originally created by @esbennn on GitHub (Apr 12, 2024). ### Description When searching for code under Explore, selecting `Fuzzy` as search type performs a matched search, while selecting `Match`performs a fuzzy search. For example, in my organization, searching for `flightcase` with `Fuzzy` yields 3 results, but `flightcas` yields none. Searching for `flightcase` with `Match` yields 3 results, as does searching for `flightcas`. See attached screenshots ### Gitea Version 1.21.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![Screenshot from 2024-04-04 09-06-22](https://github.com/go-gitea/gitea/assets/3579040/41c8910e-8105-439b-ac95-52627937bcc4) ![Screenshot from 2024-04-04 09-06-15](https://github.com/go-gitea/gitea/assets/3579040/6d547d92-e21b-4e21-860d-3d30e6bd7fd7) ![Screenshot from 2024-04-04 09-06-10](https://github.com/go-gitea/gitea/assets/3579040/966b8910-20dd-4b10-8bd7-fc149eaa8aea) ### Git Version 2.30.2 ### Operating System Raspbian GNU/Linux 11 (bullseye) ### How are you running Gitea? Running official arm release with systemd on raspbian ### Database MySQL/MariaDB
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 10:22:19 -06:00
Author
Owner

@lng2020 commented on GitHub (Apr 14, 2024):

Not sure if it's a bug of 1.21.x, but for 1.22

  1. The default indexer was changed to git grep via #29998
  2. https://github.com/go-gitea/gitea/pull/29706 is about fixing the fuzziness of the former default indexer bleve.

I haven't tested it so I can't guarantee the result. But it may be fixed.

@lng2020 commented on GitHub (Apr 14, 2024): Not sure if it's a bug of 1.21.x, but for 1.22 1. The default indexer was changed to `git grep` via #29998 2. https://github.com/go-gitea/gitea/pull/29706 is about fixing the fuzziness of the former default indexer `bleve`. I haven't tested it so I can't guarantee the result. But it may be fixed.
Author
Owner

@GiteaBot commented on GitHub (May 14, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (May 14, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12830