瀏覽代碼

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

Romain Rigaux 11 年之前
父節點
當前提交
b44cae9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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']: