I have difficulties searching the special characters from my documents.
One of the attribute of the document - "phrase" - contains special characters.
Its value is -> "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone #&$$$$$."
I am not able to search "#&$$$$$"
Can someone please help in searching such special characters.
I have following mapping ->
{
"properties": {
"student": {
"properties": {
"id": {
"type": "long"
},
"name": {
"type": "text"
},
"email": {
"type": "text"
},
"gender": {
"type": "text"
},
"ip_address": {
"type": "text"
},
"date_of_birth": {
"type": "date"
},
"company": {
"type": "text"
},
"position": {
"type": "text"
},
"experience": {
"type": "long"
},
"country": {
"type": "text"
},
"phrase": {
"type": "text"
},
"salary": {
"type": "long"
}
}
}
}
}
My query is ->
{
"query": {
"wildcard": {
"phrase": {
"value": "*#&$$$$$.*"
}
}
}
}