mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 15:01:23 +01: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.
|
# Pull out the individual words, discarding any non-word characters.
|
||||||
results = re.findall(r"([\w\-]+)", search_term, re.UNICODE)
|
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):
|
def _parse_query_postgres(search_term):
|
||||||
|
|
Loading…
Reference in a new issue