|
|
|
@ -69,7 +69,7 @@ import de.anomic.yacy.yacyCore;
|
|
|
|
|
|
|
|
|
|
public class yacysearch {
|
|
|
|
|
|
|
|
|
|
public static final int MAX_TOPWORDS = 16;
|
|
|
|
|
public static final int MAX_TOPWORDS = 24;
|
|
|
|
|
|
|
|
|
|
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
|
|
|
|
|
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
|
|
|
|
@ -234,9 +234,12 @@ public class yacysearch {
|
|
|
|
|
|
|
|
|
|
prop.put("combine", 1);
|
|
|
|
|
|
|
|
|
|
// get the topwords
|
|
|
|
|
final TreeSet topwords = new TreeSet(kelondroNaturalOrder.naturalOrder);
|
|
|
|
|
String tmp = "";
|
|
|
|
|
for (int i = 0; i < hintcount; i++) {
|
|
|
|
|
topwords.add(references[i]);
|
|
|
|
|
tmp = (String) references[i];
|
|
|
|
|
if (!tmp.matches("[0-9]+")) { topwords.add(tmp); } // omit in the production ?
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// filter out the badwords
|
|
|
|
|