mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 13:51:36 +01:00
b4e739ff0f
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
12 lines
299 B
Ruby
12 lines
299 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InstancesIndex < Chewy::Index
|
|
settings index: { 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
|