Class: Workarea::Search::Storefront::Search
Instance Method Summary
collapse
#active_segment_ids, #as_document, #cache, ensure_dynamic_mappings, ensure_product_mappings, #facets, #keywords, #numeric, #release_id, #sorts, #suggestion_content
all, #as_bulk_document, #as_document, current_index_prefix, #destroy, #initialize, #save
Instance Method Details
#active ⇒ Object
17
18
19
|
# File 'app/models/workarea/search/storefront/search.rb', line 17
def active
{ now: true }
end
|
#content ⇒ Object
9
10
11
|
# File 'app/models/workarea/search/storefront/search.rb', line 9
def content
{ name: model.query_string }
end
|
#id ⇒ Object
5
6
7
|
# File 'app/models/workarea/search/storefront/search.rb', line 5
def id
CGI.escape("#{type}-#{model.query_id}")
end
|
#slug ⇒ Object
13
14
15
|
# File 'app/models/workarea/search/storefront/search.rb', line 13
def slug
model.query_string.try(:parameterize)
end
|
#type ⇒ Object
21
22
23
|
# File 'app/models/workarea/search/storefront/search.rb', line 21
def type
'search'
end
|