diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-03-27 11:26:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 11:26:52 +0200 |
commit | e8b2162a01bf0e735869d5a2b9be258cb380255e (patch) | |
tree | 993b887ed4f9d352f2a5e43d3bf5fa5e59255875 /internal/fulltext/bleve_wasm.go | |
parent | aa1bda4c58d20e7d14267f9c87fab8efd7ae36ad (diff) |
Add `/search` tests (#3025)
Diffstat (limited to 'internal/fulltext/bleve_wasm.go')
-rw-r--r-- | internal/fulltext/bleve_wasm.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/fulltext/bleve_wasm.go b/internal/fulltext/bleve_wasm.go index 0053ed8c..12709900 100644 --- a/internal/fulltext/bleve_wasm.go +++ b/internal/fulltext/bleve_wasm.go @@ -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{} +} |