chore(gitea): improved code search

This commit is contained in:
Michele Cereda
2025-08-05 21:31:03 +02:00
parent 3e59fe709c
commit a4423457db

View File

@@ -9,6 +9,7 @@
1. [Send emails](#send-emails) 1. [Send emails](#send-emails)
1. [Use Oauth2 for authentication](#use-oauth2-for-authentication) 1. [Use Oauth2 for authentication](#use-oauth2-for-authentication)
1. [Map OAuth2 users to Gitea teams and organizations](#map-oauth2-users-to-gitea-teams-and-organizations) 1. [Map OAuth2 users to Gitea teams and organizations](#map-oauth2-users-to-gitea-teams-and-organizations)
1. [Search](#search)
1. [Further readings](#further-readings) 1. [Further readings](#further-readings)
1. [Sources](#sources) 1. [Sources](#sources)
@@ -211,7 +212,7 @@ PASSWD = `App_Password`
### Use Oauth2 for authentication ### Use Oauth2 for authentication
Remember to set up a mailer should one want to require email confirmation during registration. Remember to set up a mailer, should one want to require email confirmation during registration.
<details> <details>
<summary>Google Cloud example</summary> <summary>Google Cloud example</summary>
@@ -254,6 +255,23 @@ Remember to set up a mailer should one want to require email confirmation during
TODO TODO
### Search
Users can do repository-level code search by default.
The builtin code search is based on the `git grep` command. It is fast and efficient for small repositories.<br/>
Better code search support could be achieved by setting up the repository indexer.
Refer [Repository indexer].
Indexing the repository's contents can consume lots of resources.<br/>
This is especially true when an index is created for the first time or globally updated (e.g. after upgrading Gitea).
```ini
[mailer]
REPO_INDEXER_ENABLED = true
```
## Further readings ## Further readings
- [Self-hosting] - [Self-hosting]
@@ -292,4 +310,5 @@ Alternatives:
[https setup to encrypt connections to gitea]: https://docs.gitea.com/administration/https-setup [https setup to encrypt connections to gitea]: https://docs.gitea.com/administration/https-setup
[installation with docker]: https://docs.gitea.com/installation/install-with-docker-rootless [installation with docker]: https://docs.gitea.com/installation/install-with-docker-rootless
[installation with helm]: https://docs.gitea.com/installation/install-on-kubernetes [installation with helm]: https://docs.gitea.com/installation/install-on-kubernetes
[repository indexer]: https://docs.gitea.com/administration/repo-indexer
[website]: https://about.gitea.com/ [website]: https://about.gitea.com/