Files
ersatztv/ErsatzTV.Infrastructure/Search/Models/MinimalElasticSearchItem.cs
T
Jason DoveandGitHub c62cc98c9f add elasticsearch search index provider (#1370)
* wip

* first pass at elasticsearch; movies kind of work

* use field name constants

* properly sort search results

* fix some crashes

* fix page map/jump letters

* optimize page map using terms aggregation

* index all item types

* optionally use elastic search

* code cleanup

* automatically rebuild lucene index after improper shutdown

* update changelog
2023-08-11 13:57:50 -05:00

19 lines
505 B
C#

using System.Text.Json.Serialization;
namespace ErsatzTV.Infrastructure.Search.Models;
public class MinimalElasticSearchItem
{
[JsonPropertyName(LuceneSearchIndex.IdField)]
public int Id { get; set; }
[JsonPropertyName(LuceneSearchIndex.TypeField)]
public string Type { get; set; }
[JsonPropertyName(LuceneSearchIndex.SortTitleField)]
public string SortTitle { get; set; }
[JsonPropertyName(LuceneSearchIndex.JumpLetterField)]
public string JumpLetter { get; set; }
}