How to Index special characters and Search those special characters in Elasticsearch

Thank you @cbuescher,

created

PUT _template/all_whitespace_only
{
"template": "*",
"version": 1,
"settings": {
"number_of_shards": 1,
"analysis": {
"analyzer": {
"anal_whitespace_only": {
"type": "custom",
"filter": [
"lowercase"
],
"tokenizer": "whitespace"
}
}
}
},
"mappings": {
"jobs": {
"properties": {
"content": {
"type": "string",
"analyzer": "anal_whitespace_only"
}
}
}
}
}

Will provide the result then,

Rudo

1 Like