Commit 0d76b8852953f009977d032335978cfdfc1c200f

Authored by Andrew
1 parent c51fa4ea

Document search_document_id [skip ci]

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
README.md
... ... @@ -1738,6 +1738,16 @@ Create index without importing
1738 1738 Product.reindex(import: false)
1739 1739 ```
1740 1740  
  1741 +Use a different id
  1742 +
  1743 +```ruby
  1744 +class Product < ApplicationRecord
  1745 + def search_document_id
  1746 + custom_id
  1747 + end
  1748 +end
  1749 +```
  1750 +
1741 1751 Lazy searching
1742 1752  
1743 1753 ```ruby
... ...