Sha256: 310666c5a2db76a49ec4596cd0bca79ab760fc2d324f9a2fc0e889472ea119bc

Contents?: true

Size: 1004 Bytes

Versions: 2

Compression:

Stored size: 1004 Bytes

Contents

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

    included do
      include Ext::IndexedModel

      index_options :extended_json => :extended_index_attrs,
                    :json => { :only => [:id,
                                         :name,
                                         :version,
                                         :min_version,
                                         :max_version,
                                         :created_at,
                                         :updated_at]
                             },
                    :display_attrs => [:name]

      mapping do
        indexes :name, :type => 'string', :analyzer => :kt_name_analyzer
        indexes :name_sort, :type => 'string', :index => :not_analyzed
      end
    end

    def extended_index_attrs
      {
        :name_sort => name.downcase,
        :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_package_filter_rule.rb
katello-2.4.0.rc1 app/models/katello/glue/elastic_search/content_view_package_filter_rule.rb