[PR #2582] [MERGED] Code/repo search #16484

Closed
opened 2025-11-02 12:11:43 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2582
Author: @ethantkoenig
Created: 9/23/2017
Status: Merged
Merged: 10/27/2017
Merged by: @lafriks

Base: masterHead: repo_search


📝 Commits (1)

📊 Changes

33 files changed (+1214 additions, -31 deletions)

View changed files

📝 conf/app.ini (+4 -0)
📝 integrations/integration_test.go (+4 -0)
📝 integrations/mysql.ini.tmpl (+2 -0)
📝 integrations/pgsql.ini.tmpl (+2 -0)
integrations/repo_search_test.go (+35 -0)
📝 integrations/sqlite.ini (+2 -0)
models/fixtures/repo_indexer_status.yml (+1 -0)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v48.go (+25 -0)
📝 models/models.go (+20 -4)
📝 models/repo.go (+11 -6)
📝 models/repo_editor.go (+2 -0)
models/repo_indexer.go (+302 -0)
📝 models/update.go (+4 -0)
📝 modules/context/repo.go (+1 -0)
modules/indexer/repo.go (+199 -0)
modules/search/search.go (+128 -0)
📝 modules/setting/setting.go (+18 -13)
modules/util/path.go (+16 -0)
📝 modules/util/util.go (+16 -0)

...and 13 more files

📄 Description

Indexed search of repository contents (for default branch only). Implements #1102.

Details/features:

  • Adds a new bleve index for repository contents
  • Indexing supports unicode normalization and camelCase sensitivity
  • Excludes non-text files, and files larger than a configurable threshold (default 512 MB)
  • Integration tests

Current Screenshots:

code

top

bottom

Old Screenshots (for comparison):

old top


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2582 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 9/23/2017 **Status:** ✅ Merged **Merged:** 10/27/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `repo_search` --- ### 📝 Commits (1) - [`e04b069`](https://github.com/go-gitea/gitea/commit/e04b069d8978e0a5e8265422759ee7442a2ee647) Code/repo search ### 📊 Changes **33 files changed** (+1214 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+4 -0) 📝 `integrations/integration_test.go` (+4 -0) 📝 `integrations/mysql.ini.tmpl` (+2 -0) 📝 `integrations/pgsql.ini.tmpl` (+2 -0) ➕ `integrations/repo_search_test.go` (+35 -0) 📝 `integrations/sqlite.ini` (+2 -0) ➕ `models/fixtures/repo_indexer_status.yml` (+1 -0) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v48.go` (+25 -0) 📝 `models/models.go` (+20 -4) 📝 `models/repo.go` (+11 -6) 📝 `models/repo_editor.go` (+2 -0) ➕ `models/repo_indexer.go` (+302 -0) 📝 `models/update.go` (+4 -0) 📝 `modules/context/repo.go` (+1 -0) ➕ `modules/indexer/repo.go` (+199 -0) ➕ `modules/search/search.go` (+128 -0) 📝 `modules/setting/setting.go` (+18 -13) ➕ `modules/util/path.go` (+16 -0) 📝 `modules/util/util.go` (+16 -0) _...and 13 more files_ </details> ### 📄 Description Indexed search of repository contents (for default branch only). Implements #1102. Details/features: - Adds a new bleve index for repository contents - Indexing supports unicode normalization and camelCase sensitivity - Excludes non-text files, and files larger than a configurable threshold (default 512 MB) - Integration tests ## Current Screenshots: ![code](https://user-images.githubusercontent.com/8990880/31587560-bbb3c740-b198-11e7-9c7d-686681cd74d2.png) ![top](https://user-images.githubusercontent.com/8990880/31587553-a89c367e-b198-11e7-842c-4848b304d766.png) ![bottom](https://user-images.githubusercontent.com/8990880/31320374-79006270-ac28-11e7-9929-234b92899998.png) ## Old Screenshots (for comparison): ![old top](https://user-images.githubusercontent.com/8990880/31320367-6103326a-ac28-11e7-80ac-d9518ec1fca6.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:11:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16484