From 36f755949f38102c849f058dd1d8634dc383480d Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 28 Nov 2019 13:41:19 +0100 Subject: [PATCH] prioritize searches for DOI strings. datacite/datacite#200 --- 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 2479c99ea..b258b741a 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -506,7 +506,7 @@ def self.sub_aggregations end def self.query_fields - ['doi^10', 'uid^10', 'titles.title^3', 'creator_names^3', 'creators.name^3', 'creators.id^3', 'publisher^3', 'descriptions.description^3', 'types.resourceTypeGeneral^3', 'subjects.subject^3', 'identifiers.identifier^3', 'related_identifiers.relatedIdentifier^3', '_all'] + ['doi^50', 'id^50', 'titles.title^3', 'creator_names^3', 'creators.name^3', 'creators.id^3', 'publisher^3', 'descriptions.description^3', 'types.resourceTypeGeneral^3', 'subjects.subject^3', 'identifiers.identifier^3', 'related_identifiers.relatedIdentifier^3', '_all'] end # return results for one or more ids