Skip to content

Commit

Permalink
Merge pull request #889 from bcgov/test
Browse files Browse the repository at this point in the history
Migrate test to main
  • Loading branch information
adodge-bcg authored Nov 5, 2021
2 parents 1dab3d0 + 96457de commit 8af26fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/bcgov/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ def before_index(self, pkg_dict):

# IPackageController
def before_search(self, search_params):

if not search_params.get('defType', ''):
search_params['defType'] = 'edismax' # use edismax if query type unspecified

if c.userobj and c.userobj.sysadmin is True:
return search_params
Expand Down

0 comments on commit 8af26fd

Please sign in to comment.