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/09 16:28:31 UTC
[11/18] 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/7330f8dc
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7330f8dc
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7330f8dc
Branch: refs/heads/je/42cc_7656
Commit: 7330f8dc8b2344086c29daef9d04f4f030ba1b13
Parents: 3577c18
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Sep 9 14:10:44 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Sep 9 14:10:44 2014 +0300
----------------------------------------------------------------------
Allura/allura/lib/search.py | 10 ----------
1 file changed, 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/7330f8dc/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.