You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/htroot/DetailedSearch.html

133 lines
8.0 KiB

<!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">
<head>
<title>YaCy '#[clientname]#': Search Page</title>
#%env/templates/metas.template%#
</head>
<body id="DetailedSearch" onload="document.getElementById('search').focus()">
#%env/templates/header.template%#
<script type="text/javascript">
/* <![CDATA[ */
function checker(name, z1, z2) {
if (z1 == z2) {
document.write("<input type=\"radio\" name=\"" + name + "\" value=\"" + z2 + "\" checked=\"checked\" />");
} else {
document.write("<input type=\"radio\" name=\"" + name + "\" value=\"" + z2 + "\">");
}
}
function checkers(name, n) {
for (i = 0; i < 16; i++) {
checker(name, n, i);
}
document.write(n);
}
function checkerline(descr, tag, dflt) {
document.write("<dt>" + descr + "</dt>");
document.write("<dd>");
checkers(tag, dflt);
document.write("</dd>");
}
/* ]]> */
</script>
<h2>Detailed&nbsp;Search</h2>
<form class="dsearch" action="DetailedSearch.html" method="get" enctype="multipart/form-data">
<fieldset>
<input type="text" name="search" id="search" value="#[search]#" size="50" maxlength="250" />
<input type="submit" name="Enter" value="Search" />
</fieldset>
<fieldset>
<legend>Query Attributes</legend>
<dl>
<dt><label for="global">Global:</label></dt>
<dd><input type="checkbox" name="global" id="global" #[globalChecked]# /></dd>
<dt><label for="postsort">Post-Sort:</label></dt>
<dd><input type="checkbox" name="postsort" id="postsort" #[postsortChecked]# /></dd>
<dt><label for="localCount">Max. number of results:</label></dt>
<dd><input type="text" name="localCount" id="localCount" value="#[localCount]#" size="4" maxlength="5" /></dd>
<dt><label for="localTime">Max. search time (seconds):</label></dt>
<dd><input type="text" name="localTime" id="localTime" value="#[localTime]#" size="4" maxlength="3" /></dd>
<dt><label for="localWDist">Max. word distance:</label></dt>
<dd><input type="text" name="localWDist" id="localWDist" value="#[localWDist]#" size="4" maxlength="4" /></dd>
</dl>
</fieldset>
<fieldset>
<legend>Pre-Ranking</legend>
<dl>
<script type="text/javascript">checkerline("Domain Length", "localdomlength", #[localdomlength]#)</script>
<script type="text/javascript">checkerline("YaCy Block Rank", "localybr", #[localybr]#)</script>
<script type="text/javascript">checkerline("Date", "localdate", #[localdate]#)</script>
<script type="text/javascript">checkerline("Words In Title", "localwordsintitle", #[localwordsintitle]#)</script>
<script type="text/javascript">checkerline("Words In Text", "localwordsintext", #[localwordsintext]#)</script>
<script type="text/javascript">checkerline("Phrases In Text", "localphrasesintext", #[localphrasesintext]#)</script>
<script type="text/javascript">checkerline("Links To Local Domain", "localllocal", #[localllocal]#)</script>
<script type="text/javascript">checkerline("Links To Other Domain", "locallother", #[locallother]#)</script>
<script type="text/javascript">checkerline("URL Length", "localurllength", #[localurllength]#)</script>
<script type="text/javascript">checkerline("URL Components", "localurlcomps", #[localurlcomps]#)</script>
<script type="text/javascript">checkerline("Hit Count", "localhitcount", #[localhitcount]#)</script>
<script type="text/javascript">checkerline("Position In Text", "localposintext", #[localposintext]#)</script>
<script type="text/javascript">checkerline("Position Of Phrase", "localposofphrase", #[localposofphrase]#)</script>
<script type="text/javascript">checkerline("Word Distance", "localworddistance", #[localworddistance]#)</script>
<script type="text/javascript">checkerline("Appearance in URL", "localappurl", #[localappurl]#)</script>
<script type="text/javascript">checkerline("Appearance in Description", "localappdescr", #[localappdescr]#)</script>
<script type="text/javascript">checkerline("Appearance in Author", "localappauthor", #[localappauthor]#)</script>
<script type="text/javascript">checkerline("Appearance in Tags", "localapptags", #[localapptags]#)</script>
<script type="text/javascript">checkerline("Appearance in Reference", "localappref", #[localappref]#)</script>
<script type="text/javascript">checkerline("Appearance in Emphasized Text", "localappemph", #[localappemph]#)</script>
<script type="text/javascript">checkerline("Category Index Page", "localcatindexof", #[localcatindexof]#)</script>
<script type="text/javascript">checkerline("Category Image Appearance", "localcathasimage", #[localcathasimage]#)</script>
<script type="text/javascript">checkerline("Category Audio Appearance", "localcathasaudio", #[localcathasaudio]#)</script>
<script type="text/javascript">checkerline("Category Video Appearance", "localcathasvideo", #[localcathasvideo]#)</script>
<script type="text/javascript">checkerline("Category App. Appearance", "localcathasapp", #[localcathasapp]#)</script>
</dl>
</fieldset>
<fieldset>
<legend>Post-Ranking</legend>
<dl>
<script type="text/javascript">checkerline("URL Component Appears In Toplist", "localurlcompintoplist", #[localurlcompintoplist]#)</script>
<script type="text/javascript">checkerline("Description Comp. Appears In Toplist", "localdescrcompintoplist", #[localdescrcompintoplist]#)</script>
<script type="text/javascript">checkerline("Application Of Prefer Pattern", "localprefer", #[localprefer]#)</script>
</dl>
</fieldset>
<fieldset>
<input type="submit" name="EnterRanking" value="Set as Default Ranking" />
<input type="submit" name="ResetRanking" value="Re-Set to Built-In Ranking" />
</fieldset>
</form>
#(type)#
#(excluded)#
::
<p><strong>The following words are stop-words and had been excluded from the search: #[stopwords]#.</strong></p>
#(/excluded)#
#(num-results)#
::
<strong>#[linkcount]#</strong> results from <strong>#[orderedcount]#</strong> ordered links of a total number of <strong>#[totalcount]#</strong> known.
#(/num-results)#
#(combine)#
::
<p><strong>Topwords</strong> (to refine search):
#{words}#
<a href="DetailedSearch.html?search=#[newsearch]#&amp;Enter=Search&amp;count=#[count]#&amp;resource=#[resource]#&amp;time=#[time]##[ranking]#">#[word]#</a>
#{/words}#
</p>
#(/combine)#
<!-- linklist begin -->
#{results}#
<!-- link begin -->
<div class="searchresults">
<div class="urlactions">
<a href="#[delete]#" title="delete" class="deletelink" ><img src="/env/grafics/empty.gif" title="delete" alt="delete" class="deleteIcon" /></a>
</div>
<h4 class="linktitle"><a href="#[url]#">#[description]#</a></h4>
#(snippet)#::<p class="snippet"><em>#[text]#</em></p>#(/snippet)#
<p class="url"><a href="#[url]#" id="url#[urlhash]#">#[urlname]#</a></p>
<p class="urlinfo">#[date]# | YBR-#[ybr]# | <a href="ViewFile.html?urlHash=#[urlhash]#&amp;words=#[words]#">Info</a></p>
<p class="urlinfo">#[rankingprops]#</p>
</div>
<!-- link end -->
#{/results}#
#(/type)#
<!-- linklist end -->
#%env/templates/footer.template%#
</body>
</html>