- 授权协议: MIT
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: https://github.com/github/elastomer-client
软件介绍
Elastomer-Client 为 ElasticSearch API endpoint 提供一个一对一的映射。API 通过你想要实现的来分解为逻辑部分和访问,每一个逻辑部分代表一个客户端类。
示例代码:
require 'elastomer/client'
client = Elastomer::Client.new
index = client.index('twitter')
index.create(
:settings => { 'index.number_of_shards' => 3 },
:mappings => {
:tweet => {
:_source => { :enabled => true },
:_all => { :enabled => false },
:properties => {
:author => {
:type => 'string',
:index => 'not_analyzed' },
:tweet => { :type => 'string', :analyze => 'standard' }
}
}
}
)
index.exists?
index.exists? :type => 'tweet'index.delete
与孩子一起学编程
[美] 桑德Warren Sande、Carter Sande / 苏金国、姚曜 等 / 人民邮电出版社 / 2010-11 / 65.00元
一本老少咸宜的编程入门奇书!一册在手,你完全可以带着自己的孩子,跟随Sande父子组合在轻松的氛围中熟悉那些编程概念,如内存、循环、输入和输出、数据结构和图形用户界面等。这些知识一点儿也不高深,听起来备感亲切,书中言语幽默风趣而不失真义,让学习过程充满乐趣。细心的作者还配上了孩子们都喜欢的可爱漫画和经过运行测试的程序示例,教你用最易编写和最易理解的Python语言,写出你梦想中的游戏程序。 ......一起来看看 《与孩子一起学编程》 这本书的介绍吧!
