mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
604 B
19 lines
604 B
using System.Collections.Generic; |
|
using System.Threading.Tasks; |
|
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Search; |
|
using LanguageExt; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Search |
|
{ |
|
public interface ISearchIndex |
|
{ |
|
public int Version { get; } |
|
Task<bool> Initialize(); |
|
Task<Unit> Rebuild(List<MediaItem> items); |
|
Task<Unit> AddItems(List<MediaItem> items); |
|
Task<Unit> UpdateItems(List<MediaItem> items); |
|
Task<Unit> RemoveItems(List<int> ids); |
|
Task<SearchResult> Search(string query, int skip, int limit, string searchField = ""); |
|
} |
|
}
|
|
|