Class: Workarea::Search::Admin::ContentPage

Inherits:
Workarea::Search::Admin show all
Includes:
Releasable
Defined in:
app/models/workarea/search/admin/content_page.rb

Instance Method Summary collapse

Methods included from Releasable

#facets, #status

Methods inherited from Workarea::Search::Admin

#as_document, #created_at, #facets, for, #id, jump_to, #jump_to_param, #jump_to_route_helper, #jump_to_search_text, #keywords, #name, #releasable?, #sanitized_keywords, #should_be_indexed?, #status, #updated_at

Methods included from Elasticsearch::Document

all, #as_bulk_document, #as_document, current_index_prefix, #destroy, #initialize, #save

Instance Method Details

#jump_to_positionObject



15
16
17
# File 'app/models/workarea/search/admin/content_page.rb', line 15

def jump_to_position
  7
end

#jump_to_textObject



11
12
13
# File 'app/models/workarea/search/admin/content_page.rb', line 11

def jump_to_text
  model.name
end

#search_textObject



19
20
21
# File 'app/models/workarea/search/admin/content_page.rb', line 19

def search_text
  "content page #{model.name} #{model.tag_list}"
end

#typeObject



7
8
9
# File 'app/models/workarea/search/admin/content_page.rb', line 7

def type
  'content_page'
end