Class: Workarea::Search::Help

Inherits:
Object
  • Object
show all
Includes:
Elasticsearch::Document
Defined in:
app/models/workarea/search/help.rb

Instance Method Summary collapse

Methods included from Elasticsearch::Document

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

Instance Method Details

#as_documentObject



6
7
8
9
10
11
12
13
14
# File 'app/models/workarea/search/help.rb', line 6

def as_document
  {
    id: model.id,
    name: model.name,
    facets: { category: model.category },
    body: model.body,
    created_at: model.created_at
  }
end