Ok, found a workaround:

byte [] content = nutchBean.getContent(...);
Summary summary = new Summarizer().getSummary(new String(content,
"UTF-8"), query);

etc etc.

By the way, I love this comment, I think I'll make myself a t-shirt
with this across my chest :)

>   /* Ugly utility, maybe someone else can do this better  */
>   public static String readCompressedString(DataInput in) throws IOException {
>     return new String(readCompressedByteArray(in),"UTF-8");
>   }




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to