lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Newbie Search Question
Date Thu, 23 Nov 2006 13:37:36 GMT
So why not assign a string to "text" and try it again? Or show us the code
where you expect the text variable to get a value.....

Erick

On 11/23/06, sirakov <sirakov@gmail.com> wrote:
>
>
> thanky you for the info :) i've showed and tried to use the example, but I
> get following error message
>
> Query: test
> Searching for: test
> Fields are:
> java.lang. NullPointerException
>          at java.io. String reader. <init> (Unknown Source)
>          at org.apache.lucene.demo. SearchFiles.main (SearchFiles.java
> :158)
> 15 totally matching documents
>
> Line 158 is:
>
> TokenStream tokenStream = analyzer.tokenStream (field, new string reader
> (text));
>
> The variable "text" is a "null".
>
> my question is: should I index the files differently or should I use some
> parameters?
> --
> View this message in context:
> http://www.nabble.com/Newbie-Search-Question-tf2667479.html#a7506220
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message