Search eith string_query for special charcters in not_analyzed fields

Hello,

I am storing strings containing special characters in a not_analyzed field.
In order to search with query_string on this field I am escaping the
special characters. I tried tow approach. But both seem to work only
partially:

QueryParser.escape(value)

and

String regex = "([+\-!\(\){}\[\]^"~*?:\\]|[&\|]{2})";
value = value.replaceAll(regex, "\\$1");

Escaping works fine for: -,/,'^

But not for: +,:,|,",*,\

Is there a way that I can search for Strings containing these characters.

Thanks for you help,

Andreas

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1bb63f9d-a43b-49e8-a0c5-928faeb2b023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.