search engine templates

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@373 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
toidinamai 2006-06-07 22:49:27 +00:00
parent 36f8131165
commit b0728818c9
2 changed files with 300 additions and 0 deletions

203
content/static/estseek.tmpl Normal file
View File

@ -0,0 +1,203 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate, no-transform" />
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="generator" content="Hyper Estraier" />
<link rel="contents" href="./" />
<link rev="made" href="mailto:magnus@hyperestraier.gov" />
<title>Hyper Estraier: a full-text search system for communities</title>
<style type="text/css">html {
margin: 0em 0em; padding: 0em 0em;
background: #ffffff none;
}
body {
margin: 0em 0em; padding: 0em 0em;
color: #111111;
}
div.estform {
margin: 0.8em 1.0em; padding: 0em 1.0em;
background: #eeeeff none; border: solid 1pt #bbbbcc;
-moz-border-radius: 0.4em;
}
div.form_basic {
margin: 0.4em 0em 0em 0em; padding: 0em 0em;
font-size: smaller;
}
div.form_extension {
margin: 0.3em 0em 0.3em 0em; padding: 0em 0em;
font-size: smaller;
}
div.estresult {
margin: 1.0em 1.0em; padding: 0em 0em;
}
div.resinfo {
text-align: right;
font-size: smaller;
}
div.hints {
margin-right: 0.8em; text-align: right;
font-size: smaller; color: #555555;
}
div.relkeys {
margin-right: 0.3em; text-align: right;
font-size: smaller; color: #555555;
opacity: 0.70;
}
div.relkeys a {
color: #007777; text-decoration: none;
}
div.relkeys a:hover {
color: #0066dd; text-decoration: underline;
}
dl.doc {
margin: 1.3em 0em;
}
dl.doc dd {
font-size: smaller; color: #222222;
}
a.doc_title {
color: #0011ee; text-decoration: underline;
}
a.doc_title:hover {
color: #0033ff; text-decoration: underline;
}
span.doc_score {
font-size: smaller; color: #555555;
}
span.doc_score:before {
content: "(";
}
span.doc_score:after {
content: ")";
}
span.doc_link {
color: #007744;
}
dd.doc_attr {
margin: 0em 0.8em;
}
span.doc_val {
color: #111111;
}
dd.doc_text {
margin: 0em 1.3em;
}
strong.key {
margin: 0em -0.1em; padding: 0em 0.1em;
color: #000011;
-moz-border-radius: 0.3em;
}
strong.key1 { background-color: #ffffcc; }
strong.key2 { background-color: #ffeeee; }
strong.key3 { background-color: #eeeeff; }
strong.key4 { background-color: #eeffdd; }
code.delim { color: #555555; letter-spacing: -0.1em; }
dd.doc_navi {
margin: 0em 1.1em;
}
div.doc_clip {
margin-left: 2.5em; margin-top: -0.6em;
}
div.doc_clip p {
font-size: smaller; color: #444444;
}
a.detail,a.similar,a.include {
color: #007777; text-decoration: none;
}
a.detail:hover,a.similar:hover,a.include:hover {
color: #0066dd; text-decoration: underline;
}
p.note {
margin: 3em 1.5em;
color: #444444;
}
div.paging {
margin: 2em 1em; text-align: right;
font-size: smaller;
}
a.navi {
margin: 0em 0.2em; padding: 0em 0.5em;
background: #eeeeff none; border: solid 1pt #bbbbcc;
-moz-border-radius: 0.25em;
color: #0022aa; text-decoration: none;
}
span.void {
margin: 0em 0.2em; padding: 0em 0.5em;
background: #eeeeee none; border: solid 1pt #bbbbcc;
-moz-border-radius: 0.25em;
color: #aaaaaa;
opacity: 0.70;
}
a.pnum {
margin: 0em 0em; padding: 0em 0.2em;
background: #eeeeff none; border: solid 1pt #bbbbcc;
-moz-border-radius: 0.25em;
font-size: smaller; color: #0022aa; text-decoration: none;
}
span.pnow {
margin: 0em 0em; padding: 0em 0.2em;
background: #ffeedd none; border: solid 1pt #bbbbcc;
-moz-border-radius: 0.25em;
}
div.estinfo {
margin: 1.5em 1.0em; padding: 0em 0em; text-align: right;
font-size: smaller; color: #555555;
opacity: 0.80;
}
div.estinfo a {
color: #555555; text-decoration: none;
}
div.logo {
margin: 4.0em 1em; text-align: center;
}
div.logo h1 {
color: #000000;
}
div.logo div.caption {
margin-top: -0.9em;
color: #222222;
}
div.help {
margin: 2em 4em; padding: 2em 2em;
background-color: #eeeeff; border: 2pt solid #ddddee;
-moz-border-radius: 0.8em;
}
div.help h2 {
margin-top: 1.2em;
}
div.help p {
line-height: 145%; text-indent: 0.8em;
}
div.help pre {
margin: 0em 2em; padding: 0em 0.2em;
background-color: #ffffff; border: 1pt solid #999999;
-moz-border-radius: 0.2em;
}
</style>
<script type="text/javascript">function startup(){
if((document.location + "").indexOf("#") != -1) return;
var elem = document.getElementById("phrase");
if(elem) elem.focus();
}
</script>
</head>
<body onload="startup();">
<!--ESTFORM-->
<!--ESTRESULT-->
<!--ESTINFO-->
</body>
</html>

View File

@ -0,0 +1,97 @@
<div class="logo">
<h1 class="title">Hyper Estraier</h1>
<div class="caption">a full-text search system for communities</div>
</div>
<div class="help">
<h2>What is This?</h2>
<p>This is a full-text search system. You can search for documents including some specified words.</p>
<h2>How to Use</h2>
<p>Input search phrase into the field at the top of the page. For example, if you search for documents including "computer", input the following.</p>
<pre>computer
</pre>
<p>If you search for documents including both of "network" and "socket", input the following.</p>
<pre>network socket
</pre>
<p>It is the same as the following.</p>
<pre>network &amp; socket
</pre>
<p>If you search for documents including "network" followed by "socket", input the following.</p>
<pre>"network socket"
</pre>
<p>If you search for documents including one or both of "network" and "socket", input the following.</p>
<pre>network | socket
</pre>
<p>If you search for documents including "network" but without "socket", input the following.</p>
<pre>network ! socket
</pre>
<p>Note that the priority of "<code>|</code>" is higher than that of space, "<code>&amp;</code>", and "<code>!</code>". So, the following is to search for documents including one of "F1", "F-1", "Formula One", and including one of "champion" and "victory".</p>
<pre>F1 | F-1 | "Formula One" &amp; champion | victory
</pre>
<p>If you search for documents including some words beginning with "inter", input the following.</p><pre>inter*
</pre>
<p>If you search for documents including some words ending with "sphere", input the following.</p>
<pre>*sphere
</pre>
<p>If you search for documents matching some words matching regular expressions of "^un.*able$", input the following.</p>
<pre>*^un.*able$*
</pre>
<h2>Search with an Attribute</h2>
<p>If you search for documents whose title includes "introduction", input the following into "<code>with [...]</code>" field.</p>
<pre>@title STRINC introduction
</pre>
<p>If you want to ignore case, input the following.</p>
<pre>@title ISTRINC introduction
</pre>
<p>If you search for documents whose size is less than 10000 bytes, input the following.</p>
<pre>@size NUMLT 10000
</pre>
<p>The following attributes are supported.</p>
<ul>
<li>@uri : the URI (URL)</li>
<li>@title : the title, as with "Subject" of mail</li>
<li>@author : the name of the author, as with "From" of mail</li>
<li>@cdate : the creation date, as with "Date" of mail</li>
<li>@mdate : the modification date, as with "Date" of mail</li>
<li>@size : the size (file size)</li>
</ul>
<p>The following operators for attributes are supported.</p>
<ul>
<li>STREQ : is equal to the string</li>
<li>STRNE : is not equal to the string</li>
<li>STRINC : includes the string</li>
<li>STRBW : begins with the string</li>
<li>STREW : ends with the string</li>
<li>STRAND : includes all tokens in the string</li>
<li>STROR : includes at least one token in the string</li>
<li>STROREQ : is equal to at least one token in the string</li>
<li>STRRX : matches regular expressions of the string</li>
<li>NUMEQ : is equal to the number or date</li>
<li>NUMNE : is not equal to the number or date</li>
<li>NUMGT : is greater than the number or date</li>
<li>NUMGE : is greater than or equal to the number or date</li>
<li>NUMLT : is less than the number or date</li>
<li>NUMLE : is less than or equal to the number or date</li>
<li>NUMBT : is between the two numbers or dates</li>
</ul>
<p>If an operator is leaded by "<code>!</code>", the meaning is inverted. If an operator is leaded by "<code>I</code>", case of the value is ignored. If no operator is specified, all documents with the attribute correspond regardless of the value. <code>STRAND</code>, <code>STROR</code>, <code>STROREQ</code>, and <code>NUMBT</code> take plural parameters separated by space. Range of <code>NUMBT</code> is inclusive of border values. Two or more attribute names can be listed with separated by "<code>,</code>" to mean logical addition.</p>
<h2>Order of the Result</h2>
<p>By default, the order of the result is descending by score. If you want ascending order of title, input the following into the "<code>order by [...]</code>" field.</p>
<pre>@title STRA
</pre>
<p>If you want descending order of the size, input the following.</p>
<pre>@size NUMD
</pre>
<p>The following operators for order are supported.</p>
<ul>
<li>STRA : ascending by string</li>
<li>STRD : descending by string</li>
<li>NUMA : ascending by number or date</li>
<li>NUMD : descending by number or date</li>
</ul>
<h2>Other Faculties</h2>
<p>"<code>[...] per page</code>" specifies the number of shown documents per page. If documents over one page correspond, you can move to another page via anchors of "<code>PREV</code>" and "<code>NEXT</code>" at the bottom of the page.</p>
<p>"<code>clip by [...]</code>" specifies strength of clipping similar documents. It is useful if too similar documents occupy the page.</p>
<p>Each of "<code>[detail]</code>" links in the result is to show detail information. Each of "<code>[similar]</code>" links in the result is to search for similar documents. Each of "<code>[include]</code>" links in the result is to include clipped documents.</p>
<h2>Information</h2>
<p>See <a href="http://hyperestraier.sourceforge.net/">the project site</a> for more detail.</p>
</div>