about summary refs log tree commit diff
path: root/app/chewy
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-31 00:49:24 +0200
committerGitHub <noreply@github.com>2022-03-31 00:49:24 +0200
commitef196c913c77338be5ebb1e02af2f6225f857080 (patch)
tree2640d4bb0fee2c0d62183a64b0b4d0857c75f0d6 /app/chewy
parent8c7223f4eac80b5725485be742d3fa2c984f4670 (diff)
Fix error MethodError in Chewy::Strategy::Sidekiq::Worker (#17912)
Also refactor a bit to reduce code duplication.
Diffstat (limited to 'app/chewy')
-rw-r--r--app/chewy/statuses_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb
index bfd61a048..1381a96ed 100644
--- a/app/chewy/statuses_index.rb
+++ b/app/chewy/statuses_index.rb
@@ -59,7 +59,7 @@ class StatusesIndex < Chewy::Index
     field :id, type: 'long'
     field :account_id, type: 'long'
 
-    field :text, type: 'text', value: ->(status) { [status.spoiler_text, extract_status_plain_text(status)].concat(status.ordered_media_attachments.map(&:description)).concat(status.preloadable_poll ? status.preloadable_poll.options : []).join("\n\n") } do
+    field :text, type: 'text', value: ->(status) { status.searchable_text } do
       field :stemmed, type: 'text', analyzer: 'content'
     end