Applies to main, 8.x doesn't reproduce this.
Reproducer:
curl -u elastic:password -HContent-Type:application/json 'localhost:9200/test/_doc?refresh' -d '
{"foo": 1}
'
curl -u elastic-admin:elastic-password -H "Content-Type: application/json" 'localhost:9200/_query?format=txt' -d'
{
"query": "from test"
}'
foo
---------------
1
curl -u elastic-admin:elastic-password -H "Content-Type: application/json" 'localhost:9200/_query?format=txt' -d '
{
"query": "from test, missingindex"
}'
foo
---------------
Notice how the inclusion of missingindex in the index pattern causes the query to silently return an empty result. On 8.x, this (correctly) returns a verification exception.
Applies to main, 8.x doesn't reproduce this.
Reproducer:
Notice how the inclusion of
missingindexin the index pattern causes the query to silently return an empty result. On 8.x, this (correctly) returns a verification exception.