Merge remote-tracking branch 'parent/main' into upstream-20231128

This commit is contained in:
KMY 2023-11-28 09:44:42 +09:00
commit 597485f47a
59 changed files with 373 additions and 158 deletions

View file

@ -1,6 +1,8 @@
# frozen_string_literal: true
class StatusesIndex < Chewy::Index
include DatetimeClampingConcern
settings index: index_preset(refresh_interval: '30s', number_of_shards: 5), analysis: {
filter: {
english_stop: {
@ -121,6 +123,6 @@ class StatusesIndex < Chewy::Index
field(:language, type: 'keyword')
field(:domain, type: 'keyword', value: ->(status) { status.account.domain || '' })
field(:properties, type: 'keyword', value: ->(status) { status.searchable_properties })
field(:created_at, type: 'date')
field(:created_at, type: 'date', value: ->(status) { clamp_date(status.created_at) })
end
end