Skip to content
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

Ticket search returns almost no ticket #22714

Closed
git-78 opened this issue Feb 1, 2023 · 0 comments · Fixed by #22829
Closed

Ticket search returns almost no ticket #22714

git-78 opened this issue Feb 1, 2023 · 0 comments · Fixed by #22829
Labels
Milestone

Comments

@git-78
Copy link

git-78 commented Feb 1, 2023

Description

Hi
Using Gitea 1.18.3 self-hosted on Debian 11 for a while, with a dozen of repos, we have just realized than searching through tickets returns no data or only a very-limited subset of data.

Ex: On a newly created repo, I create two tickets "Ticket Wednesday" and "NewTicket2", and search for keyword "Ticket". Only the first one is returned. If I add extra space in the second ("New Ticket 2"), it is then returned.

Ex: On another repo, I have two tickets whose title mentions the name "Server". Only one of the two is returned, whatever the wording (with space or not, etc.) of the second.

There is nothing wrong in /var/log/gitea/gitea.log not in access.log...

Do I need to activate something to allow searches?
Thank you for your help

Gitea Version

1.18.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

With these issues in my repo:
image
My search for "Ticket" returns
image

Git Version

2.30.2

Operating System

Debian 11

How are you running Gitea?

downloaded binary from gitea website

Database

MySQL

@git-78 git-78 added the type/bug label Feb 1, 2023
@lunny lunny added this to the 1.19.0 milestone Feb 12, 2023
lunny added a commit that referenced this issue Feb 12, 2023
Fixes #22714 
### Changes:
1. Add a token filter which named "camelCase" between custom unicode
token filter and "to_lower" token filter when add custom analyzer.

### Notice:
If users want this feature to work, they should delete folder under
{giteaPath}/data/indexers and restart application. Then application will
create a new IndexMapping.

### Screenshots:

![image](https://user-images.githubusercontent.com/33891828/217715692-c18c41f2-57a1-4727-861c-470935c8e0c8.png)

### Others:
I originally attempted to give users the ability to configure the
"token_filters" in the "app.ini" file. But I found that if users does
not strictly follow a right order to register "token_filters", they
won't get the expected results. I think it is difficult to ask users to
do this. So I finally give up this idea.

---------

Co-authored-by: Jason Song <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants