Here is the thing. I have a term stored in the index, which contains special character, such as \'-\', the simplest code is like this:
Document doc = new Doc
you can add the value as addValue() instead of add or addText. and then search in the special character with a KyewordAnalyzer instead of Standard Analyzer. or Add the data with addValue() and while searching the data in luke, replace the special character with the wild card search character (?). I have tried both ways and works