lib/picky/internals/indexed/wrappers/exact_first.rb in picky-2.2.0 vs lib/picky/internals/indexed/wrappers/exact_first.rb in picky-2.2.1
- old
+ new
@@ -2,19 +2,15 @@
# encoding: utf-8
#
module Indexed
- # TODO Spec
- #
module Wrappers
# This index combines an exact and partial index.
# It serves to order the results such that exact hits are found first.
#
- # TODO Need to use the right subtokens. Bake in?
- #
class ExactFirst < Indexed::Bundle::Base
delegate :similar,
:identifier,
:name,
@@ -40,11 +36,9 @@
index_or_category
else
new index_or_category
end
end
- # TODO Do not extract categories!
- #
def self.wrap_each_of categories
categories.categories.collect! { |category| new(category) }
end
def ids text
\ No newline at end of file