Module: Sunspot::DSL::Spellcheckable

Included in:
StandardQuery
Defined in:
lib/sunspot/dsl/spellcheckable.rb

Overview

:nodoc

Instance Method Summary collapse

Instance Method Details

#spellcheck(options = {}) ⇒ Object

Ask Solr to suggest alternative spellings for the query

Options

The list of options can be found here: wiki.apache.org/solr/SpellCheckComponent



9
10
11
# File 'lib/sunspot/dsl/spellcheckable.rb', line 9

def spellcheck(options = {})
  @query.add_spellcheck(options)
end