class Elasticsearch::Model::Response::Suggestions

Public Instance Methods

terms() click to toggle source
# File lib/elasticsearch/model/response/suggestions.rb, line 25
def terms
  self.to_a.map { |k,v| v.first['options'] }.flatten.map {|v| v['text']}.uniq
end