lib/lunar/search.rb in lunar-0.1.1 vs lib/lunar/search.rb in lunar-0.2.0
- old
+ new
@@ -23,17 +23,9 @@
if block_given?
ResultSet.new(dist_key, &block)
else
ResultSet.new(dist_key, &@finder)
end
-
- # ids = Lunar.redis.zrevrange dist_key, start, finish
-
- # if block_given?
- # ids.map { |e| block.call(e) }
- # else
- # ids.map { |e| @@finder.call(prefix, e) }
- # end
end
protected
def dist_key
Lunar.nest[:Results][search_identifier]