Fix wiki generation
This commit is contained in:
parent
32dc8c036d
commit
23ed6533aa
1 changed files with 3 additions and 4 deletions
|
@ -316,9 +316,9 @@ public class WikiIndexer {
|
||||||
tryToMatchEnglish();
|
tryToMatchEnglish();
|
||||||
}
|
}
|
||||||
if (parseText) {
|
if (parseText) {
|
||||||
// if(id % 500 == 0) {
|
if(id % 500 == 0) {
|
||||||
log.debug("Article accepted " + cid + " " + title.toString());
|
log.debug("Article accepted " + cid + " " + title.toString());
|
||||||
// }
|
}
|
||||||
analyzeTextForGeoInfoNew();
|
analyzeTextForGeoInfoNew();
|
||||||
}
|
}
|
||||||
ctext = null;
|
ctext = null;
|
||||||
|
@ -339,14 +339,13 @@ public class WikiIndexer {
|
||||||
int ei = text.indexOf("]]",i);
|
int ei = text.indexOf("]]",i);
|
||||||
if(ei != -1) {
|
if(ei != -1) {
|
||||||
String englishName = text.substring("[[en:".length() + i, ei).trim();
|
String englishName = text.substring("[[en:".length() + i, ei).trim();
|
||||||
log.info("Lookup english name !" + englishName+"!");
|
|
||||||
enSearch.setString(1, englishName);
|
enSearch.setString(1, englishName);
|
||||||
ResultSet rs = enSearch.executeQuery();
|
ResultSet rs = enSearch.executeQuery();
|
||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
clat = rs.getFloat(1);
|
clat = rs.getFloat(1);
|
||||||
clon = rs.getFloat(2);
|
clon = rs.getFloat(2);
|
||||||
subcategory = rs.getString(3);
|
subcategory = rs.getString(3);
|
||||||
log.info("Lookup english name !" + englishName+"!" + clat + " " + clon);
|
parseText = true;
|
||||||
if (subcategory == null) {
|
if (subcategory == null) {
|
||||||
subcategory = "";
|
subcategory = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue