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.
23 lines
877 B
23 lines
877 B
using System; |
|
using System.Collections.Generic; |
|
using System.Threading.Tasks; |
|
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Interfaces.Metadata; |
|
using ErsatzTV.Core.Interfaces.Repositories; |
|
using ErsatzTV.Core.Search; |
|
using LanguageExt; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Search |
|
{ |
|
public interface ISearchIndex : IDisposable |
|
{ |
|
public int Version { get; } |
|
Task<bool> Initialize(ILocalFileSystem localFileSystem); |
|
Task<Unit> Rebuild(ISearchRepository searchRepository, List<int> itemIds); |
|
Task<Unit> AddItems(ISearchRepository searchRepository, List<MediaItem> items); |
|
Task<Unit> UpdateItems(ISearchRepository searchRepository, List<MediaItem> items); |
|
Task<Unit> RemoveItems(List<int> ids); |
|
Task<SearchResult> Search(string query, int skip, int limit, string searchField = ""); |
|
void Commit(); |
|
} |
|
}
|
|
|