From 0fc2015f6a5a14fe64ee863e4de6e6eebc7b8368 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 10 May 2022 15:08:18 -0700 Subject: [PATCH] Improved examples [skip ci] --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 231d7ea..795ceaa 100644 --- a/README.md +++ b/README.md @@ -1565,7 +1565,8 @@ Reindex a subset of attributes to reduce time spent generating search data and c class Product < ApplicationRecord def search_data { - name: name + name: name, + category: category }.merge(prices_data) end @@ -1602,7 +1603,8 @@ class Product < ApplicationRecord def search_data { - name: name + name: name, + category: category }.merge(conversions_data) end -- libgit2 0.21.0