-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[hibernate-search] Support injecting runtime properties in custom IndexLayoutStrategy
implementation
#41429
Comments
/cc @gsmet (hibernate-search), @marko-bekhta (hibernate-search), @yrodiere (hibernate-search) |
Thanks. Note a workaround would be to annotate your injection point with
Then each env will use the value you set for that property -- assuming it's set at build time. |
But in that case I would need to publish a different artefact (Docker image in my case) per environment? As a workaround, I'm using an environment variable to set the prefix... I don't like to mix config in |
I opened https://hibernate.atlassian.net/browse/HSEARCH-5190 to make a fix possible in Quarkus in the future.
Yes.
I suspect you're being lucky and this might break in the future, but it's better than nothing :) |
https://hibernate.atlassian.net/browse/HSEARCH-5189 moved the creation of the index layout strategy to "runtime", so I will try fix this in #41359 by moving the config to runtime as well. EDIT: Though someone might need to remind me :] |
Description
Following #41384, I try to implement a custom
IndexLayoutStrategy
to prefix the index name with a config property defined inapplication.properties
.when I run my application (
prod
profile in k8s), I getQuoting @yrodiere from #41384 (comment):
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: