Browse Source

Remove hardcoded ES indexername (#12521)

pull/12536/head
Wim 2 years ago committed by GitHub
parent
commit
e14f6088f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/indexer/issues/indexer.go

2
modules/indexer/issues/indexer.go

@ -171,7 +171,7 @@ func InitIssueIndexer(syncReindex bool) { @@ -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)
}

Loading…
Cancel
Save