> When testing in analyzer by using solr admin light gets > correctly > recognised as one of the synonims, but when searching > forĀ class 3 (gvw > 10001 - 14000) analyzer can't find any synonyms.
QueryParser splits query string on white spaces before it reaches analysis phase. You can try querying with quotes or using term or raw query parser. q="class 3 (gvw 10001 - 14000)" q={!term f=fieldName}class 3 (gvw 10001 - 14000)