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

Upgrade to Hibernate Search 6.0.0.Beta9 + Elasticsearch 7.8 #11166

Merged
merged 8 commits into from
Aug 21, 2020

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Aug 3, 2020

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some question/suggestion. The first one is a real question: I'm not sure I understand why the default backend now needs to be disabled?

// There is at least one named backend: we disallow using the default backend.
// Theoretically we could allow using it,
// but then we would be unable to detect whether the default backend is used
// (and thus absolutely needs the version to be configured)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I follow you here. We make the version mandatory for named backend so maybe we should just make it mandatory for everything, default backend included? And then we could keep the named backend active?

Copy link
Member Author

@yrodiere yrodiere Aug 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do that, then people using named backends exclusively (which, IMO, is what they should do if they have multiple backends) will have to set the version for the default backend even if they don't use it. I can do that if you want, but I'm not sure it's a better solution.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed this according to our discussion on Zulip, rebased and force-pushed. Let's wait for CI, but then as far as I know it can be merged.

@yrodiere
Copy link
Member Author

yrodiere commented Aug 3, 2020

I had a quick look at the build failure, and it seems unrelated. I suspect a problem on master?

@yrodiere
Copy link
Member Author

yrodiere commented Aug 3, 2020

@gsmet Also, for the migration guide:

## Hibernate Search + Elasticsearch (Preview)

* Configuration properties for index defaults can no longer include the `.index-defaults` component. For example,  `quarkus.hibernate-search.elasticsearch.index-defaults.schema-management.required-status` should now be written simply as `quarkus.hibernate-search.elasticsearch.schema-management.required-status`.
* `query.explain()` now expects to be passed an entity ID instead of a document ID. In short, if your entity has an ID of type `Long`, you need to pass a `Long` (previously you had to pass a `String`).
* `@IndexedEmbedded.storage`/`ObjectFieldStorage` have been renamed to `@IndexedEmbedded.structure`/`ObjectStructure`. The older syntax is deprecated and will eventually be removed.
* `quarkus.hibernate-search.elasticsearch.default-backend` no longer exists. You can either configure a default backend (`quarkus.hibernate-search.elasticsearch.someProperty someValue`) or named backends (`quarkus.hibernate-search.elasticsearch.backends."backend-name".someProperty someValue`), but a named backend can no longer be considered as the default backend.

@gsmet gsmet added this to the 1.8.0 - master milestone Aug 4, 2020
@yrodiere
Copy link
Member Author

@gsmet should I do anything or is it ok to merge ?

This feature probably wasn't used a lot by Quarkus users, since it's
only (potentially) useful when you have multiple backends.
I had renamed the tests in 961d95b
because I misunderstood their purpose from the comment on IndexedEntity
and thought they were misnamed, but actually it's the comment that was
unclear and should have been fixed.
@gsmet gsmet merged commit dad0481 into quarkusio:master Aug 21, 2020
@yrodiere yrodiere deleted the hsearch-6-beta9 branch May 17, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/documentation area/hibernate-search Hibernate Search
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants