lib/elastic_engine/response/facet_group.rb
# Build out our facet terms. If no facet configuration is found, we will just use ElasticSearch's fields.
#
Build out our facet terms. If no facet configuration is found, we will just use ElasticSearch's fields.
Build out our facet terms . If no facet configuration is found we will just use ElasticSearch ' s fields .
def build_term_values
          term_values = fetch_facet_terms_for(@key)
          return generate_facet_terms_by_result unless term_values
          term_values.map { |term| FacetTerm.new(group: self, id: term.fetch(:id), term: term.fetch(:term), count: fetch_count_for( term.fetch(:id) ) ) }
        end
def build_term_values term_values = fetch_facet_terms_for ( @key ) return generate_facet_terms_by_result unless term_values term_values . map { | term | FacetTerm . new ( group : self , id : term . fetch ( :id ) , term : term . fetch ( :term ) , count : fetch_count_for ( term . fetch ( :id ) ) ) } end
Build out our facet terms.
Build out our facet terms .
# Return basic elasticsearch result terms if we dont have method defined