Skip to content

Commit 24ed1b5

Browse files
jolheiser42wim
andauthored
Remove hardcoded ES indexername (#12521) (#12526)
Co-authored-by: Wim <[email protected]>
1 parent 8282697 commit 24ed1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/indexer/issues/indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func InitIssueIndexer(syncReindex bool) {
171171
log.Debug("Created Bleve Indexer")
172172
case "elasticsearch":
173173
graceful.GetManager().RunWithShutdownFns(func(_, atTerminate func(context.Context, func())) {
174-
issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, "gitea_issues")
174+
issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, setting.Indexer.IssueIndexerName)
175175
if err != nil {
176176
log.Fatal("Unable to initialize Elastic Search Issue Indexer at connection: %s Error: %v", setting.Indexer.IssueConnStr, err)
177177
}

0 commit comments

Comments
 (0)