lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
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
To: java-user@lucene.apache.org
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message