2018-03-31 03:30:30 +08:00
|
|
|
import {AutoCompleteItem, SearchTypes} from '../../../common/entities/AutoCompleteItem';
|
|
|
|
import {SearchResultDTO} from '../../../common/entities/SearchResultDTO';
|
2017-07-21 05:00:49 +08:00
|
|
|
|
2016-05-05 00:34:54 +08:00
|
|
|
export interface ISearchManager {
|
2017-07-08 06:18:24 +08:00
|
|
|
autocomplete(text: string): Promise<AutoCompleteItem[]>;
|
2018-03-31 03:30:30 +08:00
|
|
|
|
2017-07-08 06:18:24 +08:00
|
|
|
search(text: string, searchType: SearchTypes): Promise<SearchResultDTO>;
|
2018-03-31 03:30:30 +08:00
|
|
|
|
2017-07-08 06:18:24 +08:00
|
|
|
instantSearch(text: string): Promise<SearchResultDTO>;
|
2017-07-08 04:54:18 +08:00
|
|
|
}
|