elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Running a query with a syntax error can have different root causes

Open dbrimley opened this issue 9 months ago • 1 comments

Elasticsearch Version

8.x

Installed Plugins

No response

Java Version

bundled

OS Version

unknown

Problem Description

Running a query with a syntax error can have different root causes, throwing either a parse_exception or query_shard_exception on clusters with more than one node.

Could you make it show the same error when triggered in all scenarios?

Steps to Reproduce

Running a simple query like the below multiple times in the Dev console will show both errors.

POST my_simple_index/_search
{
  "query": {
    "query_string": {
      "query": "keyword +"
    }
  },
  "size": 1000
}

Logs (if relevant)

No response

dbrimley avatar May 15 '24 09:05 dbrimley

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine avatar May 15 '24 09:05 elasticsearchmachine

Pinging @elastic/es-search-relevance (Team:Search Relevance)

elasticsearchmachine avatar Jul 12 '24 15:07 elasticsearchmachine