Explorar el Código

update

master
shenjiachi hace 1 día
padre
commit
94983d8468
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. +1
    -1
      app/svc/egg_energy/svc_egg_energy.go
  2. +2
    -2
      app/task/svc/svc_egg_energy_automatic_scoring_test.go

+ 1
- 1
app/svc/egg_energy/svc_egg_energy.go Ver fichero

@@ -91,7 +91,7 @@ func QueryElasticsearch(req md2.UserEggFlowReq, indexName string) (resp []md2.Us
if err != nil {
return
}
doc.IndexId = hit.Index
doc.IndexId = hit.Id
resp = append(resp, doc)
}
total = searchResult.Hits.TotalHits.Value


+ 2
- 2
app/task/svc/svc_egg_energy_automatic_scoring_test.go Ver fichero

@@ -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 {


Cargando…
Cancelar
Guardar