diff --git a/service/src/main/inse/persons/query_builder.py b/service/src/main/inse/persons/query_builder.py index 0081477f..7431558d 100644 --- a/service/src/main/inse/persons/query_builder.py +++ b/service/src/main/inse/persons/query_builder.py @@ -449,17 +449,6 @@ def build_authors_search_rescored( } functions.append(cited_by_count_boost_query) - if (_2yr_mean_citedness_boost): # 2yr mean citedness boost - mean_citedness_boost_query = { - "script_score": { - "script": { - "lang": "painless", - "source": "if (!doc.containsKey('summary_stats.2yr_mean_citedness') || doc['summary_stats.2yr_mean_citedness'].empty) return 1.0;double recent = doc['summary_stats.2yr_mean_citedness'].value;return 1.0 + Math.log1p(recent) / 8.0;" - } - } - } - functions.append(mean_citedness_boost_query) - if (works_boost): # works_count boost works_count_boost_query = { "script_score": {