* 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
19 lines
505 B
C#
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; }
|
|
}
|