no "[0-9]+" in topwords

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1933 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 19 years ago
parent 128e4ab199
commit 1258df8133

@ -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

Loading…
Cancel
Save