A more sensible null check
Remove usages of deprecated SearchManager.getQueryFactory()
ISPN-4464 Unify test suite for remote and embedded DSL based query tests

Remote and embedded DSL query tests share the domain model. The model defines interfaces
that are implemented using Hibernate Search anontated entities for embedded mode and
Protobuf entities for remote mode. The test driver code is shared between embedded
and remote tests.
ISPN-4510 Enable configuring Transport instance via new XML parser
ISPN-4562 Upgrade to Hibernate Search 5.0.0.Alpha5
Change ReplicatedCHFactory to only replace leavers in updateMembers()

Uneven primary ownership should be dealt with in rebalance() only.
Delegate the isBalanced() check in DefaultRebalancePolicy to the CH factory

Allows waitForRehashToComplete() to work even if the CH factory allocated
less than numOwners owners to each segment.