elasticsearch-railsã®ã½ã¼ã¹ã軽ãèªãã§ããããä»»æã®ãªã¯ã¨ã¹ããéããperform_requestã¨ãã便å©ã¡ã½ããããã£ãã®ã§ç´¹ä»ãã¾ãã Elasticsearch / Rails / Ruby Blog::PostãElasticsearch::Modelãincludeãã¦ããã¨ã㦠Blog::Post.__elasticsearch__.client.perform_request(:get, 'blog-posts/_count').body => {"count"=>2, "_shards"=>{"total"=>5, "successful"=>5, "failed"=>0}} ã¨ããæãã§ä»»æã®HTTPãªã¯ã¨ã¹ããéãã¾ãã Awesome Printã使ãã°çµæãè¦ããããªãã¾ãã ap Blog::Post.__elasticsearch__.
{{#tags}}- {{label}}
{{/tags}}