Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-3412

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

    Details

      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.

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              yrodiere Yoann Rodière
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: