~cytrogen/masto-fe

ref: 9ed0c91a3702557b80d490bbf43677114aec31f8 masto-fe/app/chewy/instances_index.rb -rw-r--r-- 309 bytes
9ed0c91a — Claire Add auto-refresh of accounts we get new messages/edits of (#26510) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
# 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