Browse Source

HUE-8881 [search] Solr examples cannot be loaded back

Romain 6 years ago
parent
commit
970ac95415

File diff suppressed because it is too large
+ 0 - 0
apps/search/src/search/fixtures/initial_search_examples.json


+ 1 - 1
desktop/libs/dashboard/src/dashboard/views.py

@@ -115,7 +115,7 @@ def index(request, is_mobile=False):
   template = 'search.mako'
   if is_mobile:
     template = 'search_m.mako'
-  engine = collection.data['collection']['engine']
+  engine = collection.data['collection'].get('engine', 'solr')
 
   return render(template, request, {
     'collection': collection,

Some files were not shown because too many files changed in this diff