Erick Erickson wrote:
>
> And how are you storing your date? Field.Store.YES? NO? COMPRESSED?
>
I think, here is my problem...I have found this in the FileDocument.java:
doc.add(new Field("contents", new FileReader(f)));
Field.Store.YES is missing, but when I try to put this argument, i beco
If we're still dealing with StringReader(text) throwing an error It
really shouldn't unless the document has no field named "contents". Here's
what I'd do...
Get a copy of Luke (google luke lucene) to examine your index.
Figure out what the document ID is that you're blowing up on and look at
Erick Erickson wrote:
>
> 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
>
>
I`m sorry that was a miss from my side.
I've tried to put the simple code into SearchFiles, between
Hits hits = searc
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
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. (Unknown Source)
at org.apache.lucene.demo. SearchFiles.main (SearchFile