go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.13k stars 5.49k forks source link

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

Closed esbennn closed 6 months ago

esbennn commented 7 months ago

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

lng2020 commented 7 months ago

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.

GiteaBot commented 6 months ago

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