diff options
author | Sean Quah <seanq@matrix.org> | 2022-11-04 11:38:23 +0000 |
---|---|---|
committer | Sean Quah <seanq@matrix.org> | 2022-11-04 11:38:23 +0000 |
commit | f8f01b869e20df9628b90e0343b0c2ea9c660933 (patch) | |
tree | 1959c6cc1877f44676ac6fddeafda1234c7cc9a5 | |
parent | Merge branch 'dmr/revert-fts-changes-on-hotfix' into matrix-org-hotfixes (diff) | |
download | synapse-f8f01b869e20df9628b90e0343b0c2ea9c660933.tar.xz |
Revert "Disable auto search for prefixes in event search"
This reverts commit 24409c7c158c108fa31433dd20ee33d423f5cb04.
-rw-r--r-- | synapse/storage/databases/main/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/search.py b/synapse/storage/databases/main/search.py index ddcda6f1a7..1b79acf955 100644 --- a/synapse/storage/databases/main/search.py +++ b/synapse/storage/databases/main/search.py @@ -771,7 +771,7 @@ def _parse_query(database_engine: BaseDatabaseEngine, search_term: str) -> str: results = re.findall(r"([\w\-]+)", search_term, re.UNICODE) if isinstance(database_engine, PostgresEngine): - return " & ".join(result for result in results) + return " & ".join(result + ":*" for result in results) elif isinstance(database_engine, Sqlite3Engine): return " & ".join(result + "*" for result in results) else: |