lib/picky/tokenizer.rb in picky-3.6.8 vs lib/picky/tokenizer.rb in picky-3.6.9

- old
+ new

@@ -126,16 +126,23 @@ end def reject tokens tokens.reject! &@reject_condition end + # Case sensitivity. + # + # Note: If false, simply downcases the data/query. + # def case_sensitive case_sensitive @case_sensitive = case_sensitive end def downcase? !@case_sensitive end + # The maximum amount of words + # to pass into the search engine. + # def max_words amount @max_words = amount end def cap words words.slice!(@max_words..-1) if cap?(words) \ No newline at end of file