Sha256: 0d45f7a9463604895394feb587715cd0e0186280711441027726fd5aec8eb9c0

Contents?: true

Size: 968 Bytes

Versions: 2

Compression:

Stored size: 968 Bytes

Contents

module Katello
  module Glue::ElasticSearch::ContentViewErratumFilterRule
    extend ActiveSupport::Concern

    included do
      include Ext::IndexedModel

      index_options :extended_json => :extended_index_attrs,
                    :json => { :only => [:id,
                                         :errata_id,
                                         :start_date,
                                         :end_date,
                                         :types,
                                         :created_at,
                                         :updated_at]
                             },
                    :display_attrs => [:name]

      mapping do
        indexes :errata_id, :type => 'string', :analyzer => :snowball
        indexes :errata_id_sort, :type => 'string', :index => :not_analyzed
      end
    end

    def extended_index_attrs
      {
        :content_view_filter_id => self.content_view_filter_id
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-2.4.0.rc2 app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb
katello-2.4.0.rc1 app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb