diff --git a/service/src/main/inse/persons/query_builder.py b/service/src/main/inse/persons/query_builder.py index a258b99a..7431558d 100644 --- a/service/src/main/inse/persons/query_builder.py +++ b/service/src/main/inse/persons/query_builder.py @@ -418,16 +418,16 @@ def build_authors_search_rescored( functions = [] if not sort_by: - if (name_quality_boost): # Name quality boost, boost names which are not "Value Value" - name_boost_query={ - "script_score": { - "script": { - "lang": "painless", - "source": "String name = doc['display_name.keyword'].value.toLowerCase(); String[] parts = name.splitOnToken(' ');Set unique = new HashSet();for (String p : parts) { unique.add(p); }return unique.size() > 1 ? 1.0 : 0.3;" - } - } - } - functions.append(name_boost_query) + # if (name_quality_boost): # Name quality boost, boost names which are not "Value Value" + # name_boost_query={ + # "script_score": { + # "script": { + # "lang": "painless", + # "source": "String name = doc['display_name.keyword'].value.toLowerCase(); String[] parts = name.splitOnToken(' ');Set unique = new HashSet();for (String p : parts) { unique.add(p); }return unique.size() > 1 ? 1.0 : 0.3;" + # } + # } + # } + # functions.append(name_boost_query) if (h_index_boost): # h_index boost h_index_boost_query={ "script_score": { @@ -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": { diff --git a/webapp/src/app/modules/person-card/person-card.component.html b/webapp/src/app/modules/person-card/person-card.component.html index 3826bb26..d8e39eae 100644 --- a/webapp/src/app/modules/person-card/person-card.component.html +++ b/webapp/src/app/modules/person-card/person-card.component.html @@ -34,6 +34,9 @@ Publikationen: {{ person.works_count }} ยท Zitationen: {{ person.cited_by_count }}

+

+ h_index: {{person.summary_stats?.h_index }} +

diff --git a/webapp/src/app/modules/person-list/person-list.component.html b/webapp/src/app/modules/person-list/person-list.component.html index f2348b2b..766f6ed8 100644 --- a/webapp/src/app/modules/person-list/person-list.component.html +++ b/webapp/src/app/modules/person-list/person-list.component.html @@ -60,6 +60,7 @@ +