Пример #1
0
        public LinqToSolrIndex(Sitecore.ContentSearch.SolrProvider.SolrSearchContext context, IExecutionContext[] executionContexts)
            : base(context, executionContexts)
        {
            var solrIndexConfiguration = (SolrIndexConfiguration)context.Index.Configuration;
            var parameters             = new SolrIndexParameters(solrIndexConfiguration.IndexFieldStorageValueFormatter, solrIndexConfiguration.VirtualFields, context.Index.FieldNameTranslator, executionContexts, solrIndexConfiguration.FieldMap);

            this.QueryMapper    = new Sitecore.Spatial.GeoJson.Providers.Solr.SolrQueryMapper(parameters);
            this.queryOptimizer = new Sitecore.ContentSearch.Linq.Solr.SolrQueryOptimizer();
        }
Пример #2
0
 public LinqToSolrIndex(Sitecore.ContentSearch.SolrProvider.SolrSearchContext context, IExecutionContext executionContext)
     : base(context, executionContext)
 {
 }