aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-09-27 18:06:49 +0200
committerGitHub <noreply@github.com>2022-09-27 18:06:49 +0200
commit87be32ca2671173a4287a938932e543410a32c3a (patch)
tree92d74544fccf5f51873db4f55c04045562990b35 /cmd
parent6c67552bf9eee18f656d731adf646aa09c5d7c92 (diff)
Fulltext implementation using Bleve (#2675)
Based on #2480 This actually indexes events based on their event type. They are removed from the index if we receive a `m.room.redaction` event on the `OutputRoomEvent` stream. An admin endpoint is added to reindex all existing events. Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/generate-config/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index c24e8153..8b042c56 100644
--- a/cmd/generate-config/main.go
+++ b/cmd/generate-config/main.go
@@ -5,10 +5,11 @@ import (
"fmt"
"path/filepath"
- "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"golang.org/x/crypto/bcrypt"
"gopkg.in/yaml.v2"
+
+ "github.com/matrix-org/dendrite/setup/config"
)
func main() {
@@ -82,6 +83,12 @@ func main() {
EnableInbound: true,
EnableOutbound: true,
}
+ cfg.SyncAPI.Fulltext = config.Fulltext{
+ Enabled: true,
+ IndexPath: config.Path(filepath.Join(*dirPath, "fulltextindex")),
+ InMemory: true,
+ Language: "en",
+ }
}
} else {
var err error