Commit 1d422e234252983b87999668193cd4746a6ae7cf

Authored by Andrew Kane
1 parent 2afe08dc

Better example

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
README.md
... ... @@ -337,7 +337,7 @@ class Product < ActiveRecord::Base
337 337 def search_data
338 338 {
339 339 name: name,
340   - user_ids: orders.pluck(:user_id) # boost this product for these users
  340 + orderer_ids: orders.pluck(:user_id) # boost this product for these users
341 341 }
342 342 end
343 343  
... ... @@ -347,7 +347,7 @@ end
347 347 Reindex and search with:
348 348  
349 349 ```ruby
350   -Product.search "milk", boost_where: {user_ids: current_user.id}
  350 +Product.search "milk", boost_where: {ordered_ids: current_user.id}
351 351 ```
352 352  
353 353 ### Autocomplete
... ...