Skip to content
Snippets Groups Projects
Commit 853c5685 authored by anonymous's avatar anonymous
Browse files

search term to lower case

parent 26329209
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ def odsh_user_create(context, data_dict):
@toolkit.side_effect_free
def autocomplete(context, data_dict):
query = {
'terms.prefix': data_dict['q'],
'terms.prefix': data_dict['q'].lower(),
'terms.limit': 20}
conn = make_connection(decode_dates=False)
......
......@@ -90,6 +90,7 @@ class OdshAutocompletePlugin(plugins.SingletonPlugin):
def get_actions(self):
return {'autocomplete': action.autocomplete}
class OdshHarvestPlugin(plugins.SingletonPlugin):
plugins.implements(plugins.IRoutes, inherit=True)
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