diff options
author | Wim <wim@42.be> | 2020-08-18 18:08:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 11:08:51 -0500 |
commit | e14f6088f800ecc9624fd307651e3ed4b6d9a091 (patch) | |
tree | c88d4779fbe034c5973c89da09b83199f494c33e /modules/indexer | |
parent | 61a172900e871e4151c804f4dc242e8c4895a4d3 (diff) | |
download | gitea-e14f6088f800ecc9624fd307651e3ed4b6d9a091.tar.gz gitea-e14f6088f800ecc9624fd307651e3ed4b6d9a091.zip |
Remove hardcoded ES indexername (#12521)
Diffstat (limited to 'modules/indexer')
-rw-r--r-- | modules/indexer/issues/indexer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go index 42f0854576..9edaef6bdd 100644 --- a/modules/indexer/issues/indexer.go +++ b/modules/indexer/issues/indexer.go @@ -171,7 +171,7 @@ func InitIssueIndexer(syncReindex bool) { log.Debug("Created Bleve Indexer") case "elasticsearch": graceful.GetManager().RunWithShutdownFns(func(_, atTerminate func(context.Context, func())) { - issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, "gitea_issues") + issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, setting.Indexer.IssueIndexerName) if err != nil { log.Fatal("Unable to initialize Elastic Search Issue Indexer at connection: %s Error: %v", setting.Indexer.IssueConnStr, err) } |