Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNWM2NjRk...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiNWM...
) HSEARCH-3950 (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiNWM...
) Simpler configuration syntax for single-backend applications (
https://hibernate.atlassian.net/browse/HSEARCH-3950?atlOrigin=eyJpIjoiNWM...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently, a single-backend application will need to do this:
{noformat}
hibernate.search.default_backend = myBackend
hibernate.search.backends.myBackend.foo = ...
hibernate.search.backends.myBackend.bar = ...
hibernate.search.backends.myBackend.foobar = ...
{noformat}
We could simplify it to this:
{noformat}
hibernate.search.backend.foo = ...
hibernate.search.backend.bar = ...
hibernate.search.backend.foobar = ...
{noformat}
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
to define the default backend at deployment time can use the programmatic mapping.
* 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#100133- sha1:bf400b0 )