lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: problem with SearchFiles demo
Date Mon, 23 Feb 2004 17:31:48 GMT
Michael,

What JVM and OS are you using?

Your attachment did not make it through.  If you continue to have 
problems please submit a bug report and attach test code there.

Thanks,

Doug

Michael A. Schoen wrote:
> I am using 1.3-final. Specifically I'm using the jar files from
> lucene-1.3-final.zip.
> 
> Any other ideas?
> 
> ----- Original Message ----- 
> From: "Otis Gospodnetic" <otis_gospodnetic@yahoo.com>
> To: "Lucene Users List" <lucene-user@jakarta.apache.org>
> Sent: Monday, February 23, 2004 3:11 AM
> Subject: Re: problem with SearchFiles demo
> 
> 
> 
>>I remember somebody reporting a similar problem a few months ago.  The
>>problem has been fixed since then.  You need 1.3-final version Lucene.
>>You didn't say if that is what you are using.
>>
>>Otis
>>
>>--- "Michael A. Schoen" <schoenm@earthlink.net> wrote:
>>
>>>I'm sure there's some obvious explanation for this that I'm missing
>>>-- I
>>>can't get the SearchFiles demo class to work. I can successfully use
>>>the
>>>IndexFiles class to index a directory, but searching doesn't work; I
>>>just
>>>get a NullPointerException.
>>>
>>>So I wrote my own Search class, which is basically just a slightly
>>>tweaked
>>>version of SearchFiles. And I get a NullPointerException there as
>>>well. I
>>>added a stack trace, which shows the exception coming from
>>>IndexSearcher.explain().
>>>
>>>Any ideas?
>>>
>>>I've attached the source for Search.java, and below is the stack
>>>trace.
>>>
>>>thanks,
>>>Michael
>>>
>>>
>>>
>>>>$ java Search
>>>>Query: casino
>>>>Searching for: casino
>>>> caught a class java.lang.NullPointerException
>>>> with message: null
>>>>java.lang.NullPointerException
>>>>        at
>>>
>>org.apache.lucene.search.IndexSearcher.explain(IndexSearcher.java:196)
>>
>>>>        at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:93)
>>>>        at org.apache.lucene.search.Hits.<init>(Hits.java:80)
>>>>        at
>>>
>>>org.apache.lucene.search.Searcher.search(Searcher.java:71)
>>>
>>>>        at
>>>
>>>org.apache.lucene.search.Searcher.search(Searcher.java:65)
>>>
>>>>        at Search.main(Search.java:35)
>>>>
>>>>
>>>
>>---------------------------------------------------------------------
>>
>>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message