class Solr::Query::Response::Spellcheck::Collation
Public Class Methods
new(data)
click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 8 def initialize(data) @data = data end
Public Instance Methods
collation_query()
click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 12 def collation_query @data['collationQuery'] end
hits()
click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 16 def hits @data['hits'] end
misspellings_and_corrections()
click to toggle source
# File lib/solr/query/response/spellcheck.rb, line 20 def misspellings_and_corrections return {} unless @data['misspellingsAndCorrections'] @data['misspellingsAndCorrections'].in_groups_of(2).to_h end