Skip to content
Snippets Groups Projects
Commit 54f407b6 authored by Dennis's avatar Dennis
Browse files

search term to lower case

parent 6ce4219c
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ def odsh_user_create(context, data_dict): ...@@ -42,7 +42,7 @@ def odsh_user_create(context, data_dict):
@toolkit.side_effect_free @toolkit.side_effect_free
def autocomplete(context, data_dict): def autocomplete(context, data_dict):
query = { query = {
'terms.prefix': data_dict['q'], 'terms.prefix': data_dict['q'].lower(),
'terms.limit': 20} 'terms.limit': 20}
conn = make_connection(decode_dates=False) conn = make_connection(decode_dates=False)
......
...@@ -90,6 +90,7 @@ class OdshAutocompletePlugin(plugins.SingletonPlugin): ...@@ -90,6 +90,7 @@ class OdshAutocompletePlugin(plugins.SingletonPlugin):
def get_actions(self): def get_actions(self):
return {'autocomplete': action.autocomplete} return {'autocomplete': action.autocomplete}
class OdshHarvestPlugin(plugins.SingletonPlugin): class OdshHarvestPlugin(plugins.SingletonPlugin):
plugins.implements(plugins.IRoutes, inherit=True) plugins.implements(plugins.IRoutes, inherit=True)
plugins.implements(plugins.IConfigurer) plugins.implements(plugins.IConfigurer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment