- removed configuration button for 'search only for admin' from index.html and added this to ConfigPortal
- added configuration of link verification options (iffresh, cacheonly, nocache, ifexist) to ConfigPortal
- added configuration of navigation options to ConfigPortal
- added an option to switch off automatic index cleaning in case that a link verification method fails
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7613 6c8d7289-2bf4-0310-a012-ef5d649a1542
<inputtype="radio"name="publicSearchpage"value="true"#(publicSearchpage)#::checked="checked"#(/publicSearchpage)#/>Search is available for everyone
<inputtype="radio"name="publicSearchpage"value="false"#(publicSearchpage)#checked="checked"::#(/publicSearchpage)#/>Only the administator is allowed to search
<inputtype="radio"name="search.options"value="false"#(search.options)#checked="checked"::#(/search.options)#/>do not show Advanced Search
</dd>
<dt>Snippet Fetch Strategy & Link Verification</dt>
<dd>
<inputtype="radio"name="search.verify"value="nocache"#(search.verify.nocache)#::checked="checked"#(/search.verify.nocache)#onclick="document.getElementById('search_verify_delete').disabled=false;document.getElementById('search_verify_delete').checked=true;"/>NOCACHE: no use of web cache, load all snippets online<br/>
<inputtype="radio"name="search.verify"value="iffresh"#(search.verify.iffresh)#::checked="checked"#(/search.verify.iffresh)#onclick="document.getElementById('search_verify_delete').disabled=false;document.getElementById('search_verify_delete').checked=true;"/>IFFRESH: use the cache if the cache exists and is fresh otherwise load online<br/>
<inputtype="radio"name="search.verify"value="ifexist"#(search.verify.ifexist)#::checked="checked"#(/search.verify.ifexist)#onclick="document.getElementById('search_verify_delete').disabled=false;document.getElementById('search_verify_delete').checked=true;"/>IFEXIST: use the cache if the cache exist or load online<br/>
<inputtype="checkbox"name="search.verify.delete"id="search_verify_delete"value="true"#(search.verify.delete)#::checked="checked"#(/search.verify.delete)#/>If verification fails, delete index reference<br/><br/>
<inputtype="radio"name="search.verify"value="cacheonly"#(search.verify.cacheonly)#::checked="checked"#(/search.verify.cacheonly)#onclick="document.getElementById('search_verify_delete').disabled=true;document.getElementById('search_verify_delete').checked=false;"/>CACHEONLY: never go online, use all content from cache. If no cache entry exist, consider content nevertheless as available and show result without snippet<br/>
<inputtype="radio"name="search.verify"value="false"#(search.verify.false)#::checked="checked"#(/search.verify.false)#onclick="document.getElementById('search_verify_delete').disabled=true;document.getElementById('search_verify_delete').checked=false;"/>FALSE: no link verification and not snippet generation: all search results are valid without verification
</dd>
<dt>Show Information Links for each Search Result Entry</dt>
Log.logInfo("SEARCH","text snippet load time for "+metadata.url()+": "+snippetComputationTime+", "+((snippet.getErrorCode()<11)?"snippet found":("no snippet found ("+snippet.getError()+")")));
Log.logInfo("SEARCH","text snippet load time for "+metadata.url()+": "+snippetComputationTime+", "+(!snippet.getErrorCode().fail()?"snippet found":("no snippet found ("+snippet.getError()+")")));
if(snippet.getErrorCode()<11){
if(!snippet.getErrorCode().fail()){
// we loaded the file and found the snippet
returnnewResultEntry(page,query.getSegment(),peers,snippet,null,dbRetrievalTime,snippetComputationTime);// result with snippet attached
}elseif(cacheStrategy.mustBeOffline()){
@ -411,7 +414,7 @@ public class ResultFetcher {
}else{
// problems with snippet fetch
Stringreason="no text snippet; errorCode = "+snippet.getErrorCode();