a next() method.
>
>> -Original Message-
>> From: Michael McCandless [mailto:luc...@mikemccandless.com]
>> Sent: Thursday, May 17, 2012 6:20 PM
>> To: java-user@lucene.apache.org
>> Subject: Re: NullPointerException using IndexReader.termDocs when there
>
gt; Subject: Re: NullPointerException using IndexReader.termDocs when there
> are no matches
>
> I think you need to pay attention to what td.next() returned; I
> suspect in your case it returned false which means you cannot use any
> of its APIs (.doc(), .freq(), etc.) after that.
I think you need to pay attention to what td.next() returned; I
suspect in your case it returned false which means you cannot use any
of its APIs (.doc(), .freq(), etc.) after that.
Mike McCandless
http://blog.mikemccandless.com
On Thu, May 17, 2012 at 5:52 PM, Edward W. Rouse wrote:
> Lucene 3