You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
309 B
12 lines
309 B
# 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
|
|
|