|
|
@@ -8,8 +8,8 @@ import ( |
|
|
|
) |
|
|
|
|
|
|
|
func TestCreateEsIndex(t *testing.T) { |
|
|
|
es.Init("http://123.57.140.192:9200", "elastic", "fnuo123") |
|
|
|
nextWeekIndex := "egg_energy_user_egg_score_202453" |
|
|
|
es.Init("http://120.55.48.175:9200", "elastic", "fnuo123") |
|
|
|
nextWeekIndex := "egg_energy_user_egg_score_202452" |
|
|
|
for { |
|
|
|
err := es.CreateIndexIfNotExists(nextWeekIndex, md.EggEnergyUserEggScoreEsMapping) |
|
|
|
if err != nil { |
|
|
|