You can use your own Analyzer to support special characters. Just
process the special characters in your analyzer

Aviran
http://www.aviransplace.com 

-----Original Message-----
From: Lucene User [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 15, 2005 11:00 AM
To: java-user@lucene.apache.org
Subject: Searching Special Characters

Hi

Our index contains articles with special characters. For instance, the
string P&O is indexed as P&O. The correct entity codes are indexed
for all the special characters we use.

My question is that a typical user searching for the above will enter
P&O but that will not match P&O.

I know I could replace & for & but this did not work either and I
don't think it's the best solution even if it did.

The search String looked like
+(headline:&)

I would like to extend any functionality to all special chars, for
example to single quote (’)

They're indexed using StandardAnalyzer

Any advice?

Cheers

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to