Class: RediSearch::Spellcheck
- Inherits:
-
Object
- Object
- RediSearch::Spellcheck
- 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
-
#initialize(index, terms, distance: 1) ⇒ Spellcheck
constructor
A new instance of Spellcheck.
Methods included from Validatable
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 |