Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/ConceptImporter.java |
— | — | @@ -467,7 +467,11 @@ |
468 | 468 | } else { |
469 | 469 | out.debug("processing category redirect "+rcName+" -> "+link); |
470 | 470 | storePageTerms(rcId, analyzerPage.getTitleTerms(), -1, link.getPage().toString(), ExtractionRule.TERM_FROM_REDIRECT ); |
471 | | - storeConceptAlias(rcId, conceptId, name, -1, link.getPage().toString(), AliasScope.REDIRECT); |
| 471 | + String tgtConcept = link.getPage().toString(); |
| 472 | + |
| 473 | + if (!name.equals(tgtConcept)) { |
| 474 | + storeConceptAlias(rcId, conceptId, name, -1, tgtConcept, AliasScope.REDIRECT); |
| 475 | + } |
472 | 476 | } |
473 | 477 | } else { |
474 | 478 | out.info("skipped inter-namespace redirect "+rcName+" -> "+link); |