Gitea: Search a repository

Created on 21 Mar 2018  ·  3Comments  ·  Source: go-gitea/gitea

  • Gitea version (or commit ref):
  • Git version: N/A
  • Operating system: N/A
  • Database (use [x]): N/A

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [X] Not relevant

  • Log gist:

Description

I have looked, and I have not found the ability to search the contents of a repository (like GitHub allows, for example). Could it be implemented?

Most helpful comment

see https://docs.gitea.io/en-us/config-cheat-sheet/

Indexer (indexer)
ISSUE_INDEXER_PATH: indexers/issues.bleve: Index file used for issue search.
REPO_INDEXER_ENABLED: false: Enables code search (uses a lot of disk space).
REPO_INDEXER_PATH: indexers/repos.bleve: Index file used for code search.
UPDATE_BUFFER_LEN: 20: Buffer length of index request.
MAX_FILE_SIZE: 1048576: Maximum size in bytes of files to be indexed.

All 3 comments

If you mean search the code, gitea has implemented this issue. You could enable it on app.ini.

@lunny where? I searched app.ini.sample and found nothing related to search.

see https://docs.gitea.io/en-us/config-cheat-sheet/

Indexer (indexer)
ISSUE_INDEXER_PATH: indexers/issues.bleve: Index file used for issue search.
REPO_INDEXER_ENABLED: false: Enables code search (uses a lot of disk space).
REPO_INDEXER_PATH: indexers/repos.bleve: Index file used for code search.
UPDATE_BUFFER_LEN: 20: Buffer length of index request.
MAX_FILE_SIZE: 1048576: Maximum size in bytes of files to be indexed.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

cookiengineer picture cookiengineer  ·  3Comments

lunny picture lunny  ·  3Comments

jorise7 picture jorise7  ·  3Comments

mirhec picture mirhec  ·  3Comments

kifirkin picture kifirkin  ·  3Comments