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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]