lib/elastic_engine/response/facet_group.rb
# Returns the title & type of the facet group
# This is applied within the Facet Configs
#
Returns the title & type of the facet group
This is applied within the Facet Configs
Returns the title & type of the facet group This is applied within the Facet Configs
def find_title_and_type
          @title = nil
          @type = nil
          return nil unless search.facet_klass.respond_to?(:facets)
          __res = search.facet_klass.facets.select{|key,v| key.to_s.downcase == @key.to_s.downcase }
          return unless __res
          @title = __res[@key].fetch(:title, @key.to_s.humanize)
          @type = __res[@key].fetch(:type, nil)
        end
def find_title_and_type @title = nil @type = nil return nil unless search . facet_klass . respond_to? ( :facets ) __res = search . facet_klass . facets . select { | key , v | key . to_s . downcase == @key . to_s . downcase } return unless __res @title = __res [ @key ] . fetch ( :title , @key . to_s . humanize ) @type = __res [ @key ] . fetch ( :type , nil ) end
Returns the title & type of the facet group
This is applied within the Facet Configs
Returns the title & type of the facet group This is applied within the Facet Configs