public AzureIndex(string name, string folder, IIndexPropertyStore propertyStore)
     : this(name.Replace("_", "-").ToLower(), folder, propertyStore, (string)null)
 {
     this.settings = ContentSearchManager.Locator.GetInstance <Sitecore.ContentSearch.Abstractions.ISettings>();
     this.factory  = ContentSearchManager.Locator.GetInstance <Sitecore.Abstractions.IFactory>();
     this.indexes  = new Dictionary <string, ISearchIndex>();
     AddIndex(this);
 }
   public AzureIndex(string name, string folder, IIndexPropertyStore propertyStore)
 : this(name.Replace("_", "-").ToLower(), folder, propertyStore, (string) null)
   {
       this.settings = ContentSearchManager.Locator.GetInstance<Sitecore.ContentSearch.Abstractions.ISettings>();
       this.factory = ContentSearchManager.Locator.GetInstance<Sitecore.Abstractions.IFactory>();
       this.indexes = new Dictionary<string, ISearchIndex>();
       AddIndex(this);
   }
 public AzureIndex(string name, string folder, IIndexPropertyStore propertyStore, string group)
 {
     Assert.ArgumentNotNullOrEmpty(name, "name");
     Assert.ArgumentNotNullOrEmpty(folder, "folder");
     Assert.ArgumentNotNull((object)propertyStore, "propertyStore");
     Name = name.Replace("_", "-").ToLower();
     //FolderName = folder;
     this.PropertyStore = propertyStore;
     this.settings      = ContentSearchManager.Locator.GetInstance <Sitecore.ContentSearch.Abstractions.ISettings>();
     this.factory       = ContentSearchManager.Locator.GetInstance <Sitecore.Abstractions.IFactory>();
     this.indexes       = new Dictionary <string, ISearchIndex>();
     AddIndex(this);
 }
 public AzureIndex(string name, IIndexPropertyStore propertyStore)
 {
     Assert.ArgumentNotNullOrEmpty(name, "name");
     Assert.ArgumentNotNull((object)propertyStore, "propertyStore");
     Name = name.Replace("_", "-").ToLower();
     this.PropertyStore = propertyStore;
     this.settings = ContentSearchManager.Locator.GetInstance<Sitecore.ContentSearch.Abstractions.ISettings>();
     this.factory = ContentSearchManager.Locator.GetInstance<Sitecore.Abstractions.IFactory>();
     this.indexes = new Dictionary<string, ISearchIndex>();
     this.Summary = new AzureIndexSummary(this);
     this.Schema = new AzureIndexSchema(this);
     AddIndex(this);
 }
        public ElasticSearchIndex(string name, IIndexPropertyStore propertyStore)
        {
            Assert.ArgumentNotNull(name, "name");

            Name          = name;
            Crawlers      = new List <IProviderCrawler>();
            Strategies    = new List <IIndexUpdateStrategy>();
            PropertyStore = propertyStore;

            //Summary property needs to be set in the constructor.
            //Don't set it in the Initialize method, as that method isn't called every time an index is instantiated.
            Summary = new ElasticSearchIndexSummary(this, Client);
        }
        public AlgoliaSearchIndexSummary(
            IAlgoliaRepository repository,
            IIndexPropertyStore propertyStore)
        {
            if (repository == null)
            {
                throw new ArgumentNullException(nameof(repository));
            }
            if (propertyStore == null)
            {
                throw new ArgumentNullException(nameof(propertyStore));
            }

            _repository    = repository;
            _propertyStore = propertyStore;
        }
 public SpatialLuceneIndex(string name, string folder, IIndexPropertyStore propertyStore) : base(name, folder, propertyStore)
 {
 }
 public SolrSearchIndexWithSpatial(string name, string core, IIndexPropertyStore propertyStore, string @group) : base(name, core, propertyStore, @group)
 {
 }
예제 #9
0
 public SSSolrSearchIndex(string name, string core, IIndexPropertyStore propertyStore) : base(name, core, propertyStore)
 {
 }
예제 #10
0
 public SwitchOnRebuildLuceneIndexWithSpatial(string name, string folder, IIndexPropertyStore propertyStore) : base(name, folder, propertyStore)
 {
 }
예제 #11
0
 /// <inheritdoc />
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Sitecore.Foundation.CloudSpatialSearch.IndexRead.Core.Provider.AzureSearchIndexWithSpatial" /> class.
 /// </summary>
 /// <param name="name">
 /// The name.
 /// </param>
 /// <param name="connectionStringName">
 /// The connection string name.
 /// </param>
 /// <param name="totalParallelServices">
 /// The total parallel services.
 /// </param>
 /// <param name="propertyStore">
 /// The property store.
 /// </param>
 public AzureSearchIndexWithSpatial(string name, string connectionStringName, string totalParallelServices, IIndexPropertyStore propertyStore) : this(name, connectionStringName, totalParallelServices, propertyStore, null)
 {
 }
 public SpatialLuceneIndex(string name, string folder, IIndexPropertyStore propertyStore): base(name, folder, propertyStore)
 {
 }
 public CustomSwitchOnRebuildSolrSearchIndex(string name, string core, string rebuildcore, IIndexPropertyStore propertyStore)
     : base(name, core, rebuildcore, propertyStore)
 {
 }
예제 #14
0
 public CloudSearchProviderSuggestionIndex(string name, string connectionStringName, string totalParallelServices, IIndexPropertyStore propertyStore)
     : base(name, connectionStringName, totalParallelServices, propertyStore)
 {
     ConnectionStringName = connectionStringName;
     indexNameProvider    = new CloudSearchProviderIndexName(ServiceCollectionClient.GetInstance <IFactoryWrapper>());// ServiceCollectionClient.GetInstance<ICloudSearchProviderIndexName>(Array.Empty<object>());
     _settings            = ServiceCollectionClient.GetInstance <Settings>();
 }
예제 #15
0
 public SwitchOnRebuildSolrSearchIndexWithSpatial(string name, string core, string rebuildcore, IIndexPropertyStore propertyStore) : base(name, core, rebuildcore, propertyStore)
 {
 }
예제 #16
0
 public SolrSearchIndex(string name, string core, IIndexPropertyStore propertyStore, string @group)
     : base(name, core, propertyStore, group)
 {
 }
 public SolrSearchIndexWithSpatial(string name, string core, IIndexPropertyStore propertyStore, string @group)
     : base(name, core, propertyStore, @group)
 {
 }
예제 #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AzureSearchIndexWithSpatial"/> class.
 /// </summary>
 /// <param name="name">
 /// The name.
 /// </param>
 /// <param name="connectionStringName">
 /// The connection string name.
 /// </param>
 /// <param name="totalParallelServices">
 /// The total parallel services.
 /// </param>
 /// <param name="propertyStore">
 /// The property store.
 /// </param>
 /// <param name="group">
 /// The group.
 /// </param>
 public AzureSearchIndexWithSpatial(string name, string connectionStringName, string totalParallelServices, IIndexPropertyStore propertyStore, string group) : base(name, connectionStringName, totalParallelServices, propertyStore, group)
 {
 }
예제 #19
0
 public LucinqIndex(string name, string folder, IIndexPropertyStore propertyStore, string rootPaths)
     : base(name, folder, propertyStore)
 {
     SetRootPaths(rootPaths);
 }