lib/elastic_engine/response/facet_group.rb
# Occationally ElasticSearch will return boolean facets with mix cased characters (T/t & F/f)
# This method cleans this result and combines the counts to be correct & valid
#
Occationally ElasticSearch will return boolean facets with mix cased characters (T/t & F/f)
This method cleans this result and combines the counts to be correct & valid
Occationally ElasticSearch will return boolean facets with mix cased characters ( T / t & F / f ) This method cleans this result and combines the counts to be correct & valid
def result_hit_mapping(result_facets)
          @mapping ||= result_facets.each_with_object(Hash.new(0)) do |_result, hash|
            _term = _result['term']
            _term = _term.to_s.downcase
            hash[_term] += _result['count']
          end
        end
def result_hit_mapping ( result_facets ) @mapping ||= result_facets . each_with_object ( Hash . new ( 0 ) ) do | _result , hash | _term = _result [ 'term' ] _term = _term . to_s . downcase hash [ _term ] += _result [ 'count' ] end end
Occationally ElasticSearch will return boolean facets with mix cased characters (T/t & F/f)
This method cleans this result and combines the counts to be correct & valid
Occationally ElasticSearch will return boolean facets with mix cased characters ( T / t & F / f ) This method cleans this result and combines the counts to be correct & valid
result_facets
<not_specific>