Search 6 groundwork - Restore ORM object loading with the same feature coverage as Search 5

Description

Remaining work:

  • org.hibernate.search.v6poc.entity.orm.search.impl.ByTypeObjectLoader

    • Decide whether we want to remove null values upon loading like in Search 5 or not. We probably do, but I suspect that requires more work than just dropping values (ideally in such an event we should run another query to compensate). Maybe just restore Search 5 behaviors and create another ticket to handle this properly?

  • org.hibernate.search.v6poc.entity.orm.search.impl.ObjectLoaderBuilder, org.hibernate.search.v6poc.entity.orm.jpa.HibernateOrmSearchQueryResultDefinitionContext:

    • Add support for other types of database retrieval and object lookup? See HSearch 5: org.hibernate.search.query.hibernate.impl.ObjectLoaderBuilder#getObjectInitializer

    • Group together entity types from a same hierarchy, so as to optimize loads (one query per entity hierarchy, and not one query per index).

  • org.hibernate.search.v6poc.entity.orm.search.impl.SingleTypeByIdObjectLoader
    **Avoid creating a list when the transformer is the identity; maybe cast the list in that case, or transform in-place all the time?

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure