use of ddf.catalog.source.solr.SolrFilterDelegateFactory in project ddf by codice.
the class FilteringSolrIndex method createInMemorySolrProvider.
private static SolrCatalogProvider createInMemorySolrProvider(String queryId, FilterAdapter filterAdapter, QueryRequest request) {
ConfigurationStore.getInstance().setInMemory(true);
ConfigurationStore.getInstance().setForceAutoCommit(true);
ConfigurationFileProxy configurationFileProxy = new ConfigurationFileProxy(ConfigurationStore.getInstance());
SolrFilterDelegateFactory solrFilterDelegateFactory = new SolrFilterDelegateFactoryImpl();
return new SolrCatalogProvider(createSolrServer(queryId, configurationFileProxy), filterAdapter, solrFilterDelegateFactory, new FilteringDynamicSchemaResolver(filterAdapter, solrFilterDelegateFactory, request));
}
Aggregations