Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to use Hibernate Search Standalone and Hibernate Search with ORM in the same application #39517

Open
yrodiere opened this issue Mar 18, 2024 · 1 comment
Labels
area/hibernate-search Hibernate Search / Elasticsearch kind/enhancement New feature or request

Comments

@yrodiere
Copy link
Member

yrodiere commented Mar 18, 2024

Description

Follow-up on #26182.

I tried to use both extensions in the same app, and this led to issues due to @SearchEntity-annotated classes being picked up by the Hibernate Search with ORM extension, and failing because they are not actual Hibernate ORM entities. You can find the experiment there: https://github.com/yrodiere/quarkus-quickstarts/tree/search-orm-standalone

@gsmet also pointed out that we might need adjustments on the native configuration: #39415 (comment)

Implementation ideas

We will need:

  1. A way to make Quarkus understand that some entities are for the Hibernate Search + ORM extension, while others are for the Hibernate Search Standalone extension.
  2. Integration tests (including native mode)
  3. Maybe more: I couldn't test this very far, there may be other problems.

Addititionally we might need:

  1. A third extension to regroup all common code, in particular the GraalVM substitution for org.hibernate.search.util.common.jar.spi.JandexBehavior
@yrodiere yrodiere added the kind/enhancement New feature or request label Mar 18, 2024
@quarkus-bot quarkus-bot bot added the area/hibernate-search Hibernate Search / Elasticsearch label Mar 18, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 18, 2024

/cc @gsmet (hibernate-search)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-search Hibernate Search / Elasticsearch kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant