Skip to content

Commit

Permalink
fix alternation operator for FTS4 - how did this ever work!?
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Nov 30, 2017
1 parent a4bb133 commit 4b1fceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/user_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4b1fceb

Please sign in to comment.