diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-14 13:47:14 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-15 09:51:09 +0000 |
commit | 7de9a28b8eed396460edee3e1c7697e1db198f39 (patch) | |
tree | e01cf5f44a838fbc8253fb81d1b7075b0f69d326 | |
parent | Add timeout to ResponseCache of /public_rooms (diff) | |
download | synapse-7de9a28b8eed396460edee3e1c7697e1db198f39.tar.xz |
Disable auto search for prefixes in event search
-rw-r--r-- | synapse/storage/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py index 2755acff40..52ad196e9e 100644 --- a/synapse/storage/search.py +++ b/synapse/storage/search.py @@ -719,7 +719,7 @@ def _parse_query(database_engine, search_term): 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: |