diff options
Diffstat (limited to 'app/models/version.rb')
-rw-r--r-- | app/models/version.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index 1dc28f8..50d3940 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -3,21 +3,21 @@ class Version include Kkuleomi::Store::Model include Kkuleomi::Store::Models::VersionImport - index_name "packages-#{Rails.env}" - - attribute :version, String, mapping: { index: 'not_analyzed' } - attribute :package, String, mapping: { index: 'not_analyzed' } - attribute :atom, String, mapping: { index: 'not_analyzed' } - attribute :sort_key, Integer, mapping: { index: 'not_analyzed' } - attribute :slot, String, mapping: { index: 'not_analyzed' } - attribute :subslot, String, mapping: { index: 'not_analyzed' } - attribute :eapi, String, mapping: { index: 'not_analyzed' } - attribute :keywords, String, mapping: { index: 'not_analyzed' } + index_name "versions-#{Rails.env}" + + attribute :version, String, mapping: { type: 'text' } + attribute :package, String, mapping: { type: 'text' } + attribute :atom, String, mapping: { type: 'text' } + attribute :sort_key, Integer, mapping: { type: 'text' } + attribute :slot, String, mapping: { type: 'text' } + attribute :subslot, String, mapping: { type: 'text' } + attribute :eapi, String, mapping: { type: 'text' } + attribute :keywords, String, mapping: { type: 'text' } attribute :masks, Array, default: [], mapping: { type: 'object' } - attribute :use, String, default: [], mapping: { index: 'not_analyzed' } - attribute :restrict, String, default: [], mapping: { index: 'not_analyzed' } - attribute :properties, String, default: [], mapping: { index: 'not_analyzed' } - attribute :metadata_hash, String, mapping: { index: 'not_analyzed' } + attribute :use, String, default: [], mapping: { type: 'text' } + attribute :restrict, String, default: [], mapping: { type: 'text' } + attribute :properties, String, default: [], mapping: { type: 'text' } + attribute :metadata_hash, String, mapping: { type: 'text' } # Returns the keywording state on a given architecture # |