Code search exact makes not exact search 1.23.6 #14299

Closed
opened 2025-11-02 11:09:09 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @gomanuke on GitHub (Mar 25, 2025).

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

Originally created by @gomanuke on GitHub (Mar 25, 2025). ### 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](https://github.com/user-attachments/files/19441983/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
GiteaMirror added the issue/needs-feedbacktype/bugissue/workaround labels 2025-11-02 11:09:09 -06:00
Author
Owner

@wxiaoguang commented on GitHub (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 commented on GitHub (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.
Author
Owner

@gomanuke commented on GitHub (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?

@gomanuke commented on GitHub (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?
Author
Owner

@wxiaoguang commented on GitHub (Mar 25, 2025):

[indexer]
REPO_INDEXER_ENABLED=false

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

@wxiaoguang commented on GitHub (Mar 25, 2025): ``` [indexer] REPO_INDEXER_ENABLED=false ``` ps: the better "git grep" search is also only in main (nightly) build, not in 1.23
Author
Owner

@GiteaBot commented on GitHub (Apr 24, 2025):

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

@GiteaBot commented on GitHub (Apr 24, 2025): 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#14299