The @AnalyzerDiscrimnator 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. |