<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link media="screen" href="/site_media/style.css" type="text/css" rel="stylesheet" />
{% if inparams.query %}
<title>{{ inparams.query }}の検索結果</title>
{% else %}
<title>Solr検索サンプル</title>
{% endif %}
</head>
<body onload="document.f1.query.focus();">

<div id="wrap">
<div id="header">
  <h1><a href="#">Solr検索サンプル</a></h1>
  <br/>
  <form name="f1" action="index.html">
    <input type="text" name="query" value="{{ inparams.query }}"/>
    <input value="検索" type="submit"/>
  </form>
</div>
{% include "includes/result_header.html" %}
<div id="content">
{% ifequal found 0 %}
<b>{{ inparams.query }}</b> は見つかりませんでした。他の検索語で試してください。
{% else %}
  <div id="result" class="right">
  {% for document in rsp.response.docs %}
    {% include "includes/document.html" %}
  {% endfor %}
  </div><!-- end of #result -->

  <div id="facet" class="left">
  {% for field_name,facet_pairs_list in rsp.facet_counts.facet_fields.items %}
    {% include "includes/facet_field.html" %}
  {% endfor %}
  
  {% for category, category_list in master_queries.items %}
    {% include "includes/facet_queries.html" %}
  {% endfor %}

  </div><!-- end of #facet -->
{% endifequal %}
<div style="CLEAR: both"></div>
{% include "includes/pagination.html" %}
</div><!-- end of #content -->


<div id="footer">著作権表示など</div></div></body>
</html>
