Report incomplete metadata issues during Elasticsearch mapping generation

Description

Issue spotted here: https://github.com/hibernate/hibernate-search/pull/1217/commits/dfc7f199358808397d144d79d89f7915851db222#r87074164

Right now, we're only logging debug messages when failing to add a property/field to the ES mapping:

The only way to get IncompleteDataException can be found in addTypeOptions:

While I understand that we might not want to make the mapping generation fail completely (so that users may test more easily), at least we should issue a warning. Or maybe even log an error.

Something to be considered: expressed concerned about issuing warnings, since in some enterprises they are considered blocking when putting applications in production.

I feel like one of the purposes of warnings is to inform users about potential error, and leave it to the user to decide if it's bad or not. So in this case, it would be exactly what we need. Now, if it's blocking for some users...

, , WDYT?

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Minor
Configure