mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-28 16:17:10 +00:00
f5778caa3a
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
13 lines
309 B
Ruby
13 lines
309 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InstancesIndex < Chewy::Index
|
|
settings index: index_preset(refresh_interval: '30s')
|
|
|
|
index_scope ::Instance.searchable
|
|
|
|
root date_detection: false do
|
|
field :domain, type: 'text', index_prefixes: { min_chars: 1 }
|
|
field :accounts_count, type: 'long'
|
|
end
|
|
end
|