lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "miki sun" <sun_m...@hotmail.com>
Subject Re: QueryParser error + solution
Date Wed, 05 Apr 2006 17:55:47 GMT
Daniel you are very clever! Your solution remind me this:
No temptation has overtaken you but such as is common to man; and God is 
faithful, who will not allow you to be tempted beyond what you are able, but 
with the temptation will provide the way of escape also, so that you will be 
able to endure it.
1 Corinthians 10:13 (New American Standard Version)

Well done Erik!


----Original Message Follows----
From: Daniel Noll <daniel@nuix.com.au>
Reply-To: java-user@lucene.apache.org
To: java-user@lucene.apache.org
Subject: Re: QueryParser error + solution
Date: Wed, 05 Apr 2006 14: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 stuff!";
   str = QueryParser.escape(str);

Daniel

--
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://www.nuix.com.au/                        Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message