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/yacyinteractive.html

99 lines
5.5 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 Interactive Search</title>
#%env/templates/metas.template%#
<script src="/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/yacyinteractive.js"></script>
<script type="text/javascript" src="/js/sorttable.js"></script>
<link media="screen" type="text/css" href="/yacy/ui/css/autocomplete.css" rel="stylesheet" />
</head>
<body>
<script type="text/javascript" src="/yacy/ui/js/jquery.autocomplete.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#search').autocomplete('/suggest.json', {parse: opensearch, delay: 0, selectFirst: false, scroll: false, max: 30});
function opensearch(data) {
var parsed = [];
data = eval('({"suggest":' + data + '})');
for (var i = 0; i < data.suggest[1].length; i++) {
var row = data.suggest[1][i];
if (row) {
parsed[parsed.length] = {
data: [row],
value: row,
result: row
};
};
};
return parsed;
};
});
</script>
<script type="text/javascript">
//<![CDATA[
var q = "#[query]#";
if (q != "") search(q);
//]]>
</script>
#(topmenu)#
#%env/templates/embeddedheader.template%#
::
<div id="api">
<script type="text/javascript">
//<![CDATA[
document.write("\<a id=\"rsslink\" href=\"yacysearch.rss?" + window.location.search.substring(1) + "\"\>")
//]]>
</script>
<img src="env/grafics/api.png" width="60" height="40" alt="API" /></a>
<span>This search result can also be retrieved as RSS/<a href="http://www.opensearch.org">opensearch</a> output.
The query format is similar to <a href="http://www.loc.gov/standards/sru/">SRU</a>.
Click the API icon to see an example call to the search rss API.
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
</div>
#%env/templates/simpleheader.template%#
#(/topmenu)#
<div>
<form class="search small" id="searchform" action="yacyinteractive.html" method="get" onkeyup="xmlhttpPost(); return false;">
<h2>#[promoteSearchPageGreeting]#</h2>
<div class="yacylogo">
<a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.smallImage]#" alt="yacysearch"/></a>
</div>
<fieldset class="yacys">
<input id="search" name="query" type="text" value="#[query]#" size="50" maxlength="80" />
</fieldset>
<!--<pre>Raw JSON String: <div id="raw"></div></pre>-->
</form>
<div id="searchnavigation"></div>
</div>
<div id="downloadscript" style="clear:both;"></div>
<div id="searchresults" style="clear:both;">
<h3>DECENTRALIZE - run this search portal yourself (if you like). Just follow these steps:</h3>
<ul>
<li>download the software from yacy.net and run it. (you need OpenJDK6). A http server is started and serves the administration pages.</li>
<li>open http://localhost:8080/ConfigBasic.html and select 'Search portal for your own web pages' ('Intranet Indexing' if you wanto to do this for your / other network) -> Set Configuration</li>
<li>click on 'System Update' and use 'Automatic Update' to get the latest features which are needed for this. The Peer re-starts automatically. Wait and open http://localhost:8080 again.</li>
<li>click 'Index Creation' -> 'Network Scanner' ( http://localhost:8080/CrawlStartScanner_p.html )</li>
<li>in 'Scan Range' enter some IPs (comma-separated) that shall be used as prototype for a 255.255.255.0 subrange. I use '81.163.150.96,81.163.2.42,81.163.18.81,81.163.62.38,81.163.22.118, 81.163.112.96' (without quotes)</li>
<li>at 'Scheduler' select 'scan and add all sites with granted access automatically' -> Scan. Wait. This makes a portscan and ftp/smb access test on the given range. Wait at least one minute. Keep calm.</li>
<li>You should now see a list of hosts that are crawled. Your CPU load should increase. All IPs are scanned every 10 minutes, but crawls are done only for new visible servers.</li>
<li>You can monitor the crawler at 'Crawler Monitor' ( http://localhost:8080/Crawler_p.html ).</li>
<li>You may want to increase the memory at 'Admin Console' -> 'Performance' ( http://localhost:8080/Performance_p.html ) (you must restart then but wait until the FTP site-listing is done it is lost otherwards :-(</li>
<li>Please set a very low download limit at 'Advanced Settings' -> 'Crawler Settings' ( http://localhost:8080/Settings_p.html?page=crawler ) .. if documents are not loaded, just their document name is indexed.</li>
<li>Ready - search at 'Interactive local search' ( http://localhost:8080/yacyinteractive.html )</li>
<li>You may want to set a peer password at http://localhost:8080/ConfigAccounts_p.html</li>
<li>Get the right look at http://localhost:8080/ConfigAppearance_p.html and select the 27c3 Skin</li>
<li>Set search page descriptions and images at http://localhost:8080/ConfigPortal.html</li>
<li>Visit our <a href="http://forum.yacy-websuche.de/viewtopic.php?p=21332#p21332">forum</a> if there are any questions.</li>
</ul>
<div><img src="PerformanceGraph.png" id="graph" alt="PerformanceGraph" width="660" height="240"/></div>
</div>
<script type="text/javascript">
//<![CDATA[
document.getElementById("query").focus();
//]]>
</script>
#%env/templates/footer.template%#
</body>
</html>