Skip to content

Commit 24409c7

Browse files
erikjohnstonDavid Robertson
authored and
David Robertson
committed
Disable auto search for prefixes in event search
1 parent 7e0dd52 commit 24409c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/storage/databases/main/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def _parse_query(database_engine: BaseDatabaseEngine, search_term: str) -> str:
771771
results = re.findall(r"([\w\-]+)", search_term, re.UNICODE)
772772

773773
if isinstance(database_engine, PostgresEngine):
774-
return " & ".join(result + ":*" for result in results)
774+
return " & ".join(result for result in results)
775775
elif isinstance(database_engine, Sqlite3Engine):
776776
return " & ".join(result + "*" for result in results)
777777
else:

0 commit comments

Comments
 (0)