summaryrefslogtreecommitdiffstats
path: root/askbot/search
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-09 22:14:24 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-09 22:14:24 -0400
commit001fa7fb487ba90d3e0ad9481a21f62c47ada25d (patch)
tree8864379e2f28e83b03352d283309ef76f4944732 /askbot/search
parentf0c4df9022c3207b13cfcca509c8b7db57417cb5 (diff)
downloadaskbot-001fa7fb487ba90d3e0ad9481a21f62c47ada25d.tar.gz
askbot-001fa7fb487ba90d3e0ad9481a21f62c47ada25d.tar.bz2
askbot-001fa7fb487ba90d3e0ad9481a21f62c47ada25d.zip
changed logical AND to OR in text search
Diffstat (limited to 'askbot/search')
-rw-r--r--askbot/search/postgresql/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/search/postgresql/__init__.py b/askbot/search/postgresql/__init__.py
index d71b824f..1825a92f 100644
--- a/askbot/search/postgresql/__init__.py
+++ b/askbot/search/postgresql/__init__.py
@@ -76,7 +76,7 @@ def run_full_text_search(query_set, query_text, text_search_vector_name):
where_clause += " AND " + table_name + \
'.' + "language_code='" + language_code + "'"
- search_query = '&'.join(query_text.split())#apply "AND" operator
+ search_query = '|'.join(query_text.split())#apply "OR" operator
language_name = LANGUAGE_NAMES.get(language_code, 'english')
extra_params = (language_name, search_query,)
extra_kwargs = {