Skip to content

Commit

Permalink
prioritize searches for DOI strings. datacite/datacite#200
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 28, 2019
1 parent 4ef97d5 commit 36f7559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36f7559

Please sign in to comment.