You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/09/18 09:30:13 UTC
[38/43] git commit: [#7656] ticket:654 Removed quotes for search term
[#7656] ticket:654 Removed quotes for search term
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/209e68ea
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/209e68ea
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/209e68ea
Branch: refs/heads/je/42cc_7656
Commit: 209e68eac8d649832a2de9825976bee30b9833cf
Parents: 79a7d3b
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Fri Sep 12 16:27:21 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Thu Sep 18 09:33:58 2014 +0300
----------------------------------------------------------------------
Allura/allura/lib/search.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/209e68ea/Allura/allura/lib/search.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/search.py b/Allura/allura/lib/search.py
index 525fab3..9c4a5f3 100644
--- a/Allura/allura/lib/search.py
+++ b/Allura/allura/lib/search.py
@@ -192,7 +192,7 @@ def site_admin_search(model, q, field, **kw):
q = obj.translate_query(q, fields)
else:
# construct query for a specific selected field
- q = obj.translate_query(u'%s:"%s"' % (field, q), fields)
+ q = obj.translate_query(u'%s:%s' % (field, q), fields)
fq = [u'type_s:%s' % model.type_s]
return search(q, fq=fq, ignore_errors=False, **kw)