Fuzzy queries and special characters


(Ajeis) #1

Fuzzy query is not trying special characters. Steps -

curl -k -XPUT 'http://localhost:9200/test_index/' -d '{
"mappings" : {
"type1" : {
"properties" : {
"name" : {
"type" : "string"
}
}
}
}
}'

curl -k -XPOST 'http://localhost:9200/test_index/type1/' -d '{
"name" : "P!nk"
}'

Search query - gives result
{
"query": {
"query_string": {
"query": ""P!nk""
}
}
}

Search query - no result
{
"query": {
"query_string": {
"query": "Pink~1"
}
}
}


(system) #2