Remove index fields that are not yet used

main
Vyr Cossont 2 years ago
parent 3ea4a5ed29
commit 40519dac1a

@ -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'

Loading…
Cancel
Save