Module: PagesCore::PageModel::Searchable

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
app/models/concerns/pages_core/page_model/searchable.rb

Instance Method Summary collapse

Instance Method Details

#search_document_attributesObject



8
9
10
11
12
13
14
15
16
# File 'app/models/concerns/pages_core/page_model/searchable.rb', line 8

def search_document_attributes
  super.merge(
    published: published?,
    name:,
    description: try(&:meta_description?) ? meta_description : excerpt,
    # content: "",
    tags: tag_names.join(" ")
  )
end