{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/98","labels_url":"https://api.github.com/repos/olivere/elastic/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/98/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/98/events","html_url":"https://github.com/olivere/elastic/issues/98","id":94288075,"number":98,"title":"failed get value json","user":{"login":"tommoholmes","id":12724592,"avatar_url":"https://avatars.githubusercontent.com/u/12724592?v=3","gravatar_id":"","url":"https://api.github.com/users/tommoholmes","html_url":"https://github.com/tommoholmes","followers_url":"https://api.github.com/users/tommoholmes/followers","following_url":"https://api.github.com/users/tommoholmes/following{/other_user}","gists_url":"https://api.github.com/users/tommoholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/tommoholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommoholmes/subscriptions","organizations_url":"https://api.github.com/users/tommoholmes/orgs","repos_url":"https://api.github.com/users/tommoholmes/repos","events_url":"https://api.github.com/users/tommoholmes/events{/privacy}","received_events_url":"https://api.github.com/users/tommoholmes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-10T11:20:45Z","updated_at":"2015-07-10T12:30:22Z","closed_at":null,"body":"its my code:\r\n```\r\n    termQuery := elastic.NewTermQuery(\"title\", \"Asus\")\r\n    searchResult, err := client.Search().\r\n    Index(\"twitter\").  \r\n    Query(&termQuery).  \r\n    Sort(\"title\", true). \r\n    From(0).Size(10).   \r\n    Pretty(true).       \r\n    Do()                \r\n    if err != nil {\r\n        panic(err)\r\n    }\r\n    fmt.Printf(\"Query took %d milliseconds\\n\", searchResult.TookInMillis)\r\n    var ttyp Tweet\r\n    for _, item := range searchResult.Each(reflect.TypeOf(ttyp)) {\r\n        if t, ok := item.(Tweet); ok {\r\n            fmt.Printf(\"Tweet by %s: %s\\n\", t.Price, t.Title)\r\n        }\r\n    }\r\n    fmt.Printf(\"a Found a total of %d tweets\\n\", searchResult.TotalHits())\r\n    if searchResult.Hits != nil {\r\n        fmt.Printf(\"a Found a total of %d tweets\\n\", searchResult.Hits.TotalHits)\r\n        for _, hit := range searchResult.Hits.Hits {\r\n            var t Tweet\r\n            err := json.Unmarshal(*hit.Source, &t)\r\n            if err != nil {\r\n            }\r\n            fmt.Printf(\"Tweet by %s: %s\\n\", t.Price, t.Title)\r\n        }\r\n    } else {\r\n        fmt.Print(\"Found no tweets\\n\")\r\n    }\r\n```\r\nand here my Struct\r\n```\r\ntype Tweet struct {\r\n  Image     string               `json:\"image\"`\r\n  Desc     string               `json:\"description\"`\r\n  Title     string               `json:\"title\"`\r\n  Price     string                `json:\"price\"`\r\n  Suggest  *elastic.SuggestField `json:\"suggest_field,omitempty\"`\r\n}\r\n```\r\nwhen i run with \r\n``` go run elastic.go\r\nthis result only get\r\n```\r\nQuery took 2 milliseconds\r\na Found a total of 0 tweets\r\na Found a total of 0 tweets"},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/120399355","html_url":"https://github.com/olivere/elastic/issues/98#issuecomment-120399355","issue_url":"https://api.github.com/repos/olivere/elastic/issues/98","id":120399355,"user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T12:30:22Z","updated_at":"2015-07-10T12:30:22Z","body":"Hi there... it's `-XGET` not `-XPOST` ...\r\n\r\n"}}