-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Gelb
committed
Jun 20, 2019
1 parent
f6d4603
commit c97cf31
Showing
6 changed files
with
108 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Nest; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ElasticSearchManager { | ||
public class ElasticAlias: CatAliasesRecord { | ||
|
||
public static List<ElasticAlias> ToList(ICatResponse<CatAliasesRecord> aliasesRecords) { | ||
var lst = new List<ElasticAlias>(); | ||
|
||
foreach (var item in aliasesRecords.Records) { | ||
|
||
ElasticAlias ea = AutoMapper.Mapper.Map<ElasticAlias>(item); | ||
lst.Add(ea); | ||
} | ||
|
||
return lst; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Nest; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ElasticSearchManager { | ||
public class ElasticIndex : CatIndicesRecord { | ||
|
||
public string Alias { get; set; } | ||
|
||
public static List<ElasticIndex> ToList(ICatResponse<CatIndicesRecord> indexRecords) { | ||
var lst = new List<ElasticIndex>(); | ||
|
||
foreach (var item in indexRecords.Records) { | ||
|
||
ElasticIndex ea = AutoMapper.Mapper.Map<ElasticIndex>(item); | ||
lst.Add(ea); | ||
} | ||
|
||
return lst; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters