|
|
@ -51,12 +51,15 @@ public class ConfigHeuristics_p {
|
|
|
|
if (post.containsKey("searchresultglobal_off")) sb.setConfig("heuristic.searchresults.crawlglobal", false);
|
|
|
|
if (post.containsKey("searchresultglobal_off")) sb.setConfig("heuristic.searchresults.crawlglobal", false);
|
|
|
|
if (post.containsKey("blekko_on")) sb.setConfig("heuristic.blekko", true);
|
|
|
|
if (post.containsKey("blekko_on")) sb.setConfig("heuristic.blekko", true);
|
|
|
|
if (post.containsKey("blekko_off")) sb.setConfig("heuristic.blekko", false);
|
|
|
|
if (post.containsKey("blekko_off")) sb.setConfig("heuristic.blekko", false);
|
|
|
|
|
|
|
|
if (post.containsKey("twitter_on")) sb.setConfig("heuristic.twitter", true);
|
|
|
|
|
|
|
|
if (post.containsKey("twitter_off")) sb.setConfig("heuristic.twitter", false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
prop.put("site.checked", sb.getConfigBool("heuristic.site", false) ? 1 : 0);
|
|
|
|
prop.put("site.checked", sb.getConfigBool("heuristic.site", false) ? 1 : 0);
|
|
|
|
prop.put("searchresult.checked", sb.getConfigBool("heuristic.searchresults", false) ? 1 : 0);
|
|
|
|
prop.put("searchresult.checked", sb.getConfigBool("heuristic.searchresults", false) ? 1 : 0);
|
|
|
|
prop.put("searchresultglobal.checked", sb.getConfigBool("heuristic.searchresults.crawlglobal", false) ? 1 : 0);
|
|
|
|
prop.put("searchresultglobal.checked", sb.getConfigBool("heuristic.searchresults.crawlglobal", false) ? 1 : 0);
|
|
|
|
prop.put("blekko.checked", sb.getConfigBool("heuristic.blekko", false) ? 1 : 0);
|
|
|
|
prop.put("blekko.checked", sb.getConfigBool("heuristic.blekko", false) ? 1 : 0);
|
|
|
|
|
|
|
|
prop.put("twitter.checked", sb.getConfigBool("heuristic.twitter", false) ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
|
|
return prop;
|
|
|
|
return prop;
|
|
|
|
}
|
|
|
|
}
|
|
|
|