Elasticsearch 的交互库 Elastomer-Client

码农软件 · 软件分类 · 常用工具包 · 2019-08-17 20:14:45

软件介绍

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

本文地址:https://www.codercto.com/soft/d/12589.html

搜索引擎

搜索引擎

李晓明 / 科学出版社发行部 / 2005-4 / 33.00元

《搜索引擎:原理技术与系统》系统地介绍了互联网搜索引擎的工作原理、实现技术及其系统构建方案。《搜索引擎:原理技术与系统》分三篇共13章内容,从基本工作原理概述,到一个小型简单搜索引擎具体细节的实现,进而详细讨论了大规模分布式搜索引擎系统的设计要点及其关键技术;最后介绍了面向主题和个性化的web信息服务,阐述了中文网页自动分类等技术及其应用。《搜索引擎:原理技术与系统》层次分明,由浅入深;既有深入的......一起来看看 《搜索引擎》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具