> 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);
Hi
thanks for reply.
Is it possible to filter the special character. If I will allow then need to
put "\" before every special character, which will consume time and create
performance issue. So I want to just filter those special char from user
input query.
However I would also like to know that
Hi,
you have to escape lucene special characters present in usersearch term before
handing it over to QueryParser.
for more info look at
http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping%20Special%20Characters
“ There are only 10 types of people in this world:-
Those who und