Procházet zdrojové kódy

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

Romain Rigaux před 11 roky
rodič
revize
b44cae9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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']: