diff --git a/jobs/search-index/search-index.go b/jobs/search-index/search-index.go index b3f6d244..8a16e1d9 100644 --- a/jobs/search-index/search-index.go +++ b/jobs/search-index/search-index.go @@ -40,6 +40,10 @@ func updateAnimeIndex() { animeSearchIndex.TextToID[strings.ToLower(anime.Title.Japanese)] = anime.ID } + if anime.Title.Canonical != "" { + animeSearchIndex.TextToID[strings.ToLower(anime.Title.Canonical)] = anime.ID + } + for _, synonym := range anime.Title.Synonyms { synonym = strings.ToLower(synonym)