From 04139328d3e199c2460d26a9b75c7a4608f8b17f Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Thu, 19 May 2022 14:18:57 +0200 Subject: [PATCH] Create FTS only in monolith or syncapi --- setup/base/base.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/base/base.go b/setup/base/base.go index d46624f63..9a4b8ea64 100644 --- a/setup/base/base.go +++ b/setup/base/base.go @@ -149,7 +149,8 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, options ...Base } var fts *fulltext.Search - if cfg.SyncAPI.Fulltext.Enabled { + isSyncOrMonolith := componentName == "syncapi" || isMonolith + if cfg.SyncAPI.Fulltext.Enabled && isSyncOrMonolith { fts, err = fulltext.New(cfg.SyncAPI.Fulltext) if err != nil { logrus.WithError(err).Panicf("failed to create full text")