|
|
|
@ -52,6 +52,7 @@ namespace ErsatzTV.Infrastructure.Search |
|
|
|
private const string DirectorField = "director"; |
|
|
|
private const string DirectorField = "director"; |
|
|
|
private const string WriterField = "writer"; |
|
|
|
private const string WriterField = "writer"; |
|
|
|
private const string TraktListField = "trakt_list"; |
|
|
|
private const string TraktListField = "trakt_list"; |
|
|
|
|
|
|
|
private const string AlbumField = "album"; |
|
|
|
|
|
|
|
|
|
|
|
public const string MovieType = "movie"; |
|
|
|
public const string MovieType = "movie"; |
|
|
|
public const string ShowType = "show"; |
|
|
|
public const string ShowType = "show"; |
|
|
|
@ -74,7 +75,7 @@ namespace ErsatzTV.Infrastructure.Search |
|
|
|
_initialized = false; |
|
|
|
_initialized = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int Version => 16; |
|
|
|
public int Version => 17; |
|
|
|
|
|
|
|
|
|
|
|
public Task<bool> Initialize(ILocalFileSystem localFileSystem) |
|
|
|
public Task<bool> Initialize(ILocalFileSystem localFileSystem) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -624,6 +625,11 @@ namespace ErsatzTV.Infrastructure.Search |
|
|
|
Field.Store.NO)); |
|
|
|
Field.Store.NO)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(metadata.Album)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
doc.Add(new TextField(AlbumField, metadata.Album, Field.Store.NO)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(metadata.Plot)) |
|
|
|
if (!string.IsNullOrWhiteSpace(metadata.Plot)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
doc.Add(new TextField(PlotField, metadata.Plot ?? string.Empty, Field.Store.NO)); |
|
|
|
doc.Add(new TextField(PlotField, metadata.Plot ?? string.Empty, Field.Store.NO)); |
|
|
|
|