| *TO BE DISCUSSED, DO NOT IMPLEMENT RIGHT AWAY* For example instead of writing this:
We would write this:
With this syntax, we could even, at some point in the future, consider per-backend defaults:
The main advantage is that there could not be any confusion anymore where the user names one of his indexes "default" and upon configuring it, all other indexes have their configuration suddenly change. The main drawback is that users migrating from Search 5 would very likely forget to move their "hibernate.search.index.default." properties to "hibernate.search.indexes-defaults.", and leave it as "hibernate.search.indexes.default.*", which would just configure a non-existing index named "default". This could, however, be caught by the unused configuration property detection implemented in HSEARCH-1869 Resolved . |