From 0d76b8852953f009977d032335978cfdfc1c200f Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 13 Aug 2018 00:58:06 -0700 Subject: [PATCH] Document search_document_id [skip ci] --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 9c876f0..b41d2d5 100644 --- a/README.md +++ b/README.md @@ -1738,6 +1738,16 @@ Create index without importing Product.reindex(import: false) ``` +Use a different id + +```ruby +class Product < ApplicationRecord + def search_document_id + custom_id + end +end +``` + Lazy searching ```ruby -- libgit2 0.21.0