patch for wrong old RWI entries

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3028 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 2c69cc969a
commit 97596af843

@ -159,7 +159,7 @@ public class indexRWIEntryNew implements Cloneable, indexRWIEntry {
this.entry.setCol(col_wordsInText, oldEntry.wordcount());
this.entry.setCol(col_phrasesInText, oldEntry.phrasecount());
this.entry.setCol(col_doctype, new byte[]{(byte) oldEntry.doctype()});
this.entry.setCol(col_language, oldEntry.getLanguage(), null);
this.entry.setCol(col_language, (oldEntry.getLanguage() == null) ? "en" : oldEntry.getLanguage(), null);
this.entry.setCol(col_llocal, 0);
this.entry.setCol(col_lother, 0);
int domlen = plasmaURL.domLengthEstimation(oldEntry.urlHash());

@ -297,7 +297,7 @@ public class kelondroRow {
setCol(column, cell.getBytes());
else
try {
setCol(column, cell.getBytes(encoding));
setCol(column, (cell == null) ? null : cell.getBytes(encoding));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}

Loading…
Cancel
Save