#set($doclist=$response.values.response)
#set($searcher=$request.searcher)
#set($params=$request.params)
#set($fields=$response.returnFields)
## TODO: Implement layouts
#param('title')
#parse("header.vm")
#set($filter_queries = $params.getParams('fq'))
#foreach($fq in $filter_queries)
>
$fq
#end
#foreach($field in $response.values.facet_counts.facet_fields)
$field.key
#foreach($facet in $field.value)
#set($facetURL = "#url_for_nested_facet($field.key, $facet.key)")
#if ($facetURL != '')
- $facet.key ($facet.value)
#end
#end
#end
#foreach($id in $doclist.iterator())
#set($doc = $searcher.doc($id,$response.returnFields))
#parse("hit.vm")
#end
#parse("footer.vm")