{"published":"2013-08-28 16:26:36","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabiy3104.hateblo.jp%2Fentry%2F2013%2F08%2F28%2F162636\" title=\"Rails - sunspot \u3067\u5168\u6587\u691c\u7d22\u3092\u3059\u308b(2) - \u305d\u3046\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u3093\u3067\u3059\u306d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://babiy3104.hateblo.jp/","width":"100%","provider_name":"Hatena Blog","author_name":"babiy3104","author_url":"https://blog.hatena.ne.jp/babiy3104/","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/b/babiy3104/20130828/20130828162523.png","height":"190","blog_title":"\u305d\u3046\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u3093\u3067\u3059\u306d","type":"rich","url":"https://babiy3104.hateblo.jp/entry/2013/08/28/162636","provider_url":"https://hatena.blog","version":"1.0","categories":["Rails","\u691c\u7d22"],"title":"Rails - sunspot \u3067\u5168\u6587\u691c\u7d22\u3092\u3059\u308b(2)","description":"Rails - sunspot \u3067\u5168\u6587\u691c\u7d22\u3092\u3059\u308b(1) - \u305d\u3046\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u3093\u3067\u3059\u306d \u306e\u7d9a\u304d\u3067\u3059\u3002 each_hit_with_result \u3092\u4f7f\u3046 \u30d6\u30ed\u30c3\u30af\u5f15\u6570\u3068\u3057\u3066 hit, result \u306e2\u3064\u6e21\u3055\u308c\u307e\u3059\u3002 result \u306f\u691c\u7d22\u5bfe\u8c61\u30e2\u30c7\u30eb\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8fd4\u308b\u305f\u3081\u5c5e\u6027\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002 @search.each_hit_with_result do |hit,result| puts hit.primary_key # \u4e3b\u30ad\u30fc\u306b\u30a2\u30af\u30bb\u30b9 puts result.title # \u5c5e\u6027\u306b\u30a2\u30af\u30bb\u30b9 puts result.created_at # \u4f5c\u6210\u65e5\u306b\u30a2\u30af\u30bb\u30b9 end"}