Commit c8b626a52de7ee80b0f35b5e733ac2a99a081b73
1 parent
00cf42bc
Exists in
master
and in
1 other branch
Renamed job in example [skip ci]
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -719,7 +719,7 @@ Product.reindex |
719 | 719 | Then, create a job to update the conversions column and reindex records with new conversions. Here’s one you can use for Searchjoy: |
720 | 720 | |
721 | 721 | ```ruby |
722 | -class ReindexConversionsJob < ApplicationJob | |
722 | +class UpdateConversionsJob < ApplicationJob | |
723 | 723 | def perform(class_name, since: nil, reindex: true) |
724 | 724 | # get records that have a recent conversion |
725 | 725 | recently_converted_ids = |
... | ... | @@ -758,13 +758,13 @@ end |
758 | 758 | Run the job: |
759 | 759 | |
760 | 760 | ```ruby |
761 | -ReindexConversionsJob.perform_now("Product") | |
761 | +UpdateConversionsJob.perform_now("Product") | |
762 | 762 | ``` |
763 | 763 | |
764 | 764 | And set it up to run daily. |
765 | 765 | |
766 | 766 | ```ruby |
767 | -ReindexConversionsJob.perform_later("Product", since: 1.day.ago) | |
767 | +UpdateConversionsJob.perform_later("Product", since: 1.day.ago) | |
768 | 768 | ``` |
769 | 769 | |
770 | 770 | ## Personalized Results | ... | ... |