}
fillSimilarityMapping();
//update backend
//TODO make sure the old IndexManagers and backends are disposed - not currently a problem as we only support adding entities incrementally
SearchFactoryImplementorWithShareableState factory = new ImmutableSearchFactory( factoryState );
factoryState.setActiveSearchFactory( factory );
rootFactory.setDelegate( factory );
return rootFactory;
}