lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: how to consider special character like + ! @ # in Lucene search
Date Wed, 10 Apr 2013 13:09:09 GMT
You'll have to switch from using the standard analyzer/tokenizer to using 
the whitespace analyzer/tokenizer, and make sure not to use any additional 
token filters that might eliminate some or all special characters (or 
provide character maps for the ones that do accept character maps.) You will 
need to completely reindex your data as well. And, in some cases you may 
need to escape some special characters with backslash in your queries.

-- Jack Krupansky

-----Original Message----- 
From: neeraj shah
Sent: Wednesday, April 10, 2013 2:07 AM
Subject: how to consider special character like + ! @ # in Lucene search

hello, im using Lucene2.9.

i have to search special character like "/" in given text. but when im
searching it gives me 0 hit.
I have tried  QueryParse.escape("/").  but did not get the result.
how to proceed further. please help..

With Regards,
Neeraj Kumar Shah 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message