From 6798c3c1552c231307e056a019b8e872717f4579 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 1 Sep 2018 17:48:10 +0200 Subject: [PATCH] pritoritize alternate_identifier in doi queries --- app/models/doi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index b2d2fa1f1..292fe91d2 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -220,7 +220,7 @@ def self.query_aggregations end def self.query_fields - ['doi^10', 'title_normalized^10', 'author_names^10', 'author_normalized.name^10', 'author_normalized.id^10', 'publisher^10', 'description_normalized^10', 'resource_type_id^10', 'resource_type_subtype^10', 'alternate_identifier', '_all'] + ['doi^10', 'title_normalized^10', 'author_names^10', 'author_normalized.name^10', 'author_normalized.id^10', 'publisher^10', 'description_normalized^10', 'resource_type_id^10', 'resource_type_subtype^10', 'alternate_identifier.name^10', '_all'] end def self.find_by_id(id, options={})