1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/model/interfaces/ISearchManager.ts

9 lines
413 B
TypeScript
Raw Normal View History

2016-12-27 23:09:47 +08:00
import {AutoCompleteItem, SearchTypes} from "../../../common/entities/AutoCompleteItem";
2016-12-28 18:50:05 +08:00
import {SearchResultDTO} from "../../../common/entities/SearchResult";
2016-05-05 00:34:54 +08:00
export interface ISearchManager {
2017-07-08 06:18:24 +08:00
autocomplete(text: string): Promise<AutoCompleteItem[]>;
search(text: string, searchType: SearchTypes): Promise<SearchResultDTO>;
instantSearch(text: string): Promise<SearchResultDTO>;
2017-07-08 04:54:18 +08:00
isSupported(): boolean;
}