mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
fix alternation operator for FTS4 - how did this ever work!?
This commit is contained in:
parent
a4bb133b68
commit
4b1fceb913
@ -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 New Issue
Block a user