Skip to content

Commit

Permalink
Merge pull request #909 from datacite/index_updates
Browse files Browse the repository at this point in the history
Fix ES index definition to match the JSON data structure
  • Loading branch information
digitaldogsbody authored Jan 19, 2023
2 parents d47f6b7 + f64c6c1 commit 3a169b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class Doi < ApplicationRecord
edition: { type: :keyword },
contributors: { type: :object, properties: {
contributorType: { type: :text },
contributorName: { type: :text },
name: { type: :text },
nameType: { type: :text },
givenName: { type: :text },
familyName: { type: :text },
Expand All @@ -301,13 +301,15 @@ class Doi < ApplicationRecord
funderName: { type: :keyword },
funderIdentifier: { type: :keyword, normalizer: "keyword_lowercase" },
funderIdentifierType: { type: :keyword },
schemeUri: { type: :keyword },
awardNumber: { type: :keyword },
awardUri: { type: :keyword },
awardTitle: { type: :keyword },
}
indexes :dates, type: :object, properties: {
date: { type: :text },
dateType: { type: :keyword },
dateInformation: { type: :keyword },
}
indexes :geo_locations, type: :object, properties: {
geoLocationPoint: { type: :object },
Expand Down

0 comments on commit 3a169b4

Please sign in to comment.