Class: Workarea::Search::Help
- Inherits:
-
Object
- Object
- Workarea::Search::Help
- 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_document ⇒ Object
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 |