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

Commit

Permalink
debg
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffoo committed Jan 29, 2015
1 parent 6b86046 commit cd8bfad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ func (c *Config) GetIndexes(host string, idxs *Indexes) (err error) {
}
}
}
fmt.Printf("%+v\n", *idxs)

return
}
Expand Down Expand Up @@ -442,6 +441,8 @@ func (c *Config) NewScroll() (scroll *Scroll, err error) {
scroll = &Scroll{}
err = dec.Decode(scroll)

fmt.Println(scroll.ScrollId)

return
}

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

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

0 comments on commit cd8bfad

Please sign in to comment.