Class: RediSearch::Spellcheck

Inherits:
Object
  • Object
show all
Includes:
LazilyLoad, Validatable
Defined in:
lib/redi_search/spellcheck.rb,
lib/redi_search/spellcheck/result.rb

Defined Under Namespace

Classes: Result, Suggestion

Instance Method Summary collapse

Methods included from Validatable

included, #validate!

Methods included from LazilyLoad

#inspect, #loaded?, #pretty_print, #to_a

Constructor Details

#initialize(index, terms, distance: 1) ⇒ Spellcheck



10
11
12
13
14
# File 'lib/redi_search/spellcheck.rb', line 10

def initialize(index, terms, distance: 1)
  @index = index
  @terms = terms
  @distance = distance
end