Skip to content

Commit

Permalink
index schemaOrgId as object
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 23, 2018
1 parent 331de0a commit 311bfc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,16 @@ class Doi < ActiveRecord::Base
checked: { type: :date, ignore_malformed: true },
url: { type: :text, fields: { keyword: { type: "keyword" }}},
status: { type: :integer },
contentType: { type: :string },
contentType: { type: :keyword },
error: { type: :keyword },
redirectCount: { type: :integer },
redirectUrls: { type: :keyword },
downloadLatency: { type: :scaled_float, scaling_factor: 100 },
hasSchemaOrg: { type: :boolean },
schemaOrgId: { type: :keyword },
schemaOrgId: { type: :object, properties: {
"@type": { type: :keyword },
value: { type: :keyword },
propertyID: { type: :keyword }}},
dcIdentifier: { type: :keyword },
citationDoi: { type: :keyword },
bodyHasPid: { type: :boolean }
Expand Down

0 comments on commit 311bfc9

Please sign in to comment.