nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Tang <him...@gmail.com>
Subject Re: Nutch 0.8 update issue
Date Thu, 08 Dec 2005 02:51:06 GMT
Guys

My fault! I miss copying the segments dir. Sorry for that. Pls ignore
this messgae.

/Jack

On 12/8/05, Jack Tang <himars@gmail.com> wrote:
> Hi All
>
> Currently I update my nutch from 0.7 to 0.8-dev (svn version) and come
> across one question on  searcher.
>
> I wrote my own indexer and searcher based on nutch-0.7 and they both
> worked fine. However, without luck, searcher is failed in
> nutch-0.8-dev. Here are the exceptions:
>
> Total hits: 26
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.NullPointerException
>         at org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:190)
>         at org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.java:297)
>         at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:343)
> Caused by: java.lang.NullPointerException
>         at org.apache.nutch.searcher.FetchedSegments.getSummary(FetchedSegments.java:144)
>         at org.apache.nutch.searcher.FetchedSegments$SummaryThread.run(FetchedSegments.java:163)
>
> It is said in FetchedSegments.java
>   public String getSummary(HitDetails details, Query query)
>     throws IOException {
>
>     String text = getSegment(details).getParseText(getDocNo(details)).getText();
>     return new Summarizer().getSummary(text, query).toString();
>   }
>
> getSegment(details) = null !? Any words for this question? Appreciate your time.
>
> /Jack
>
>
> --
> Keep Discovering ... ...
> http://www.jroller.com/page/jmars
>


--
Keep Discovering ... ...
http://www.jroller.com/page/jmars

Mime
View raw message