Skip to content
This repository was archived by the owner on Sep 29, 2018. It is now read-only.

Commit cd8bfad

Browse files
committed
debg
1 parent 6b86046 commit cd8bfad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ func (c *Config) GetIndexes(host string, idxs *Indexes) (err error) {
289289
}
290290
}
291291
}
292-
fmt.Printf("%+v\n", *idxs)
293292

294293
return
295294
}
@@ -442,6 +441,8 @@ func (c *Config) NewScroll() (scroll *Scroll, err error) {
442441
scroll = &Scroll{}
443442
err = dec.Decode(scroll)
444443

444+
fmt.Println(scroll.ScrollId)
445+
445446
return
446447
}
447448

@@ -452,7 +453,7 @@ func (s *Scroll) Next(c *Config) (done bool) {
452453
// curl -XGET 'http://es-0.9:9200/_search/scroll?scroll=5m'
453454
id := bytes.NewBufferString(s.ScrollId)
454455

455-
req, err := http.NewRequest("POST", fmt.Sprintf("%s/%s/_search/scroll?scroll=%s", c.SrcEs, c.IndexNames, c.ScrollTime), id)
456+
req, err := http.NewRequest("POST", fmt.Sprintf("%s/_search/scroll?scroll=%s", c.SrcEs, c.ScrollTime), id)
456457
if err != nil {
457458
c.ErrChan <- err
458459
}

0 commit comments

Comments
 (0)