Hello,
does anyone know why I'm getting the following error when trying to search for a string that contains the "/" character? It is not listed in the Lucene special characters (and even trying to escape it doesn't help).
Thank you
Search:
"query": {
"query_string": {
"query": "2593-0200/92-1",
Error:
{
"error": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "Failed to parse query [2593-0200/92-1]",
"index_uuid": "WW-lh_mKT7ewuqL6lMUCdA",
"index": "jurisprudencia-decisoes"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "jurisprudencia-decisoes",
"node": "aS_7gmiHRcO5s4XCkkg4Zw",
"reason": {
"type": "query_shard_exception",
"reason": "Failed to parse query [2593-0200/92-1]",
"index_uuid": "WW-lh_mKT7ewuqL6lMUCdA",
"index": "jurisprudencia-decisoes",
"caused_by": {
"type": "parse_exception",
"reason": "Cannot parse '2593-0200/92-1': Lexical error at line 1, column 15. Encountered: <EOF> after : \"/92-1\"",
"caused_by": {
"type": "token_mgr_error",
"reason": "Lexical error at line 1, column 15. Encountered: <EOF> after : \"/92-1\""
}
}
}
}
]
},
"status": 400
}