RE: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-04 Thread Teruhiko Kurosaka
> Mark Miller wrote: > > > Sounds familiar. This may actually be in JIRA already. > > Maybe this is: > > https://issues.apache.org/jira/browse/LUCENE-689 > > ? > > I just marked it as fix version 2.9. > > Mike Not exactly. NPE was from SegmentReader in my case while NPE is from SpanOrQu

Re: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-04 Thread Michael McCandless
Mark Miller wrote: Sounds familiar. This may actually be in JIRA already. Maybe this is: https://issues.apache.org/jira/browse/LUCENE-689 ? I just marked it as fix version 2.9. Mike - To unsubscribe, e-mail: [EMAIL P

Re: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-03 Thread Mark Miller
SpanQuery[0], 0, true); -Original Message- From: Michael McCandless [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 10:47 AM To: java-user@lucene.apache.org Subject: Re: NPE inside org.apache.lucene.index.SegmentReader.getNorms Actually I think something "outsid

RE: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-03 Thread Teruhiko Kurosaka
7 AM > To: java-user@lucene.apache.org > Subject: Re: NPE inside org.apache.lucene.index.SegmentReader.getNorms > > > Actually I think something "outside" Lucene is probably > setting that field. > > How did you create the

Re: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-03 Thread Michael McCandless
Actually I think something "outside" Lucene is probably setting that field. How did you create the Query that you are searching on? Mike Teruhiko Kurosaka wrote: Hello again, A debugging session shows that SpanWeight.query.field is null when SpanWeight.scorer() is being executed. API do

RE: NPE inside org.apache.lucene.index.SegmentReader.getNorms

2008-12-03 Thread Teruhiko Kurosaka
Hello again, A debugging session shows that SpanWeight.query.field is null when SpanWeight.scorer() is being executed. API doc says getField() is to "Returns the name of the field matched by this query." Am I right to assume that this field is set by a search mechanism within Lucene, not by my cod