From 23ed6533aa437585f3fe93999f55a6dde8953469 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 10 Jan 2012 01:02:17 +0100 Subject: [PATCH] Fix wiki generation --- .../src/net/osmand/data/index/WikiIndexer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java b/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java index 82689f930e..82652ca514 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java +++ b/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java @@ -316,9 +316,9 @@ public class WikiIndexer { tryToMatchEnglish(); } if (parseText) { -// if(id % 500 == 0) { + if(id % 500 == 0) { log.debug("Article accepted " + cid + " " + title.toString()); -// } + } analyzeTextForGeoInfoNew(); } ctext = null; @@ -339,14 +339,13 @@ public class WikiIndexer { int ei = text.indexOf("]]",i); if(ei != -1) { String englishName = text.substring("[[en:".length() + i, ei).trim(); - log.info("Lookup english name !" + englishName+"!"); enSearch.setString(1, englishName); ResultSet rs = enSearch.executeQuery(); if (rs.next()) { clat = rs.getFloat(1); clon = rs.getFloat(2); subcategory = rs.getString(3); - log.info("Lookup english name !" + englishName+"!" + clat + " " + clon); + parseText = true; if (subcategory == null) { subcategory = ""; }