Commit 0fc2015f6a5a14fe64ee863e4de6e6eebc7b8368

Authored by Andrew Kane
1 parent 942dda17

Improved examples [skip ci]

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
README.md
... ... @@ -1565,7 +1565,8 @@ Reindex a subset of attributes to reduce time spent generating search data and c
1565 1565 class Product < ApplicationRecord
1566 1566 def search_data
1567 1567 {
1568   - name: name
  1568 + name: name,
  1569 + category: category
1569 1570 }.merge(prices_data)
1570 1571 end
1571 1572  
... ... @@ -1602,7 +1603,8 @@ class Product &lt; ApplicationRecord
1602 1603  
1603 1604 def search_data
1604 1605 {
1605   - name: name
  1606 + name: name,
  1607 + category: category
1606 1608 }.merge(conversions_data)
1607 1609 end
1608 1610  
... ...