Browse Source

update

master
shenjiachi 17 hours ago
parent
commit
94983d8468
2 changed files with 3 additions and 3 deletions
  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 View File

@@ -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 View File

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


Loading…
Cancel
Save