This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-27 16:11:17 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InstancesIndex < Chewy::Index
|
2023-08-14 17:46:16 +02:00
|
|
|
settings index: index_preset(refresh_interval: '30s')
|
2023-07-27 16:11:17 +02:00
|
|
|
|
|
|
|
index_scope ::Instance.searchable
|
|
|
|
|
|
|
|
root date_detection: false do
|
2023-08-21 16:50:22 +02:00
|
|
|
field :domain, type: 'text', index_prefixes: { min_chars: 1, max_chars: 5 }
|
2023-07-27 16:11:17 +02:00
|
|
|
field :accounts_count, type: 'long'
|
|
|
|
end
|
|
|
|
end
|