Special Characters in SearchBlox search

SearchBlox uses sb_analyzer by default. sb_analyzer usually ignores the special characters however the special characters would appear incontext.

If you need special characters in search you need to use special analyzer "sb_analyzer_special". This analyzer needs to be used in content field in../searchblox/WEB-INF/mapping.json as below:

"content": {
"type": "text",
"store": "no",
"index": "analyzed",
"analyzer": "sb_analyzer_special",
"include_in_all": "false",
"fielddata": true,
"fields": {
"autocomplete": {
"type": "text",
"analyzer": "shingle_analyzer",
"fielddata": true


The following characters can be searched directly


The following characters requires escape character preceding it

~,{ },!,:, < >,_,[] ,/ \ 

eg: test\~


Note: This special analyzer and special character would work from 8.6.2 onwards only

Have more questions? Submit a request