Here some logs.
2020-03-12 14:42:47,334 o.h.s.m.o.m.impl.MassIndexerImpl [D] Targets for indexing job: [org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmIndexedTypeContext@6827395a, org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmIndexedTypeContext@22e6a0e2, org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmIndexedTypeContext@57902d94, org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmIndexedTypeContext@40e66634]
2020-03-12 14:42:47,350 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientphysique-write/_refresh' with query parameters POST and 0 objects in payload in 1ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,366 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientphysique-write/_delete_by_query' with query parameters {conflicts=proceed} and 1 objects in payload in 4ms. Response had status 200 'OK'. Request body: <{"query":{"bool":{"must":{"match_all":POST},"filter":[{"term":{"_tenant_id":""}}]}}}>. Response body: <{"took":0,"timed_out":false,"total":0,"deleted":0,"batches":0,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}>
2020-03-12 14:42:47,366 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientmoral-write/_refresh' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,366 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/sousproduit-write/_refresh' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,366 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/depot-write/_refresh' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientmoral-write/_delete_by_query' with query parameters {conflicts=proceed} and 1 objects in payload in 3ms. Response had status 200 'OK'. Request body: <{"query":{"bool":{"must":{"match_all":POST},"filter":[{"term":{"_tenant_id":""}}]}}}>. Response body: <{"took":0,"timed_out":false,"total":0,"deleted":0,"batches":0,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/sousproduit-write/_delete_by_query' with query parameters {conflicts=proceed} and 1 objects in payload in 3ms. Response had status 200 'OK'. Request body: <{"query":{"bool":{"must":{"match_all":POST},"filter":[{"term":{"_tenant_id":""}}]}}}>. Response body: <{"took":0,"timed_out":false,"total":0,"deleted":0,"batches":0,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/depot-write/_delete_by_query' with query parameters {conflicts=proceed} and 1 objects in payload in 2ms. Response had status 200 'OK'. Request body: <{"query":{"bool":{"must":{"match_all":POST},"filter":[{"term":{"_tenant_id":""}}]}}}>. Response body: <{"took":0,"timed_out":false,"total":0,"deleted":0,"batches":0,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1.0,"throttled_until_millis":0,"failures":[]}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientmoral-write/_forcemerge' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientphysique-write/_forcemerge' with query parameters POST and 0 objects in payload in 3ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/sousproduit-write/_forcemerge' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,381 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/depot-write/_forcemerge' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:47,397 o.m.i.IdentifierConsumerDocumentProducer [T] created
2020-03-12 14:42:50,599 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:51,021 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:51,450 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:51,793 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:52,090 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:52,278 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:52,278 o.h.s.m.o.m.impl.IdentifierProducer [T] created
2020-03-12 14:42:52,278 o.h.s.m.o.m.i.BatchTransactionalContext [T] TransactionFactory does not require a TransactionManager: don't wrap in a JTA transaction
2020-03-12 14:42:52,278 o.h.s.m.o.m.impl.IdentifierProducer [T] started
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:52,324 o.h.s.m.o.m.impl.BatchIndexingWorkspace [D] Indexing for ClientPhysique is done
2020-03-12 14:42:52,324 o.m.i.IdentifierConsumerDocumentProducer [T] created
2020-03-12 14:42:53,606 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:53,871 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:54,027 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:54,183 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:54,355 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:54,522 o.h.s.m.o.m.impl.IdentifierProducer [T] created
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:54,522 o.h.s.m.o.m.i.BatchTransactionalContext [T] TransactionFactory does not require a TransactionManager: don't wrap in a JTA transaction
2020-03-12 14:42:54,522 o.h.s.m.o.m.impl.IdentifierProducer [T] started
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:54,522 o.h.s.m.o.m.impl.BatchIndexingWorkspace [D] Indexing for ClientMoral is done
2020-03-12 14:42:54,522 o.m.i.IdentifierConsumerDocumentProducer [T] created
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.h.s.m.o.m.impl.IdentifierProducer [T] created
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.h.s.m.o.m.i.BatchTransactionalContext [T] TransactionFactory does not require a TransactionManager: don't wrap in a JTA transaction
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,968 o.h.s.m.o.m.impl.IdentifierProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.h.s.m.o.m.impl.BatchIndexingWorkspace [D] Indexing for SousProduit is done
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] created
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.h.s.m.o.m.impl.IdentifierProducer [T] created
2020-03-12 14:42:55,983 o.h.s.m.o.m.i.BatchTransactionalContext [T] TransactionFactory does not require a TransactionManager: don't wrap in a JTA transaction
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] started
2020-03-12 14:42:55,983 o.h.s.m.o.m.impl.IdentifierProducer [T] started
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.m.i.IdentifierConsumerDocumentProducer [T] finished
2020-03-12 14:42:55,983 o.h.s.m.o.m.impl.BatchIndexingWorkspace [D] Indexing for Depot is done
2020-03-12 14:42:55,983 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientphysique-write/_flush' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,983 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientmoral-write/_flush' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,983 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/sousproduit-write/_flush' with query parameters POST and 0 objects in payload in 1ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/depot-write/_flush' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientphysique-write/_refresh' with query parameters POST and 0 objects in payload in 3ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/clientmoral-write/_refresh' with query parameters POST and 0 objects in payload in 3ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/sousproduit-write/_refresh' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.hibernate.search.elasticsearch.request [T] HSEARCH400093: Executed Elasticsearch HTTP POST request to path '/depot-write/_refresh' with query parameters POST and 0 objects in payload in 2ms. Response had status 200 'OK'. Request body: <>. Response body: <{"_shards":{"total":2,"successful":1,"failed":0}}>
2020-03-12 14:42:55,999 o.h.s.m.o.m.i.LoggingMassIndexingMonitor [I] HSEARCH000028: Reindexed 0 entities
About my session, in local i’am with an empty tenantIdentifier but when i use the session i can load my entities, so i assume the SearchSession is working the same way.
session = sessionFactory.withOptions().tenantIdentifier(crpcen).openSession();
searchSession = Search.session((EntityManager) session);
// session.get(xxx.class, 1l) => OK
And of course i was using the startAndWait()