Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
cclient committed Jan 29, 2016
1 parent 8281fc4 commit 8a3a9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {
c.Domain = *eshost
response, _ := c.Index("twitter", "tweet", "1", nil, NewTweet("kimchy", "Search is cool"))
c.Flush()
log.Printf("Index OK: %v", response.Created)
log.Printf("Index OK: %v", response.Ok)
searchresponse, err := c.Search("twitter", "tweet", nil, "{\"query\" : {\"term\" : { \"user\" : \"kimchy\" }}}")
if err != nil {
log.Println("error during search:" + err.Error())
Expand Down

0 comments on commit 8a3a9a3

Please sign in to comment.