update to reflect API changes
[gae-samples.git] / search / python / index.html
blob62df82d1a389bea0536aa55e7ef4e7c07af465f1
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <link rel="stylesheet" type="text/css" href="/static/css/main.css"/>
6 <title>Search Demonstration App</title>
7 </head>
8 <body>
10 <form action="/sign" method="post">
11 <div>Search Demo</div>
12 <div><textarea name="search" rows="1" cols="60"></textarea></div>
13 <div><input type="submit" value="Search"/></div>
14 <div><textarea name="content" rows="3" cols="60"></textarea></div>
15 <div><input type="submit" value="Comment"/></div>
16 </form>
18 {{number_returned}} of {{results.number_found}} comments found <p>
19 {% for scored_document in results %}
20 {% for field in scored_document.fields %}
21 {{field.value}} &nbsp;
22 {% endfor %}
23 <p>
24 {% endfor %}
26 <a href="{{ url }}">{{ url_linktext }}</a>
28 </body>
29 </html>