mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
originator facets
This commit is contained in:
parent
f709c399be
commit
cb877d510e
3 changed files with 13 additions and 0 deletions
|
@ -3,5 +3,6 @@ class SearchController < ApplicationController
|
|||
@response = Paper.search(params[:q])
|
||||
@papers = @response.page(params[:page]).results
|
||||
@paper_type_facets = @response.response['aggregations']['paper_types']['buckets'].map {|h| [ h['key'], h['doc_count']] }
|
||||
@originator_facets = @response.response['aggregations']['originators']['buckets'].map {|h| [ h['key'], h['doc_count']] }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue