allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [17/26] git commit: [#7656] ticket:654 Removed quotes for search term
Date Fri, 19 Sep 2014 20:04:31 GMT
[#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/fa91db78
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/fa91db78
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/fa91db78

Branch: refs/heads/master
Commit: fa91db782659fc4d28e0e44a58cb3eaa5b77bebe
Parents: c41daca
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Fri Sep 12 16:27:21 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Sep 19 19:35:41 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/search.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/fa91db78/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)
 


Mime
View raw message