List Info

Thread: NPE When using a merged segment




NPE When using a merged segment
user name
2006-05-29 17:57:29
I have the same problem with a merged segment. I had a look
with luke at 
the index and it seems that the indexer puts the old segment
names in 
there instead of the name of the merged segment. I'm not
sure if I did 
something wrong or if this is a bug.

Dominik

Gal Nitzan schrieb:
> Hi,
>
> I have built a new index based on the new segment only.
>
>
>
> -----Original Message-----
> From: Stefan Neufeind [mailto:apache.orgstefan-neufeind.de] 
> Sent: Monday, May 29, 2006 10:03 AM
> To: nutch-devlucene.apache.org
> Subject: Re: NPE When using a merged segment
>
> Gal Nitzan wrote:
>   
>> Hi,
>>
>> After using mergesegs to merge all my segments to
one segment only, I
>>     
> moved
>   
>> the new segment to segments.
>>
>> When accessing the web UI I get:
>>
>> java.lang.RuntimeException:
java.lang.NullPointerException
>> 	
>>
>>     
>
org.apache.nutch.searcher.FetchedSegments.getSummary(Fetched
Segments.java:20
>   
>> 3)
>>
	org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.ja
va:329)
>>
	org.apache.jsp.search_jsp._jspService(org.apache.jsp.search
_jsp:175)
>>     
>
> Hi,
>
> I'm not sure - but have you tried reindexing that new
segment? To my
> understanding the index holds refereences to the
segment (segment-name)
> - and in your case those are invalid. This would also
explain the error
> you get (in call to getSummary) because the summary is
fetched from the
> segment.
>
> If this works, then maybe you'll need to find a better
way of cleaning
> up the index - not reindexing everything but maybe just
rewriting the
> segmeent-names all into one or so.
>
> Feedback welcome.
>
>
> Good luck,
>  Stefan
>
>
>
>
>   


NPE When using a merged segment
user name
2006-05-30 17:20:04
I think it is a bug. It saves the old segment name instead
of replacing it
with the new segment name

-----Original Message-----
From: Dominik Friedrich [mailto:dominikwipe-records.org] 
Sent: Monday, May 29, 2006 7:57 PM
To: nutch-devlucene.apache.org
Subject: Re: NPE When using a merged segment

I have the same problem with a merged segment. I had a look
with luke at 
the index and it seems that the indexer puts the old segment
names in 
there instead of the name of the merged segment. I'm not
sure if I did 
something wrong or if this is a bug.

Dominik

Gal Nitzan schrieb:
> Hi,
>
> I have built a new index based on the new segment only.
>
>
>
> -----Original Message-----
> From: Stefan Neufeind [mailto:apache.orgstefan-neufeind.de] 
> Sent: Monday, May 29, 2006 10:03 AM
> To: nutch-devlucene.apache.org
> Subject: Re: NPE When using a merged segment
>
> Gal Nitzan wrote:
>   
>> Hi,
>>
>> After using mergesegs to merge all my segments to
one segment only, I
>>     
> moved
>   
>> the new segment to segments.
>>
>> When accessing the web UI I get:
>>
>> java.lang.RuntimeException:
java.lang.NullPointerException
>> 	
>>
>>     
>
org.apache.nutch.searcher.FetchedSegments.getSummary(Fetched
Segments.java:20
>   
>> 3)
>>
	org.apache.nutch.searcher.NutchBean.getSummary(NutchBean.ja
va:329)
>>
	org.apache.jsp.search_jsp._jspService(org.apache.jsp.search
_jsp:175)
>>     
>
> Hi,
>
> I'm not sure - but have you tried reindexing that new
segment? To my
> understanding the index holds refereences to the
segment (segment-name)
> - and in your case those are invalid. This would also
explain the error
> you get (in call to getSummary) because the summary is
fetched from the
> segment.
>
> If this works, then maybe you'll need to find a better
way of cleaning
> up the index - not reindexing everything but maybe just
rewriting the
> segmeent-names all into one or so.
>
> Feedback welcome.
>
>
> Good luck,
>  Stefan
>
>
>
>
>   




[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )