diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-10-26 23:10:54 -0700 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-10-27 09:10:54 +0300 |
commit | 5866eb23217de4d29b181e30c26cee28ebc6aedc (patch) | |
tree | f8f67462544c709e8dd6988ca4d55a22cfc3a22c /modules/setting | |
parent | 762f1d7237de5727815ebda9593f7f9a20a5a077 (diff) | |
download | gitea-5866eb23217de4d29b181e30c26cee28ebc6aedc.tar.gz gitea-5866eb23217de4d29b181e30c26cee28ebc6aedc.zip |
Code/repo search (#2582)
Indexed search of repository contents (for default branch only)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 6c89381f3b..a1106132df 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -140,8 +140,11 @@ var ( // Indexer settings Indexer struct { - IssuePath string - UpdateQueueLength int + IssuePath string + RepoIndexerEnabled bool + RepoPath string + UpdateQueueLength int + MaxIndexerFileSize int64 } // Webhook settings @@ -234,12 +237,13 @@ var ( // UI settings UI = struct { - ExplorePagingNum int - IssuePagingNum int - FeedMaxCommitNum int - ThemeColorMetaTag string - MaxDisplayFileSize int64 - ShowUserEmail bool + ExplorePagingNum int + IssuePagingNum int + RepoSearchPagingNum int + FeedMaxCommitNum int + ThemeColorMetaTag string + MaxDisplayFileSize int64 + ShowUserEmail bool Admin struct { UserPagingNum int @@ -256,11 +260,12 @@ var ( Keywords string } `ini:"ui.meta"` }{ - ExplorePagingNum: 20, - IssuePagingNum: 10, - FeedMaxCommitNum: 5, - ThemeColorMetaTag: `#6cc644`, - MaxDisplayFileSize: 8388608, + ExplorePagingNum: 20, + IssuePagingNum: 10, + RepoSearchPagingNum: 10, + FeedMaxCommitNum: 5, + ThemeColorMetaTag: `#6cc644`, + MaxDisplayFileSize: 8388608, Admin: struct { UserPagingNum int RepoPagingNum int |