Hello list,
I make some progress in showing the meta description, but there are still
some questions.
So far I tried to copy the getTitle() function. Therefore I wrote
MoreIndexingFilter.java
private Document addDesc(Document doc, ParseData data, String url) {
String description = data.getDescription();
if (description != null) {
doc.add(new Field("description", description, Field.Store.YES,
Field.Index.UN_TOKENIZED));
}
return doc;
}
Ok, so know how to add the getDescription()?
Maybe in ParseData.java? No, I guess not.
May be in HtmlParser.java? Yes maybe, but the Title of a document comes from
the function utils.getTitle(sb, root).
So do I at last have to patch DOMContentUtils or is there a shorter way?
Please help
Your Matthias
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general