Mapping a single entity type to multiple indexes

Description

Introduce a way to map a single entity type to multiple indexes:

  • on bootstrap, user code will provide a list of index names that this entity type will be mapped to (instead of just one usually).

  • at runtime, each entity to index will be inspected by user code upon indexing, and routed to the correct index.

For example, we could use the IndexedConfigurer on bootstrap and the RoutingBridge at runtime; both were introduced in HSEARCH-3108.

Note that initially, we'll force all indexes to have the exact same mapping. We'll allow each index to have a different mapping in HSEARCH-3971, and then we'll have addressed part of the use cases mentioned in HSEARCH-3313: essentially all the use cases except those where the list of indexes is not known in advance. Even that one could be covered eventually, in theory but that'll have to be handled in (if ever).

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure