From 0c8e2ad8a46cf3e8b8070ca3bb825d8945952a9d Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 23 Sep 2018 14:34:01 +0200 Subject: [PATCH] index repository. datacite/datacite#336 --- app/models/client.rb | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/app/models/client.rb b/app/models/client.rb index a166e7558..11936ed1e 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -88,7 +88,25 @@ class Client < ActiveRecord::Base # include parent objects indexes :provider, type: :object - indexes :repository, type: :object + indexes :repository, type: :object, properties: { + type: { type: :keyword }, + id: { type: :keyword }, + url: { type: :text }, + repository_name: { type: :text }, + repository_url: { type: :text }, + repository_contacts: { type: :text }, + description: { type: :text }, + certificates: { type: :object }, + types: { type: :object }, + additional_names: { type: :object }, + subjects: { type: :object }, + content_types: { type: :object }, + provider_types: { type: :object }, + keywords: { type: :object }, + software: { type: :object }, + created: { type: :date }, + updated: { type: :date } + } end end