mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
Add /search
tests (#3025)
This commit is contained in:
parent
aa1bda4c58
commit
e8b2162a01
5 changed files with 389 additions and 50 deletions
|
@ -33,6 +33,7 @@ type Indexer interface {
|
|||
Index(elements ...IndexElement) error
|
||||
Delete(eventID string) error
|
||||
Search(term string, roomIDs, keys []string, limit, from int, orderByStreamPos bool) (SearchResult, error)
|
||||
GetHighlights(result SearchResult) []string
|
||||
Close() error
|
||||
}
|
||||
|
||||
|
@ -71,3 +72,7 @@ func (f *Search) Delete(eventID string) error {
|
|||
func (f *Search) Search(term string, roomIDs, keys []string, limit, from int, orderByStreamPos bool) (SearchResult, error) {
|
||||
return SearchResult{}, nil
|
||||
}
|
||||
|
||||
func (f *Search) GetHighlights(result SearchResult) []string {
|
||||
return []string{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue