Hi,

 Witch imports do I need to add at any indexer plugin in 
(like import org.apache.nutch.parse.Outlink; and ...)
order to get the code below to work:


 // add links
 Outlink[] outlinks = parse.getData().getOutlinks();
 int end = Math.min(outlinks.length, UpdateDatabaseTool.MAX_OUTLINKS_PER_PAGE);
 for (int i = 0; i < end; i++) {
 Outlink link = outlinks[i];
 String linkUrl = link.getToUrl();
 
 doc.add(new Field("link", linkUrl, false, true, false));
 }
 
Thanks,
Marco

 

Reply via email to