Integrators can not use the AnalyzerDiscriminator to override analyzer mapping dynamically

Description

The @AnalyzerDiscriminator annotation only allows binding to a class instance by name, which wouldn't have enough context to be driven dynamically by an integrating framework like Infinispan Query.

There needs to be an SPI friendly alternative to either plug in a custom discriminator, or otherwise allow to override the field/analyzer mapping at runtime for each indexed entity.

Environment

None

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Blocker
Configure