I need to define an array containing below all special characters..
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \
I am using this
List<String> specialCharactersInSolr = Arrays.asList(new String[] {
"+", "-", "&&", "||", "!", "(", ")", "{", "}", "[", "]", "^",
"~", "*", "?", ":", });
It is accepting all the character except " and \
Please help how to define these two as well.
Characterinstead ofString?"\""and"\\"respectively. But you say you want characters here and define strings instead?&&and||.new String[] { ... }.