Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: failed to port to Nutch 2.x (3 compile errors) #11

Open
kevindany opened this issue Jun 9, 2014 · 0 comments
Open

help: failed to port to Nutch 2.x (3 compile errors) #11

kevindany opened this issue Jun 9, 2014 · 0 comments

Comments

@kevindany
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant