Эх сурвалжийг харах

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

Romain Rigaux 11 жил өмнө
parent
commit
b44cae9

+ 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']: