Пример #1
0
        public ESIndex(ElasicStorage storage, string index)
        {
            this.index = index;
            var node     = new Uri(storage.ConnectionSettings.NodeUrl);
            var settings = new ConnectionSettings(node).DefaultIndex(index);

            this.client = new ElasticClient(settings);

            if (!this.IndexExists())
            {
                this.CreateIndex();
            }
        }
Пример #2
0
 public OfferIndex(ElasicStorage storage)
     : base(storage, Index)
 {
 }
Пример #3
0
 public EmployeeIndex(ElasicStorage storage)
     : base(storage, Index)
 {
 }