Problem using Multitenancy Discriminator with Hibernate Search

My base Entity:

public abstract class MyBaseEntity {

  @Column(name = "pkid", columnDefinition = "BINARY(16)")
  @GeneratedValue(generator = "uuid2")
  @GenericGenerator(name = "uuid2", strategy = "uuid2")
  @KeywordField(normalizer = "lowercase")
  private UUID pkid;

  private String authority;

my persistence.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence xmlns:xsi=""
  version="2.1" xmlns=""
  <persistence-unit name="my-persistence-unit">
      <property name="jakarta.persistence.schema-generation.database.action" value="none"/>
      <property name="jakarta.persistence.provider"
      <property name="jakarta.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/>
      <property name="jakarta.persistence.jdbc.url"
      <property name="jakarta.persistence.jdbc.user" value="root"/>
      <property name="jakarta.persistence.jdbc.password" value=""/>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
      <property name="hibernate.connection.driver_class" value="com.mysql.cj.jdbc.Driver"/>
      <property name="hibernate.tenant_identifier_resolver"
      <property name=""

MyTenantIdentifierResolver :

public class MyTenantIdentifierResolver implements CurrentTenantIdentifierResolver {

  private String currentTenant = "unknown";

  public void setCurrentTenant(String tenant) {
    currentTenant = tenant;

  public String resolveCurrentTenantIdentifier() {
    return currentTenant;

  public boolean validateExistingCurrentSessions() {
    return !Objects.equals(currentTenant, "unknown");

  public boolean isRoot(String tenantId) {
    return Objects.equals(currentTenant, "rootTenant");

This works fine for Hibernate but when using using a Hibernate SearchSession I get following error: HSEARCH600031: Invalid tenant identifier: 'unknown'. The tenant identifier must be null, because multi-tenancy is disabled for this backend.

Then i tried to add so additional configurations to my persistence.xml:

      <property name="hibernate.multiTenancy" value="DISCRIMINATOR"/>
      <property name="" value="discriminator"/>

With this changes my applications crashes on startup with:

Caused by: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:

    default backend: 
          - HSEARCH000501: Invalid value for configuration property '': 'discriminator'. HSEARCH600149: Invalid backend configuration: mapping requires single-tenancy but multi-tenancy strategy is set.

How can i configure discriminator based Multitenancy for HibernateSearch?
Iam using Hibernate 6.0.2.Final and Hibernate Search 6.1.8.Final.

Hibernate ORM discriminator multitenancy support in Hibernate Search is going to be added in 7.0 – [HSEARCH-4403] - Hibernate JIRA

Right, I’ll update the issue as it’s not only about outbox-polling in the end.

EDIT: This change in particular will solve a problem that exists even without outbox-polling coordination: