Currently, Hibernate Search store all the entities in the index without keeping track of the tenant. These has some conseguences: 1) Calling session.purgeAll(Example.class) will purge all the entry for Example.class without considering the tenant 2) A Lucene query will be executed on all the documents in the index, leading to results that are not in the database of the tenant we are considerin or that don't simply match the query.
|