Patrice Eber wrote:
How to tell nutch to display the META description in the results ?


... if there is any (which often isn't)?

First, you need to pass down meta tag value from HTML parser (metaTags) to the Content.metadata, and put it there under some prearranged key (e.g. "X-nutch-description"). The right place to do that would be somewhere around parse-html/.../HtmlParser.java:197

Then you just need to add a line to search.jsp, which would retrieve this value from NutchBean.getParseData() and present it to the user.

--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to