Search index not updated when editing some fields #4053

Closed
opened 2025-11-02 05:35:47 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @bobemoe on GitHub (Oct 3, 2019).

  • Gitea version (or commit ref): 1.10.0+dev-366-g0bda87616

Description

Same as the issue that was fixed in https://github.com/go-gitea/gitea/issues/8060 except occurring when edited via API. Also editing issue body via web frontend and api also experiences this issue.

I tested the index on new and update for title and body fields and comments too, all working fine except these three:

  • new web issue title
  • new web issue body
  • new web comment body
  • changed web issue title
  • changed web issue body
  • changed web comment body
  • new api issue title
  • new api issue body
  • new api comment body
  • changed api issue title
  • changed api issue body
  • changed api comment body
Originally created by @bobemoe on GitHub (Oct 3, 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-366-g0bda87616 ## Description Same as the issue that was fixed in https://github.com/go-gitea/gitea/issues/8060 except occurring when edited via API. Also editing issue body via web frontend and api also experiences this issue. I tested the index on new and update for title and body fields and comments too, all working fine except these three: * [x] new web issue title * [x] new web issue body * [x] new web comment body * [x] changed web issue title * [ ] changed web issue body * [x] changed web comment body * [x] new api issue title * [x] new api issue body * [x] new api comment body * [ ] changed api issue title * [ ] changed api issue body * [x] changed api comment body
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:35:47 -06:00
Author
Owner

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

Just confirmed on try.gitea.io.

All these issues should not be found by the keyword "keyword" as I edited them in various ways and changed "keyword" to "none"

They are still found by "keyword": https://try.gitea.io/bobemoe/search_test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=keyword

But not found by "none": https://try.gitea.io/bobemoe/search_test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=none

@bobemoe commented on GitHub (Oct 3, 2019): Just confirmed on try.gitea.io. All these issues should **not** be found by the keyword "keyword" as I edited them in various ways and changed "keyword" to "none" They are still found by "keyword": https://try.gitea.io/bobemoe/search_test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=keyword But not found by "none": https://try.gitea.io/bobemoe/search_test/issues?type=all&state=open&labels=0&milestone=0&assignee=0&q=none
Author
Owner

@stale[bot] commented on GitHub (Dec 2, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Dec 2, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@bobemoe commented on GitHub (Dec 13, 2020):

I've just tested this against 1.14.0+dev-377-gde0986d78 on try.gitea.io and the 3 problematic events above are now working correctly :)

@bobemoe commented on GitHub (Dec 13, 2020): I've just tested this against 1.14.0+dev-377-gde0986d78 on try.gitea.io and the 3 problematic events above are now working correctly :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4053