Search index not updated when editing issue title #3883

Closed
opened 2025-11-02 05:29:28 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @bobemoe on GitHub (Sep 2, 2019).

  • Gitea version (or commit ref): 1.10.0+dev-237-g765be7032
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When an issue title is edited, the issue can't be found using the new title, in fact it still appears in the search results using the old keywords!

I created issue with title "specific keyword" then edited title and changed it to "renamed".

You can see the issue is not found in search for "renamed":

https://try.gitea.io/bobemoe/test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=renamed

But can still be found for "specific keyword":

https://try.gitea.io/bobemoe/test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=specific+keyword

Originally created by @bobemoe on GitHub (Sep 2, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.10.0+dev-237-g765be7032 - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant ## Description When an issue title is edited, the issue can't be found using the new title, in fact it still appears in the search results using the old keywords! I created issue with title "specific keyword" then edited title and changed it to "renamed". You can see the issue is not found in search for "renamed": https://try.gitea.io/bobemoe/test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=renamed But can still be found for "specific keyword": https://try.gitea.io/bobemoe/test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=specific+keyword
GiteaMirror added the type/bug label 2025-11-02 05:29:28 -06:00
Author
Owner

@bobemoe commented on GitHub (Sep 3, 2019):

Brilliant, this has fixed the issue, thanks for quick response :)

I need to edit the title again to trigger the reindex. Is there any way to run a full re-index to catch anything that was edited before the fix was implemented?

@bobemoe commented on GitHub (Sep 3, 2019): Brilliant, this has fixed the issue, thanks for quick response :) I need to edit the title again to trigger the reindex. Is there any way to run a full re-index to catch anything that was edited before the fix was implemented?
Author
Owner

@guillep2k commented on GitHub (Sep 3, 2019):

@bobemoe You can stop Gitea, then safely remove the directory indexers/issues.bleve and restart Gitea again. The index will be rebuilt in a few seconds, or minutes if you've got a large number of issues.

@guillep2k commented on GitHub (Sep 3, 2019): @bobemoe You can stop Gitea, then safely remove the directory `indexers/issues.bleve` and restart Gitea again. The index will be rebuilt in a few seconds, or minutes if you've got a large number of issues.
Author
Owner

@guillep2k commented on GitHub (Sep 3, 2019):

@bobemoe The fix is not included in any release yet, but you can get it if you build from source.

@guillep2k commented on GitHub (Sep 3, 2019): @bobemoe The fix is not included in any release yet, but you can get it if you build from source.
Author
Owner

@bobemoe commented on GitHub (Sep 3, 2019):

Curious. I'm running the dev build, which I think it pretty up to date? I tested by editing my title on the above try.gitea which is now at 1.10.0+dev-245-gc027eac1d changed it to "renamed again" and then it appeared to get re-indexed! Also did a second test and with new issue and it also working as expected.

Thanks for the tip about rebuilding the indexes, most useful :)

@bobemoe commented on GitHub (Sep 3, 2019): Curious. I'm running the dev build, which I think it pretty up to date? I tested by editing my title on the above try.gitea which is now at 1.10.0+dev-245-gc027eac1d changed it to "renamed again" and then it appeared to get re-indexed! Also did a second test and with new issue and it also working as expected. Thanks for the tip about rebuilding the indexes, most useful :)
Author
Owner

@guillep2k commented on GitHub (Sep 3, 2019):

I'm not sure how try.gitea.io is installed, but it could be that it's forced to rebuild indexes upon installation (it's a docker image AFAIK).

@guillep2k commented on GitHub (Sep 3, 2019): I'm not sure how try.gitea.io is installed, but it could be that it's forced to rebuild indexes upon installation (it's a docker image AFAIK).
Author
Owner

@bobemoe commented on GitHub (Oct 3, 2019):

This is working fine in web frontend (thanks again for fixing) but I've just noticed its still a problem when updating issue title or body through the API. Would you like me to open new issue?

@bobemoe commented on GitHub (Oct 3, 2019): This is working fine in web frontend (thanks again for fixing) but I've just noticed its still a problem when updating issue title or body through the API. Would you like me to open new issue?
Author
Owner

@bobemoe commented on GitHub (Oct 3, 2019):

Also a problem when editing issue body in the web frontend.

@bobemoe commented on GitHub (Oct 3, 2019): Also a problem when editing issue body in the web frontend.
Author
Owner

@guillep2k commented on GitHub (Oct 3, 2019):

This is working fine in web frontend (thanks again for fixing) but I've just noticed its still a problem when updating issue title or body through the API. Would you like me to open new issue?

Yes, please

@guillep2k commented on GitHub (Oct 3, 2019): > > > This is working fine in web frontend (thanks again for fixing) but I've just noticed its still a problem when updating issue title or body through the API. Would you like me to open new issue? Yes, please
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3883