Inconsistent handling of empty strings in numerical fields between ingestion and fetch #87153
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
If we try to index a document with an empty string on a field that is declared numerical, e.g. an integer, the document is ingested without issues:
This is due to coerce being true by default which makes empty strings to be treated as null values. This behaviour is not documented and should be added to the docs.
The issue is when we try to fetch this document using the fields API:
The field is treated as malformed and added to ignored fields which seems inconsistent whit the ingestion time behaviour.
The text was updated successfully, but these errors were encountered: