index song genres (#513)

* add song genres to search index

* reset all song genre metadata

* update changelog and docs
This commit is contained in:
Jason Dove
2021-11-27 18:08:55 -06:00
committed by GitHub
parent 1e35e9a5b0
commit 7f84933c0b
7 changed files with 3901 additions and 2 deletions
@@ -867,6 +867,11 @@ namespace ErsatzTV.Infrastructure.Search
doc.Add(new TextField(TagField, tag.Name, Field.Store.NO));
}
foreach (Genre genre in metadata.Genres)
{
doc.Add(new TextField(GenreField, genre.Name, Field.Store.NO));
}
_writer.UpdateDocument(new Term(IdField, song.Id.ToString()), doc);
}
catch (Exception ex)