Files
fizzy/app/models/comment/searchable.rb
T
Donal McBreen 28efe28f24 Replace Search::Index with Search::Records
Lean on ActiveRecord models for searching and strip out the raw SQL.
Replaces the search_index_* tables with sharded search_records_* tables
as that allows us to use a Search::Record model name.

A Class is dynamically created for each record table shard so that we
and we can access it via the Search::Record.for_account(account_id)
method.
2025-11-17 09:12:40 -05:00

24 lines
281 B
Ruby

module Comment::Searchable
extend ActiveSupport::Concern
included do
include ::Searchable
end
def search_title
nil
end
def search_content
body.to_plain_text
end
def search_card_id
card_id
end
def search_board_id
card.board_id
end
end