Skip to content

Commit

Permalink
index repository. datacite/datacite#336
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Sep 23, 2018
1 parent f677b21 commit 0c8e2ad
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c8e2ad

Please sign in to comment.