I want to search \t \r \n in my doc, how to input in query string syntax.
It seems "\n" can work , "\n","\n" not work ,
Is there any other choises?
POST /test6/_doc/2
{
"id": 1002,
"name": "test1",
"desc": "Marvin \n \t \r "
}
POST test6/_close
POST test6/_open
PUT /test6/_settings
{
"analysis": {
"analyzer": {
"default": {
"tokenizer": "default",
"filter": null
}
},
"tokenizer": {
"default": {
"type": "char_group",
"tokenize_on_chars": [
" "
]
}
}
}
}
POST test6/_search
{"query":{"query_string":{"query":"\\t"}}
}
POST test6/_search
{"query":{"query_string":{"query":"\"\t\""}}
}
POST test6/_search
{"query":{"query_string":{"query":"\t"}}
}
POST test6/_search
{"query":{"query_string":{"query":"Marvin"}}
}