diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-02-13 14:06:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 14:06:17 +0800 |
commit | 5dbf36f356e67c6eb7df68727417702fa100bec5 (patch) | |
tree | 7c624c1302be1515a7c63a4e86ebda75d1d3b580 /custom/conf | |
parent | 17656021f165f8011e5f462f0336a083321c9e20 (diff) | |
download | gitea-5dbf36f356e67c6eb7df68727417702fa100bec5.tar.gz gitea-5dbf36f356e67c6eb7df68727417702fa100bec5.zip |
Issue search support elasticsearch (#9428)
* Issue search support elasticsearch
* Fix lint
* Add indexer name on app.ini
* add a warnning on SearchIssuesByKeyword
* improve code
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.ini.sample | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 31e8bf0b09..cf9eda05d4 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -368,8 +368,12 @@ CONN_MAX_LIFETIME = 3s MAX_OPEN_CONNS = 0 [indexer] -; Issue indexer type, currently support: bleve or db, default is bleve +; Issue indexer type, currently support: bleve, db or elasticsearch, default is bleve ISSUE_INDEXER_TYPE = bleve +; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch +ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200 +; Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch +ISSUE_INDEXER_NAME = gitea_issues ; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve ISSUE_INDEXER_PATH = indexers/issues.bleve ; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue |