lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: getting error when ":" in the query
Date Mon, 01 Feb 2010 10:00:18 GMT
> However I would also like to know that, is there any short
> way to put "\"
> before special character which will not effect the
> performance.

There is a static method in org.apache.lucene.queryParser.QueryParser that does this: QueryParser.escape(String
s);




      

Mime
View raw message