search.Similarity

2006-04-11 Thread miki sun
Hi there Is there any theory behind the similarity measure of Lucene? http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html Thanks Miki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: doc.get("contents")

2006-04-07 Thread miki sun
stored field, but that would make you index much bigger. you could also open the orriginal file on disk, and pass it to the analyzer for highlighting instead. : Date: Thu, 06 Apr 2006 20:19:24 + : From: miki sun <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org :

doc.get("contents")

2006-04-06 Thread miki sun
Dear all I got a java.lang.NullPointerException at java.io.StringReader.(StringReader.java:33) error when processing the following code: for (int i = 0; i < theHits.length(); i++) { Document doc = theHits.doc(i); String contents = doc.get("contents") ; TokenStream tokenStream = analyzer.token

Re: QueryParser error + solution

2006-04-05 Thread miki sun
:26:20 +1000 miki sun wrote: Thanks Erik and Michael! I copied some code from demo.SearchFiles.java, I do not have a more clearer tracing message. Now it works. But do you have a better way than this: [snip] Something like this? String str = "Really bad query string: lots of evil stu

Re: QueryParser error + solution

2006-04-04 Thread miki sun
real issue. A complete stack trace would be much more helpful. Erik On Apr 4, 2006, at 6:55 AM, Michael Barry wrote: Exclamation point too ... check out the "Escaping Special Characters" section in the QueryParser syntax guide (http://lucene.apache.org/ java/docs/querypa

Re: QueryParser error

2006-04-04 Thread miki sun
colons. miki sun wrote: Hi there Who can tell me why I got the the queryParser error for the following query: Error in parse query :The light of the body is the eye: if therefore thine eye be single, thy whole body shall be full of light. But if thine eye be evil, thy whole body shall be f

QueryParser error

2006-04-04 Thread miki sun
Hi there Who can tell me why I got the the queryParser error for the following query: Error in parse query :The light of the body is the eye: if therefore thine eye be single, thy whole body shall be full of light. But if thine eye be evil, thy whole body shall be full of darkness. If therefor

QueryParser error

2006-04-04 Thread miki sun
Hi there Who can tell me why I got the the queryParser error for the following query: Error in parse query :The light of the body is the eye: if therefore thine eye be single, thy whole body shall be full of light. But if thine eye be evil, thy whole body shall be full of darkness. If therefor

Re: IndexFiles

2006-03-16 Thread miki sun
2006 09:33:37 -0500 The registry setting is probably irrelevant. What does "java - version" report? Erik On Mar 16, 2006, at 6:07 AM, miki sun wrote: Hi I am trying to use Lucene1.9.1 to index files on my computer. According to the FAQ of the website: - What Java versi

IndexFiles

2006-03-16 Thread miki sun
Hi I am trying to use Lucene1.9.1 to index files on my computer. According to the FAQ of the website: - What Java version is required to run Lucene? Lucene 1.4 will run with JDK 1.3 and up but requires at least JDK 1.4 to compile. Lucene >= 1.9 requires Java 1.4. But I got the following error

Re: IndexFiles.java

2006-03-14 Thread Miki Sun
How do you do it using Kawa? I am not familar with command line operations. Thanks On 14/03/06, Joe Scanlon <[EMAIL PROTECTED]> wrote: > you need to specify it from the command line > > ie, java org.apache.lucene.demo.IndexFile 'type in your starting directory > here'

Re: IndexFiles.java

2006-03-14 Thread Miki Sun
I change? Thanks a lot! On 14/03/06, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > It looks like you are not specifying the directory you want to index. > > Otis > > ----- Original Message > From: Miki Sun <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org

IndexFiles.java

2006-03-14 Thread Miki Sun
Hiya I am a beginner of Lucene. I try to use IndexFiles.java to index my text file directories, but it does not work. It always give me this error message even when I comment it out: Usage: java org.apache.lucene.demo.IndexFiles What does "if (args.length == 0) " mean? Thanks Miki --