Does anyone know a good way to make the names for indices created by Hibernate Search configurable at run time? I’m using the @Indexed annotation, and it will only take a static value. It appears a configurable index name would be possible with the programmatic API, but we’ve already set up all the entities with annotations, and not eager to re-do all that configuration in a SearchMapping. Is there any way change just the index name (or even put a configurable postfix/prefix on it) while still using annotations?
The reason for this is we’d like to run several instances of the same application pointed to a shared (institutional) search server. It would help a great deal if they could be configured at runtime to use different index names.