Class: Ion::Indices::Metaphone

Inherits:
Text show all
Defined in:
lib/ion/indices/metaphone.rb

Instance Attribute Summary

Attributes inherited from Ion::Index

#name, #options

Instance Method Summary collapse

Methods inherited from Text

deindex, #index, #search, #search_words

Methods inherited from Ion::Index

deindex, del, #index, #initialize, #search

Constructor Details

This class inherits a constructor from Ion::Index

Instance Method Details

#index_words(str) ⇒ Object



3
4
5
# File 'lib/ion/indices/metaphone.rb', line 3

def index_words(str)
  words = ::Text::Metaphone.metaphone(str).strip.split(' ')
end