1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-23 11:08:21 +09:00
mastodon/app/chewy/instances_index.rb

13 lines
323 B
Ruby
Raw Normal View History

# 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, max_chars: 5 }
field :accounts_count, type: 'long'
end
end