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)


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

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