Skip to content
Snippets Groups Projects
Commit 4b1fceb9 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

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

parent a4bb133b
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment