module Solr4R::Result::Spellcheck

Public Instance Methods

spellcheck() click to toggle source
# File lib/solr4r/result.rb, line 166
def spellcheck
  fetch(__method__.to_s)
end
spellcheck_collations() { |values_at('collationQuery', 'hits')| ... } click to toggle source
# File lib/solr4r/result.rb, line 170
def spellcheck_collations
  return enum_for(__method__) unless block_given?

  spellcheck.fetch('collations').each_slice(2) { |_, collation|
    yield collation.values_at('collationQuery', 'hits')
  }
end