Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMjI3ZWIx...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiMjI...
) HSEARCH-3950 (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiMjI...
) Simpler configuration syntax for single-backend applications (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiMjI...
)
Issue Type: Improvement Assignee: Unassigned Components: engine Created: 17/Jun/2020 01:02
AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière
(
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently, a single-backend application will need to do this:
hibernate.search.default_backend = myBackend
hibernate.search.backends.myBackend.foo = ...
hibernate.search.backends.myBackend.bar = ...
hibernate.search.backends.myBackend.foobar = ...
We could simplify it to this:
hibernate.search.backend.foo = ...
hibernate.search.backend.bar = ...
hibernate.search.backend.foobar = ...
This would be consistent with how datasources (
https://quarkus.io/guides/datasource ) are
configured in Quarkus, but unfortunately not with how Hibernate Search backends (
https://quarkus.io/guides/hibernate-search-elasticsearch ) are configured in Quarkus.
A few details:
* We would have to give a name to this default backend. default , maybe? In that case we
should forbid the use of that name for named backends.
* Existing applications relying on default_backend should continue to work, but maybe we
should deprecate this configuration property. People who really need
* We should still allow the definition of named backends, but they will only be used when
explicitly referenced.
* We should use the default backend wherever possible in tests and documentation, and add
separate tests and documention for named backends.
* In examples for setting configuration properties, we should *only* include an example
for the default backend. We'll just mention in the section about named backends how
the prefix changes for those.
(
https://hibernate.atlassian.net/browse/HSEARCH-3950#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3950#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100129- sha1:dd5aa75 )