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

Handling of pageContentFilterXPath #3

Open
ilopata1 opened this issue May 2, 2013 · 0 comments
Open

Handling of pageContentFilterXPath #3

ilopata1 opened this issue May 2, 2013 · 0 comments

Comments

@ilopata1
Copy link

ilopata1 commented May 2, 2013

I believe the correct handling when there are no nodes in the document that match the xPath specified in pageContentFilterXPath, then the document should not be processed. To implement this I would suggest inserting:

if ( pageContentFilterNodeList.size() == 0) {
return false;
}

after the line:

List pageContentFilterNodeList = xPathPageContentFilter.selectNodes(cleanedXmlHtml);

ZakarFin pushed a commit to ZakarFin/nutch-plugins that referenced this issue Jul 4, 2014
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