lib/elasticsearch/faceted_search/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 hit_count_mapping(o)
        @hit_count_mapping ||= o.each_with_object(Hash.new(0)) do |result, hash|
          term = result['term'].to_s.downcase
          hash[term] += result['count']
        end
      end
def hit_count_mapping ( o ) @hit_count_mapping ||= o . each_with_object ( Hash . new ( 0 ) ) do | result , hash | term = result [ '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
o