How about creating a special-char-converting-reader like this?
public class LuceneReader extends Reader {
private Reader source = null;
private char buffer = (char) 0;
public LuceneReader( Reader sourceReader ) {
this.source = sourceReader;
}
public int read() {
char result = (char) 0;
I had a similar problem.
I don't know whether there is a more intelligent solution, but the quickest I had in
mind was to
convert the special characters I needed to look up into a fixed random character
string. For
example: prior to indexing I replace all occurences of '+' by 'PLUSsdfaEGsgfAE'.
Hi !
I've got big problems with special characters such as +, -, ", ', *, ...
I use a StandartAnalyzer and when I release a search with MultiFieldQueryParser. It
makes my application crashing because I get an exception.
org.apache.lucene.queryParser.ParseException: Encounter