Re: QueryParser error + solution

2006-04-05 Thread miki sun
endure it. 1 Corinthians 10:13 (New American Standard Version) Well done Erik! Original Message Follows From: Daniel Noll <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: QueryParser error + solution Date: Wed, 05 Apr 2006 14

Re: QueryParser error + solution

2006-04-04 Thread Daniel Noll
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 stuff!"; str = Qu

Re: QueryParser error + solution

2006-04-04 Thread Erik Hatcher
||(qr.charAt(i) == '^')||(qr.charAt(i) == '"') ||(qr.charAt(i) == '*')||(qr.charAt(i) == '?') ||(qr.charAt(i) == ':')||(qr.charAt(i) == '\\') ) theQueries += "\\" + qr.charAt(i); else theQ

Re: QueryParser error + solution

2006-04-04 Thread miki sun
':')||(qr.charAt(i) == '\\') ) theQueries += "\\" + qr.charAt(i); else theQueries += qr.charAt(i) ; } Original Message Follows From: Erik Hatcher <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apa

Re: QueryParser error

2006-04-04 Thread Erik Hatcher
s that darkness! java.lang.NullPointerException Original Message Follows From: Michael Barry <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: QueryParser error Date: Tue, 04 Apr 2006 06:44:02 -0400 You need to escape the colons. miki sun wrote: Hi t

Re: QueryParser error

2006-04-04 Thread Michael Barry
hael Barry <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: QueryParser error Date: Tue, 04 Apr 2006 06:44:02 -0400 You need to escape the colons. miki sun wrote: Hi there Who can tell me why I got the the queryParser error for the

Re: QueryParser error

2006-04-04 Thread miki sun
is that darkness! java.lang.NullPointerException Original Message Follows From: Michael Barry <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: QueryParser error Date: Tue, 04 Apr 2006 06:44:02 -0400 You need to escape the

Re: QueryParser error

2006-04-04 Thread Michael Barry
You need to escape the 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

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

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