Skip to content

ESQL: unmapped_fields="nullify"/"load" shouldn't nullify/load metadata, esp. _score #141907

@alex-spies

Description

@alex-spies
SET unmapped_fields=\"nullify\";
FROM employees
| LIMIT 1
| KEEP _score

    _score     
---------------
null

It doesn't make good sense to treat metadata the same way as regular fields, and therefore we also shouldn't nullify it. If a query has a KEEP _id and _id is missing, the user has to add METADATA _id to the FROM; nullifying this just hides a mistake.

Nullifying _score particularly just hides the fact that the query didn't actually perform any search.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions