lib/picky/search.rb in picky-4.6.0 vs lib/picky/search.rb in picky-4.6.1
- old
+ new
@@ -33,11 +33,11 @@
# It is also possible to define the tokenizer and boosts like so.
# Example:
# search = Search.new(index1, index2, index3) do
# searching removes_characters: /[^a-z]/ # etc.
# boosts [:author, :title] => +3,
- # [:title, :isbn] => +1
+ # [:title, :isbn] => +1
# end
#
def initialize *indexes
@indexes = Query::Indexes.new *indexes
@@ -224,10 +224,10 @@
# * A Picky::Query::Tokens instance.
#
def tokenized text, partialize_last = true
tokens, originals = tokenizer.tokenize text
tokens = Query::Tokens.processed tokens, originals || tokens, @ignore_unassigned
- # tokens.symbolize # TODO Symbols.
+ # tokens.symbolize # SYMBOLS.
tokens.partialize_last if partialize_last
tokens
end
# Gets sorted allocations for the tokens.
\ No newline at end of file