You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, there are 3 compile errors when I try to run it in nutch2.x, and I really don't know how to fix it. I know this plugin was designed to run on nutch1.x, but it will be very useful for nutch2.x, can you help me on this? or give any clue? Very appreciate for it!
Below is the error details:
(1)117 line of XPathHtmlParserFilter.java:
Metadata metadata = parseResult.get(content.getUrl()).getData().getParseMeta();
error info: The method getData() is undefined for the type Parse
(2)67,68 lines of XPathIndexingFilter:
public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException {
Metadata metadata = parse.getData().getParseMeta();
error info: The method filter(NutchDocument, Parse, Text, CrawlDatum, Inlinks) of type XPathIndexingFilter must override or implement a supertype method
(3)122 line of XPathIndexingFilter:
doc.add(xPathIndexerPropertiesField.getName(), value);
error info: The method add(String, String) in the type NutchDocument is not applicable for the arguments (String, Object)
The text was updated successfully, but these errors were encountered:
Hi guys, there are 3 compile errors when I try to run it in nutch2.x, and I really don't know how to fix it. I know this plugin was designed to run on nutch1.x, but it will be very useful for nutch2.x, can you help me on this? or give any clue? Very appreciate for it!
Below is the error details:
(1)117 line of XPathHtmlParserFilter.java:
Metadata metadata = parseResult.get(content.getUrl()).getData().getParseMeta();
error info: The method getData() is undefined for the type Parse
(2)67,68 lines of XPathIndexingFilter:
public NutchDocument filter(NutchDocument doc, Parse parse, Text url, CrawlDatum datum, Inlinks inlinks) throws IndexingException {
Metadata metadata = parse.getData().getParseMeta();
error info: The method filter(NutchDocument, Parse, Text, CrawlDatum, Inlinks) of type XPathIndexingFilter must override or implement a supertype method
(3)122 line of XPathIndexingFilter:
doc.add(xPathIndexerPropertiesField.getName(), value);
error info: The method add(String, String) in the type NutchDocument is not applicable for the arguments (String, Object)
The text was updated successfully, but these errors were encountered: