Projection DSL should detect (and prevent) projections on fields that have a different projection converter on the targeted indexes

Description

It seems the compatibility check we do in org.hibernate.search.backend.lucene.types.projection.impl.StandardFieldProjectionBuilderFactory#isDslCompatibleWith (for example) only calls org.hibernate.search.backend.lucene.types.converter.impl.LuceneFieldConverter#isDslCompatibleWith, which calls org.hibernate.search.engine.backend.document.spi.UserIndexFieldConverter#isDslCompatibleWith, which checks the compatibility of the DSL converter (which by the way, doesn't matter for projections), and more importantly does not check compatibility of the projection converter.

We should have a look at that, add relevant tests and fix the issue.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Major
Configure