Search in sources :

Example 1 with SolrFilterDelegateFactory

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));
}
Also used : SolrCatalogProvider(ddf.catalog.source.solr.SolrCatalogProvider) SolrFilterDelegateFactoryImpl(ddf.catalog.source.solr.SolrFilterDelegateFactoryImpl) SolrFilterDelegateFactory(ddf.catalog.source.solr.SolrFilterDelegateFactory) ConfigurationFileProxy(org.codice.solr.factory.impl.ConfigurationFileProxy)

Aggregations

SolrCatalogProvider (ddf.catalog.source.solr.SolrCatalogProvider)1 SolrFilterDelegateFactory (ddf.catalog.source.solr.SolrFilterDelegateFactory)1 SolrFilterDelegateFactoryImpl (ddf.catalog.source.solr.SolrFilterDelegateFactoryImpl)1 ConfigurationFileProxy (org.codice.solr.factory.impl.ConfigurationFileProxy)1