Is there a possibility to set read alias for multiple indexes? I would like to create a new index every month.
When I tried that with IndexLayoutStrategy and adding aliases in ES I got this error:
HSEARCH400593: Invalid Elasticsearch index layout: index names [index-write, index-read] resolve to multiple distinct indexes [index-202401-000001, index-202402-000001]. These names must resolve to a single index.
This is not supported at the moment, so the only way you could make it work is by disabling Hibernate Search’s schema management completely – see Hibernate Search 7.1.1.Final: Reference Documentation . Whether indexing/search will work in practice remains to be seen.
If you want this to be implemented/tested in Hibernate Search, you will need to submit a feature request on Jira explaining: