lib/picky/query/allocation.rb in picky-4.17.1 vs lib/picky/query/allocation.rb in picky-4.18.0

- old
+ new

@@ -38,11 +38,12 @@ # def calculate_score weights @score ||= if @combinations.empty? 0 # Optimization. else - @backend.weight(@combinations) + @combinations.boost_for(weights) - end + # TODO Was @backend.score(@combinations) - indirection for maximum flexibility. + @combinations.score + weights.boost_for(@combinations) + end end # Asks the backend for the (intersected) ids. # # Note: Combinations can be empty on eg. \ No newline at end of file