Improved search index
This commit is contained in:
parent
9950adbf9e
commit
3309e5fb63
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user