summaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/prelude/templates/test/qr-templates.cfg
blob: 10efc3334be3e3ded69a26e585c7ce47ab86699c (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
templateset[10]
templateset[0].urlprefix "/xsearch"
templateset[0].mimetype "text/xml"
templateset[0].encoding "utf-8"
templateset[0].rankprofile 0
templateset[0].keepalive false
templateset[0].headertemplate "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<RESULTSET TOTALHITS=\"$result.totalHitCount\">\n"
templateset[0].footertemplate "</RESULTSET>"
templateset[0].nohitstemplate "<XTEMPLATENOHITS/>\n"
templateset[0].hittemplate "<XTEMPLATEHIT RELEVANCY=\"$hit.relevance\" SOURCE=\"$hit.source\" TYPE=\"$hit.typeString\" OFFSET=\"$hitno\">\n<FIELD NAME=\"uri\">$uri</FIELD>\n<FIELD NAME=\"category\">$category</FIELD>\n<FIELD NAME=\"bsumtitle\">$bsumtitle</FIELD>\n</XTEMPLATEHIT>\n"
templateset[0].errortemplate "<ERROR CODE=\"$result.hits().error.code\">$result.hits().error.message</ERROR>\n"
templateset[1].urlprefix "/cgi-bin/asearch"
templateset[1].mimetype "text/html"
templateset[1].encoding "utf-8"
templateset[1].rankprofile 0
templateset[1].keepalive false
templateset[1].headertemplate "### Result\n"
templateset[1].footertemplate "### Result\n"
templateset[1].nohitstemplate "### Result\n"
templateset[1].hittemplate "### Result\n"
templateset[1].errortemplate "### Result\n"
templateset[2].urlprefix "/groups"
templateset[2].mimetype "text/xml"
templateset[2].encoding "utf-8"
templateset[2].rankprofile 0
templateset[2].keepalive false
templateset[2].headertemplate "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<RESULTSET TOTALHITS=\"$result.totalHitCount\">\n"
templateset[2].footertemplate "</RESULTSET>"
templateset[2].nohitstemplate "<XTEMPLATENOHITS/>\n"
templateset[2].hittemplate "<XTEMPLATEHIT RELEVANCY=\"$relevancy\" SOURCE=\"$hit.source\" TYPE=\"$hit.typeString\" OFFSET=\"$hitno\">\n<FIELD NAME=\"uri\">$uri</FIELD>\n<FIELD NAME=\"category\">$category</FIELD>\n<FIELD NAME=\"bsumtitle\">$bsumtitle</FIELD>\n</XTEMPLATEHIT>\n"
templateset[2].errortemplate "<ERROR CODE=\"$result.error.code\">$result.error.message</ERROR>"
templateset[2].groupsheadertemplate "<GROUP ATTRIBUTE=\"$field\">\n"
templateset[2].rangegrouptemplate "<RANGE LOW=\"$group.from\" HIGH=\"$group.to\" AMOUNT=\"$group.count\"/>\n"
templateset[2].exactgrouptemplate "<VAL VAL=\"$group.value\" AMOUNT=\"$group.count\"/>\n"
templateset[2].groupsfootertemplate "</GROUP>\n"
templateset[3].urlprefix "/pertemplatebolding"
templateset[3].mimetype "text/xml"
templateset[3].encoding "utf-8"
templateset[3].rankprofile 0
templateset[3].keepalive false
templateset[3].headertemplate "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<RESULTSET TOTALHITS=\"$result.totalHitCount\">\n"
templateset[3].footertemplate "</RESULTSET>"
templateset[3].nohitstemplate "<XTEMPLATENOHITS/>\n"
templateset[3].hittemplate "<BOLDINGTEST>\n<FIELD NAME=\"uri\">$uri</FIELD>\n<FIELD NAME=\"bsumtitle\" NOTE=\"bolded escaped\">$bsumtitle</FIELD>\n<FIELD NAME=\"bsumtitle\" NOTE=\"bolded unescaped\">$hit.getField(\"bsumtitle\")</FIELD>\n<FIELD NAME=\"bsumtitle\" NOTE=\"unbolded unescaped\">$hit.getField(\"bsumtitle\").bareContent(false, false)</FIELD>\n<FIELD NAME=\"bsumtitle\" NOTE=\"unbolded escaped\">$hit.getField(\"bsumtitle\").bareContent(true, false)</FIELD>\n</BOLDINGTEST>\n"
templateset[3].errortemplate "<ERROR CODE=\"$result.error.code\">$result.error.message</ERROR>\n"
templateset[4].urlprefix "/customhighlighttags"
templateset[4].mimetype "text/xml"
templateset[4].encoding "utf-8"
templateset[4].rankprofile 0
templateset[4].keepalive false
templateset[4].headertemplate "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<RESULTSET TOTALHITS=\"$result.totalHitCount\">\n"
templateset[4].footertemplate "</RESULTSET>"
templateset[4].nohitstemplate "<XTEMPLATENOHITS/>\n"
templateset[4].hittemplate "<XTEMPLATEHIT RELEVANCY=\"$hit.relevance\" SOURCE=\"$hit.source\" TYPE=\"$hit.typeString\" OFFSET=\"$hitno\">\n<FIELD NAME=\"uri\">$uri</FIELD>\n<FIELD NAME=\"category\">$category</FIELD>\n<FIELD NAME=\"bsumtitle\">$bsumtitle</FIELD>\n</XTEMPLATEHIT>\n"
templateset[4].errortemplate "<ERROR CODE=\"$result.error.code\">$result.error.message</ERROR>\n"
templateset[4].highlightstarttag "<b>"
templateset[4].highlightendtag "</b>"
templateset[4].highlightseptag "<p />"
templateset[5].urlprefix "/checkunsigned"
templateset[5].mimetype "text/xml"
templateset[5].encoding "utf-8"
templateset[5].rankprofile 0
templateset[5].keepalive false
templateset[5].headertemplate ""
templateset[5].footertemplate ""
templateset[5].nohitstemplate ""
templateset[5].hittemplate "$number $context.asUnsigned(\"number\")"
templateset[5].errortemplate ""
templateset[5].highlightstarttag ""
templateset[5].highlightendtag ""
templateset[5].highlightseptag ""
templateset[6].urlprefix "/summaryclasstest"
templateset[6].mimetype "text/xml"
templateset[6].encoding "utf-8"
templateset[6].rankprofile 0
templateset[6].keepalive false
templateset[6].headertemplate "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<result>\n"
templateset[6].footertemplate "</result>"
templateset[6].nohitstemplate "<nohits />\n"
templateset[6].hittemplate "<hit />\n"
templateset[6].errortemplate "<error />\n"
templateset[6].defaultsummaryclass "gnurglegnokk"
templateset[7].urlprefix "/lazydecoding"
templateset[7].mimetype "text/plain"
templateset[7].encoding "utf-8"
templateset[7].rankprofile 0
templateset[7].keepalive false
templateset[7].headertemplate ""
templateset[7].footertemplate ""
templateset[7].nohitstemplate "no hits"
templateset[7].hittemplate "$URL\n$TITLE\n$WORDS\n$IPADDRESS"
templateset[7].errortemplate "error"
templateset[8].urlprefix "/java"
templateset[8].classid "com.yahoo.prelude.templates.test.TestTemplate"
templateset[8].mimetype "text/plain"
templateset[8].encoding "utf-8"
templateset[8].rankprofile 0
templateset[8].keepalive false
templateset[9].urlprefix "/boom"
templateset[9].classid "com.yahoo.prelude.templates.test.BoomTemplate"
templateset[9].mimetype "text/plain"
templateset[9].encoding "utf-8"
templateset[9].rankprofile 0
templateset[9].keepalive false