Remove index fields that are not yet used

This commit is contained in:
Vyr Cossont 2022-12-19 13:24:43 -08:00
parent 3ea4a5ed29
commit 40519dac1a

View file

@ -65,10 +65,7 @@ class StatusesIndex < Chewy::Index
root date_detection: false do
field :id, type: 'long'
field :account_id, type: 'long'
field :created_at, type: 'date'
field :visibility, type: 'keyword'
field :from, type: 'keyword', value: ->(status) { status.account.domain ? [status.account.acct] : [status.account.acct, "#{status.account.username}@#{Rails.configuration.x.local_domain}"] }
field :domain, value: ->(status) { status.account.domain or Rails.configuration.x.local_domain }
field :text, type: 'text', value: ->(status) { status.searchable_text } do
field :stemmed, type: 'text', analyzer: 'content'