Class: Solr::Query::Request::Spellcheck

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/query/request/spellcheck.rb

Defined Under Namespace

Classes: Default, Disabled

Class Method Summary collapse

Class Method Details

.collated(previous:, collated:) ⇒ Object



57
58
59
60
61
62
# File 'lib/solr/query/request/spellcheck.rb', line 57

def self.collated(previous:, collated:)
  Disabled.new(
    previous_search_term: previous,
    collated_search_term: collated
  )
end

.defaultObject



68
69
70
# File 'lib/solr/query/request/spellcheck.rb', line 68

def self.default
  Default.new
end

.disabledObject



64
65
66
# File 'lib/solr/query/request/spellcheck.rb', line 64

def self.disabled
  Disabled.new
end