From 5f36e85b37743f3e4704257b66ce760c12008093 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 21 Jul 2017 22:32:18 -0500 Subject: [PATCH] ensure all parameters are merged in results --- searx/results.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/searx/results.py b/searx/results.py index badd86ddb..19404aec1 100644 --- a/searx/results.py +++ b/searx/results.py @@ -218,6 +218,11 @@ class ResultContainer(object): result_content_len(duplicated.get('content', '')): duplicated['content'] = result['content'] + # merge all result's parameters not found in duplicate + for key in result.keys(): + if not duplicated.get(key): + duplicated[key] = result.get(key) + # add the new position duplicated['positions'].append(position)