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