Skip to content

Commit

Permalink
remove blekko from opensearch config (not available)
Browse files Browse the repository at this point in the history
  • Loading branch information
reger committed Jan 4, 2016
1 parent 1af0e9e commit e8256bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion defaults/heuristicopensearch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
## - all lines beginning with '#' and where the second character is not '#' are commented-out keyword lines
##

#Blekko = http://blekko.com/ws/{searchTerms} /rss # get 20 results from blekko
#Faroo-News = http://www.faroo.com/api?q={searchTerms}&start={startIndex}&length=20&l=en&src=news&f=rss # get results from Faroo news-search
#WordPress.com = http://en.search.wordpress.com/?q={searchTerms}&f=feed&page={startPage?} #Search WordPress.com Blogs
#Sueddeutsche.de = http://suche.sueddeutsche.de/query/{searchTerms}?output=rss # Sueddeutsche Zeitung Artikel Archiv
Expand Down
13 changes: 5 additions & 8 deletions htroot/yacysearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ public static serverObjects respond(
}
}

final int heuristicBlekko = querystring.indexOf("/heuristic", 0);
if ( heuristicBlekko >= 0 ) {
final int heuristicOS = querystring.indexOf("/heuristic", 0);
if ( heuristicOS >= 0 ) {
querystring = querystring.replace("/heuristic", "");
modifier.add("/heuristic");
}
Expand Down Expand Up @@ -721,14 +721,11 @@ public static serverObjects respond(
SwitchboardConstants.REMOTESEARCH_MAXTIME_USER,
sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXTIME_DEFAULT, 3000)));

if ( startRecord == 0 ) {
if ( modifier.sitehost != null && sb.getConfigBool(SwitchboardConstants.HEURISTIC_SITE, false) && authenticated && !stealthmode) {
if ( startRecord == 0 && authenticated && !stealthmode ) {
if ( modifier.sitehost != null && sb.getConfigBool(SwitchboardConstants.HEURISTIC_SITE, false) ) {
sb.heuristicSite(theSearch, modifier.sitehost);
}
if ( heuristicBlekko >= 0 && authenticated && !stealthmode ) {
FederateSearchManager.getManager().search(theSearch);
}
if (sb.getConfigBool(SwitchboardConstants.HEURISTIC_OPENSEARCH, false) && authenticated && !stealthmode) {
if ( heuristicOS >= 0 || sb.getConfigBool(SwitchboardConstants.HEURISTIC_OPENSEARCH, false) ) {
FederateSearchManager.getManager().search(theSearch);
}
}
Expand Down
2 changes: 1 addition & 1 deletion locales/de.lng
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ doublequotes==Anführungszeichen
prefer given language==Angegebene Sprache bevorzugen
an ISO639 2-letter code==2-Buchstaben-Ländercode nach ISO639
heuristics==Heuristiken
add search results from blekko==Benutze zusätzliche Ergebnisse von Blekko
add search results from external opensearch systems==Benutze zusätzliche Ergebnisse von externen Opensearchsystemen
Search Navigation==Such-Navigation
keyboard shotcuts==Tastatur-Kürzel
tab or page-up==Tab oder Bild hoch
Expand Down

0 comments on commit e8256bb

Please sign in to comment.