diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-14 13:47:14 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-11-02 12:31:16 +0000 |
commit | 24409c7c158c108fa31433dd20ee33d423f5cb04 (patch) | |
tree | b37f2cb6b61d1538bd49b7ae532fff174a18c931 | |
parent | Revert "Unified search query syntax using the full-text search capabilities o... (diff) | |
download | synapse-dmr/revert-fts-changes-on-hotfix.tar.xz |
Disable auto search for prefixes in event search github/dmr/revert-fts-changes-on-hotfix dmr/revert-fts-changes-on-hotfix
-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 1b79acf955..ddcda6f1a7 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: |