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

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

Instance Method Summary collapse

Instance Method Details

#collated?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/solr/query/request/spellcheck.rb', line 48

def collated?
  false
end

#collated_search_termObject



46
# File 'lib/solr/query/request/spellcheck.rb', line 46

def collated_search_term; end

#disabled?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/solr/query/request/spellcheck.rb', line 52

def disabled?
  false
end

#previous_search_termObject



44
# File 'lib/solr/query/request/spellcheck.rb', line 44

def previous_search_term; end

#to_hObject



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/solr/query/request/spellcheck.rb', line 31

def to_h
  {
    spellcheck: true,
    'spellcheck.dictionary': 'spellcheck',
    'spellcheck.count': 1,
    'spellcheck.collate': true,
    'spellcheck.maxCollations': 1,
    'spellcheck.collateExtendedResults': true,
    'spellcheck.maxCollationTries': 1,
    'spellcheck.onlyMorePopular': true
  }
end