Error Type : "search_phase_execution_exception”

{
  "query": {
    "match": {
      "field_name": "[your_search_term]"
    }
  }
}

{
  "query": {
    "match": {
      "field_name": "\\[your_search_term\\]"
    }
  }
}

Trouble escaping Elasticsearch query

• As of ES 8.7.1 I experienced that besides forward slash / typically all bracket-like chars cause token parsing exception ()[]{}. Those should be escaped or sanitized as well

Trouble escaping Elasticsearch query

Escaping Lucene Characters using Javascript Regex