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:29:57 UTC
[22/43] git commit: [#7656] ticket:648 Get rid of specific search
functions, which aren't used now
[#7656] ticket:648 Get rid of specific search functions, which aren't used now
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/dbad6b5a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/dbad6b5a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/dbad6b5a
Branch: refs/heads/je/42cc_7656
Commit: dbad6b5a122c25b9b243901d88dfcac01a5329ba
Parents: fe13d6e
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Sep 9 14:10:44 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Thu Sep 18 09:33:57 2014 +0300
----------------------------------------------------------------------
Allura/allura/lib/search.py | 10 ----------
1 file changed, 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/dbad6b5a/Allura/allura/lib/search.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/search.py b/Allura/allura/lib/search.py
index f4f177a..1c3ba8a 100644
--- a/Allura/allura/lib/search.py
+++ b/Allura/allura/lib/search.py
@@ -180,8 +180,6 @@ def search_artifact(atype, q, history=False, rows=10, short_timeout=False, filte
def site_admin_search(model, q, field, **kw):
"""Performs SOLR search for a given model.
- Probably you should not use it directly. Use one of the specific functions below.
-
Raises SearchError if SOLR returns an error.
"""
# first, grab a object and get the fields that it indexes
@@ -198,14 +196,6 @@ def site_admin_search(model, q, field, **kw):
fq = [u'type_s:%s' % model.type_s]
return search(q, fq=fq, ignore_errors=False, **kw)
-def search_projects(q, field, **kw):
- from allura.model import Project
- return site_admin_search(Project, q, field, **kw)
-
-def search_users(q, field, **kw):
- from allura.model import User
- return site_admin_search(User, q, field, **kw)
-
def search_app(q='', fq=None, app=True, **kw):
"""Helper for app/project search.