Re: Phrase Search & Multiple Keywords with Double quotes

2010-11-22 Thread Erick Erickson
In general, just escape things. See: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Escaping Special Characters But I have to say that you might want to consider carefully whether this is a good ide

RE: Phrase Search & Multiple Keywords with Double quotes

2010-11-21 Thread sivaprasad
'\"' || c == '{' || c == '}' || c == '~' || c == '*' || c == '?' || c == '|' || c == '&' || c == ';' || Character.isWhitespace(c)) { sb.append('\\'); } sb.append(c); } return sb.toStri

Phrase Search & Multiple Keywords with Double quotes

2010-11-21 Thread Pawan Darira
Hi I want to do pharse searching with single/double quotes. Also there are cases that those phrases include special characters like & etc. What all i need to do while indexing such special characters & while searching them. How to handle phrase search with quotes Please suggest -- Thanks, Pawa