mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 20:22:07 +03:00
fix alternation operator for FTS4 - how did this ever work!?
This commit is contained in:
parent
a4bb133b68
commit
4b1fceb913
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ def _parse_query_sqlite(search_term):
|
|||
|
||||
# Pull out the individual words, discarding any non-word characters.
|
||||
results = re.findall(r"([\w\-]+)", search_term, re.UNICODE)
|
||||
return " & ".join("(%s* | %s)" % (result, result,) for result in results)
|
||||
return " & ".join("(%s* OR %s)" % (result, result,) for result in results)
|
||||
|
||||
|
||||
def _parse_query_postgres(search_term):
|
||||
|
|
Loading…
Reference in a new issue