I've read a lot about special characters in solr and escaping them with a "\" but unless I am using the string field type I have not gotten this to work for me.
I have an indexed text field that contains a[b as a value. I would like to search on this value and only return documents that contain that text (doesn't need to contain only that text, but does need to have those three characters in that order). Here are some queries that I've tried and the parsedQuery that I see from Solr:
q=field:a\\[b parsedquery: field:a field:b (seems to return anything that contains an a or a b)
q=field:"a\\[b" parsedquery: PhraseQuery(field:"a b") (seems to return anything that contains a b)
I'm using text_general out of the box - I've tried some recommended changes but so far no luck. Has anyone had this problem and found a way to make it work?