Big patch merging crawling+indexing into one command, new json document structure
[phinde.git] / data / templates / search / hit.htm
index 4981017628431eff863ffe79fceda654c5e8aba1..f61a27145bcb36b86919d49fa2520d29fda4929b 100644 (file)
@@ -1,7 +1,7 @@
 {% set doc = hit._source %}
 <li class="hit">
  <span class="title">
-  <a href="{{doc.url}}">{{doc.title}}</a>
+  <a href="{{doc.url}}">{{doc.htmlTitle|raw}}</a>
   {% if doc.author.name %}
   by
   <em>
@@ -16,8 +16,9 @@
  <br/><tt class="url" title="{{doc.extra.cleanUrl}}">{{ellipsis(doc.extra.cleanUrl, 60)}}</tt>
  <span class="extract">
   <br/>
-  {% if doc.modate %}
+  {% if doc.status.modate %}
   <span class="date">{{doc.extra.day|date("Y-m-d")}}</span>
   {% endif %}
+  {{doc.htmlText|raw}}
  </span>
 </li>