aboutsummaryrefslogtreecommitdiff
path: root/internal/fulltext/bleve_wasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fulltext/bleve_wasm.go')
-rw-r--r--internal/fulltext/bleve_wasm.go5
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{}
+}