fix alternation operator for FTS4 - how did this ever work!?

This commit is contained in:
Matthew Hodgson 2017-11-30 01:34:03 +00:00
parent a4bb133b68
commit 4b1fceb913
1 changed files with 1 additions and 1 deletions

View File

@ -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):