Skip to content

Code search exact makes not exact search 1.23.6 #34006

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
gomanuke opened this issue Mar 25, 2025 · 4 comments
Closed

Code search exact makes not exact search 1.23.6 #34006

gomanuke opened this issue Mar 25, 2025 · 4 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/workaround it is or has a workaround type/bug

Comments

@gomanuke
Copy link

Description

1 23 6 exact searches better BUT thinks that searching string should be rounded by x32
It's not good. File attached.

String 'webservice' is not in results in WWV_FLOW_WEBSERVICES_API. but in results when WWV_FLOW_ WEBSERVICES _API.

Test.txt

So string should be searched inside other strings but not only separate words inside x32 isn't it?

Gitea Version

1.23.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Debian 12

How are you running Gitea?

Downloaded release gitea-1.23.6-linux-amd64

Database

MySQL/MariaDB

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 25, 2025

Different search engines have different behaviors. (ps: at the moment I don't have more time for the search engine behaviors)

If you care about the "full phrase" search, you could just disable the bleve for code search, only use the "builtin git grep" search, it also supports regexp.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/workaround it is or has a workaround labels Mar 25, 2025
@gomanuke
Copy link
Author

gomanuke commented Mar 25, 2025

I do appreciate You for Your attention to that problem.
Would You make a bit more about " you could just disable the bleve for code search"?
Where and what I should change?

@wxiaoguang
Copy link
Contributor

[indexer]
REPO_INDEXER_ENABLED=false

ps: the better "git grep" search is also only in main (nightly) build, not in 1.23

@GiteaBot
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

No branches or pull requests

3 participants