-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quarkus Hibernate search programmatic API #32760
Comments
Hey,
You may want to use a custom layout strategy. Just implement See also quarkus.hibernate-search-orm.elasticsearch.layout.strategy.
It could be implemented, it's just that nobody had any use for it so far, so it wasn't deemed a priority. If anyone is interested in providing a pull request, I'd suggest they have a look at how support for analysis configurers is implemented in Quarkus and take inspiration from that. A few pointers:
There will be limitations though, in particular Quarkus may not be able to auto-detect all classes that need reflection because it usually does so at build time (based on annotations), and programmatic mapping happens later (on static init). So, when using programmatic mapping, developers may need to register some of their mapped classes for reflection manually. |
Hey Yoann, I Implemented it indeed with a custom layout strategy and it works like a charm, thanks for the pointer! |
Nice, thanks for the feedback. Let's leave the issue open as programmatic mapping still isn't available in Quarkus at the moment :) |
FWIW, regarding this:
It seems GraalVM is able to detect reflection needs based on |
Hello @mhautman I'm trying to achieve the same thing but I have some issue to retrieve the configurable prefix and use it in my How did you manage to do it? |
Description
Hi,
I have a requirement where I need to be able to define a prefix for the index names. (So different environments can use the same ElasticSearch instance)
I found this is possible with hibernate-search using the programmatic API (https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#hsearch-mapping-programmaticapi), however I didn't find any support for it in Quarkus Hibernate search extension because the property to point to the mapping is missing (hibernate.search.mapping.configurer)
Could this be implemented/added? Or am I missing something?
Thanks in advance.
Regards,
Morgan
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: