lib/picky/query/indexes.rb in picky-4.19.1 vs lib/picky/query/indexes.rb in picky-4.19.2

- old
+ new

@@ -60,17 +60,17 @@ @exclusive_allocations.uniq! end # Returns a number of prepared (sorted, reduced etc.) allocations for the given tokens. # - def prepared_allocations_for tokens, weights = {}, amount = nil + def prepared_allocations_for tokens, boosts = {}, amount = nil allocations = allocations_for tokens # Score the allocations using weights as bias. # # Note: Before we can sort them we need to score them. # - allocations.calculate_score weights + allocations.calculate_score boosts # Filter the allocations – ignore/only. # allocations.keep_allocations exclusive_allocations if exclusive_allocations allocations.remove_allocations ignored_allocations if ignored_allocations \ No newline at end of file