Browse Source

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

Romain 6 năm trước cách đây
mục cha
commit
970ac95415

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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,

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác