mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
- some HTML-stuff git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3153 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
c43aae2143
commit
a27e884a8c
|
@ -119,12 +119,12 @@ public class DetailedSearch {
|
|||
return prop;
|
||||
}
|
||||
|
||||
private static void putRanking(serverObjects prop, plasmaSearchRankingProfile rankingProfile, String prefix) {
|
||||
private static void putRanking(final serverObjects prop, final plasmaSearchRankingProfile rankingProfile, final String prefix) {
|
||||
putRanking(prop, rankingProfile.preToExternalMap(prefix), prefix, "Pre");
|
||||
putRanking(prop, rankingProfile.postToExternalMap(prefix), prefix, "Post");
|
||||
}
|
||||
|
||||
private static void putRanking(serverObjects prop, Map ranking, String prefix, String attrExtension) {
|
||||
private static void putRanking(final serverObjects prop, final Map ranking, final String prefix, final String attrExtension) {
|
||||
prop.put("attr" + attrExtension, ranking.size());
|
||||
Iterator it = ranking.keySet().iterator();
|
||||
String key;
|
||||
|
|
|
@ -138,9 +138,9 @@ public class Surftips {
|
|||
e.printStackTrace();
|
||||
}
|
||||
prop.put("surftips_results_" + i + "_recommend", (voted) ? 0 : 1);
|
||||
prop.put("surftips_results_" + i + "_recommend_negativeVoteLink", "/Surftips.html?voteNegative=" + urlhash + "&refid=" + refid + "&display=" + display + ((showScore) ? "&score=" : "")); // for negaive votes, we don't send around the bad url again, the hash is enough
|
||||
prop.put("surftips_results_" + i + "_recommend_positiveVoteLink", "/Surftips.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display + ((showScore) ? "&score=" : ""));
|
||||
prop.put("surftips_results_" + i + "_url", url);
|
||||
prop.put("surftips_results_" + i + "_recommend_negativeVoteLink", "/Surftips.html?voteNegative=" + urlhash + "&refid=" + refid + "&,display=" + display + ((showScore) ? "&score=" : "")); // for negaive votes, we don't send around the bad url again, the hash is enough
|
||||
prop.put("surftips_results_" + i + "_recommend_positiveVoteLink", "/Surftips.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display + ((showScore) ? "&score=" : ""));
|
||||
prop.put("surftips_results_" + i + "_url", de.anomic.data.wikiCode.replaceHTMLonly(url));
|
||||
prop.put("surftips_results_" + i + "_urlname", nxTools.shortenURLString(url, 60));
|
||||
prop.put("surftips_results_" + i + "_urlhash", urlhash);
|
||||
prop.put("surftips_results_" + i + "_title", (showScore) ? ("(" + ranking.getScore(urlhash) + ") " + title) : title);
|
||||
|
|
20
startYACY.sh
20
startYACY.sh
|
@ -67,11 +67,25 @@ done
|
|||
java_args=""
|
||||
if [ -f DATA/SETTINGS/httpProxy.conf ]
|
||||
then
|
||||
for i in `grep javastart DATA/SETTINGS/httpProxy.conf`;do
|
||||
i="${i#javastart_*=}";
|
||||
JAVA_ARGS="-$i $JAVA_ARGS";
|
||||
# startup memory
|
||||
for i in Xmx Xms; do
|
||||
j=`grep javastart_$i DATA/SETTINGS/httpProxy.conf`;
|
||||
j="${j#javastart_$i=}";
|
||||
if [ -n $j ]; then JAVA_ARGS="-$j $JAVA_ARGS"; fi;
|
||||
done
|
||||
|
||||
# Priority
|
||||
j=`grep javastart_priority DATA/SETTINGS/httpProxy.conf`;
|
||||
j="${j#javastart_priority=}"
|
||||
if [ -n $j ]; then JAVA="nice -n $j $JAVA"; fi;
|
||||
|
||||
# for i in `grep javastart DATA/SETTINGS/httpProxy.conf`;do
|
||||
# i="${i#javastart_*=}";
|
||||
# JAVA_ARGS="-$i $JAVA_ARGS";
|
||||
# done
|
||||
fi
|
||||
echo "JAVA_ARGS: $JAVA_ARGS"
|
||||
echo "JAVA: $JAVA"
|
||||
|
||||
# generating the proper classpath
|
||||
CLASSPATH=""
|
||||
|
|
Loading…
Reference in New Issue
Block a user