Module: Mongoid::Haystack::Stemming::Stopwords

Extended by:
Stopwords
Included in:
Stopwords
Defined in:
lib/mongoid-haystack/stemming.rb

Constant Summary collapse

List =
{}
All =
[]

Instance Method Summary collapse

Instance Method Details

#stopword?(word) ⇒ Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/mongoid-haystack/stemming.rb', line 71

def stopword?(word)
  !!Index[word]
end