Browse Source

HUE-2189 [search] Exporting results should not add extra HTML

Romain Rigaux 11 năm trước cách đây
mục cha
commit
b44cae9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/search/src/search/models.py

+ 1 - 1
apps/search/src/search/models.py

@@ -502,7 +502,7 @@ def augment_solr_response(response, collection, query):
     doc['details'] = []
 
   highlighted_fields = response.get('highlighting', {}).keys()
-  if highlighted_fields:
+  if highlighted_fields and not query.get('download'):
     id_field = collection.get('idField')
     if id_field:
       for doc in response['response']['docs']: