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

Improve issue & code search #33860

Merged
merged 3 commits into from
Mar 13, 2025
Merged

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Mar 12, 2025

Each "indexer" should provide the "search modes" they support by themselves. And we need to remove the "fuzzy" search for code.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 12, 2025
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 12, 2025
@github-actions github-actions bot added modifies/translation modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Mar 12, 2025
@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch 2 times, most recently from ee59dd5 to 6127b4d Compare March 12, 2025 08:14
@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch 2 times, most recently from b50e754 to 4346249 Compare March 12, 2025 08:34
@wxiaoguang wxiaoguang added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Mar 12, 2025
@wxiaoguang wxiaoguang added this to the 1.24.0 milestone Mar 12, 2025
@wxiaoguang
Copy link
Contributor Author

wxiaoguang commented Mar 12, 2025

image


image

@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch 2 times, most recently from 2d77e13 to 3de2208 Compare March 12, 2025 08:53
@wxiaoguang wxiaoguang changed the title Refactor issue & code search Improve issue & code search Mar 12, 2025
@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch from 3de2208 to ad14b12 Compare March 12, 2025 09:01
@adlternative
Copy link

adlternative commented Mar 12, 2025

Hi, It looks good overall. However, the user might not want to deal with complicated mode selection, I would like the UI to be similar to grep.app or sourcegraph, which would make it closer to the search experience in IDEs like in vscode.

[Aa] <u>ab</u> .*

https://grep.app/search?q=make+func

image

https://sourcegraph.com/search?q=context:global+make+func&patternType=keyword&sm=0

image

@wxiaoguang
Copy link
Contributor Author

Hi, It looks good overall. However, the user might not want to deal with complicated mode selection, I would like the UI to be similar to grep.app or sourcegraph, which would make it closer to the search experience in IDEs like in vscode.

This is only a refactoring PR to fix existing problems.

New PRs could have new UI.

@wxiaoguang
Copy link
Contributor Author

And actually that dropdown matches your screenshot:

image

@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch 2 times, most recently from ce45b7c to fa4beda Compare March 12, 2025 11:01
@wxiaoguang wxiaoguang force-pushed the refactor-search-engine branch from fa4beda to 0d9f336 Compare March 12, 2025 12:11
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 12, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 13, 2025
@wxiaoguang wxiaoguang merged commit 403775e into go-gitea:main Mar 13, 2025
26 checks passed
@wxiaoguang wxiaoguang deleted the refactor-search-engine branch March 13, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation size/L Denotes a PR that changes 100-499 lines, ignoring generated files. type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants