From 311bfc936f4f09306c8dd3a07a8f9b06d54d1f12 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 23 Dec 2018 21:43:30 +0100 Subject: [PATCH] index schemaOrgId as object --- app/models/doi.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/doi.rb b/app/models/doi.rb index 689fad730..ff09d6144 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -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 }