factoryState.setCacheBitResultsSize(
ConfigurationParseHelper.getIntValue(
cfg.getProperties(), Environment.CACHE_DOCIDRESULTS_SIZE, CachingWrapperFilter.DEFAULT_SIZE
)
);
SearchFactoryImplementorWithShareableState factory = new ImmutableSearchFactory( factoryState );
factoryState.setActiveSearchFactory( factory );
rootFactory.setDelegate( factory );
return rootFactory;
}