How to handle special characters in solr?

45 views Asked by At

Do we have any solr configuration in solr or do we need to append Back slashes in the code level in q parameter before we pass to solr.

Please let me know how we can handle special characters.

At my current configuration I just kept the word delimiter filter factory enabled at query time analyzer in text_general by toggling preserveOriginal set to 1 and catenateWords set to 1, but we don't get accurate relevant results.

Eg: When searching for 37/eNOS(S633), getting no results. Expected results: To get the list of products. Actual results: No results found.

To get the results made the changes at query end and enabled word delimeter filter and toggled CatenateWords=1 and preserveOrginal=1. In analysis, it preserves original and since we have catenateWords we get enoss633.

But for other exact search we get irrelevant results because of catenatewords=1.

So do we have any other configuration to handle special character or do we need to append with "back slash" at the code level ?

0

There are 0 answers