Return Solr response and throw exception when dealing with synonyms