Sha256: 92c51f0523eb3ad98940d741243e04aaef5d842e45bfb9df40c0808142cb5843

Contents?: true

Size: 848 Bytes

Versions: 2

Compression:

Stored size: 848 Bytes

Contents

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

    included do
      include Ext::IndexedModel

      index_options :extended_json => :extended_index_attrs,
                    :json => { :only => [:id,
                                         :name,
                                         :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_group_filter_rule.rb
katello-2.4.0.rc1 app/models/katello/glue/elastic_search/content_view_package_group_filter_rule.rb