blob: 6565516140b3977b1bf1091d56413ebd6b6616ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
<title>"{{query}}" search results</title>
<link rel="self" href="{{fullUrl}}" type="application/atom+xml"/>
{% set fullUrls = pager.getFullUrls() %}
{% if fullUrls.first %}
<link rel="first" href="{{fullUrls.first}}" type="application/atom+xml"/>
{% endif %}
{% if fullUrls.prev %}
<link rel="prev" href="{{fullUrls.prev}}" type="application/atom+xml"/>
{% endif %}
{% if fullUrls.next %}
<link rel="next" href="{{fullUrls.next}}" type="application/atom+xml"/>
{% endif %}
{% if fullUrls.last %}
<link rel="last" href="{{fullUrls.last}}" type="application/atom+xml"/>
{% endif %}
<updated>{{"now"|date("c")}}</updated>
<id>{{fullUrl}}</id>
<opensearch:totalResults>{{hitcount}}</opensearch:totalResults>
<opensearch:itemsPerPage>10</opensearch:itemsPerPage>
{% for hit in hits %}
{% set doc = hit._source %}
<entry>
<title>{{doc.title}}</title>
<link href="{{doc.url}}"/>
<id>{{doc.url}}</id>
{% if doc.status.modate %}
<updated>{{doc.status.modate|date('c')}}</updated>
{% endif %}
<content type="text">{{doc.htmlText|striptags}}</content>
</entry>
{% endfor %}
</feed>
|