Fix tg_termpos1 for 64-bit termpos
[xapian.git] / xapian-applications / omega / templates / xml
blob23fcf49504fffb0c7c463f1e3552aebf96b1ccec
1 $httpheader{Content-Type,application/xml}<?xml version="1.0"?>
2 $setmap{prefix,,$split{ S B F},title,S,author,A,topic,B}
3 <results DBSize="$html{$dbsize}" Query="$html{$query}" TopDoc="$topdoc" Matches="$msize" Last="$last"
4 ThisPage="$thispage" LastPage="$lastpage" xP="$html{$list{$queryterms,,.,.}}"
5 $if{$cgi{SPAN},xSPAN="$html{$cgi{SPAN}}" }
6 $if{$cgi{START},xSTART="$html{$cgi{START}}" }
7 $if{$cgi{END},xEND="$html{$cgi{END}}" }
8 $if{$cgi{THRESHOLD},xTHRESHOLD="$html{$cgi{THRESHOLD}}" }
9 $if{$dbname,xDB="$html{$dbname}" }
10 $if{$ne{$msize,0},$list{$relevants,relevants=",.,"}}
12 $set{thousand,$.}$set{decimal,.}
13 <topterms>
14 $map{$topterms,<topterm term="$html{$_}" show="$html{$prettyterm{$_}}" freq="$freq{$_}" />
16 </topterms>
17 <queryterms>
18 $map{$queryterms,<queryterm term="$html{$_}" show="$html{$prettyterm{$_}}" freq="$freq{$_}" />
20 </queryterms>
21 <hits>
22 $hitlist{
23 <hit id="$id" relevance="$percentage%" modtime="$html{$field{modtime}}"
24 url="$html{$field{url}}" title="$html{$or{$field{caption},$field{title}}}"
25 $if{$field{language},language="$field{language}",}
26 $if{$field{size},size="$html{$field{size}}",}
27 $if{$field{sitename},sitename="$html{$field{sitename}}",}
28 score="$html{$score}"
29 type="$html{$field{type}}"
30 sample="$html{$htmlstrip{$field{sample}}}"
31 example="$html{$highlight{$htmlstrip{$field{sample}},$terms,<strong>}}"
32 $if{$ne{$collapsed,0}, collapsecount="$html{$collapsed}" collapsegroup="$html{$value{$cgi{COLLAPSE}}}"}
33 ><keywords>
34 $map{$field{keywords},<keyword keyword="$html{$_}" />}
35 </keywords>
36 <terms>
37 $map{$terms,<term term="$html{$_}" show="$html{$prettyterm{$_}}" />}
38 </terms>
39 </hit>
41 </hits>
42 </results>