allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [22/42] git commit: [#7278] ticket:612 Fix search by full name
Date Mon, 25 Aug 2014 11:33:42 GMT
[#7278] ticket:612 Fix search by full name


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ec2de752
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ec2de752
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ec2de752

Branch: refs/heads/je/42cc_7585
Commit: ec2de7529dae68e44b562b6dd299b559b445e156
Parents: f869d9d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Aug 1 13:38:41 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Aug 21 18:49:55 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/ec2de752/Allura/allura/lib/search.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/search.py b/Allura/allura/lib/search.py
index d699d28..392e3c7 100644
--- a/Allura/allura/lib/search.py
+++ b/Allura/allura/lib/search.py
@@ -175,7 +175,7 @@ def search_projects(q, field, rows=10, short_timeout=False, **kw):
         q = p.translate_query(q, fields)
     else:
         # construct query for a specific selected field
-        q = p.translate_query(u'%s:%s' % (field, q), fields)
+        q = p.translate_query(u'%s:"%s"' % (field, q), fields)
     fq = [u'type_s:Project']
     return search(q, fq=fq, rows=rows, short_timeout=short_timeout, ignore_errors=False,
**kw)
 


Mime
View raw message