Skip to content

Commit

Permalink
Fix ES index definition to match the JSON data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldogsbody committed Jan 19, 2023
1 parent d47f6b7 commit 785bef8
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 785bef8

Please sign in to comment.