/usr/share/xapian-omega/templates/opensearch is in xapian-omega 1.2.22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | $httpheader{Content-Type,application/xml}<?xml version="1.0"?>
<rss version="2.0" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
<channel>
<title>Xapian search results</title>
<link>$html{$env{SCRIPT_NAME}?DB=$url{$dbname}&P=$url{$query}}</link>
<description>Search results for "$html{$query}" at xapian.org</description>
<language>en</language>
<copyright>(C)2005, Xapian.org</copyright>
<openSearch:totalResults>$msize</openSearch:totalResults>
<openSearch:startIndex>$add{topdoc,1}</openSearch:startIndex>
<openSearch:itemsPerPage>$hitsperpage</openSearch:itemsPerPage>
$hitlist{
<item>
<title>$html{$or{$field{title},$field{caption}}}</title>
<link>$html{$field{url}}</link>
<description>$html{$highlight{$field{sample},$terms,<strong>,</strong>}$if{$field{sample},...}}</description>
</item>}
</channel>
</rss>
|