{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

ElasticSearch 可扩展的开源弹性搜索解决方案

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

ElasticSearch 可扩展的开源弹性搜索解决方案

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

ElasticSearch是一个基于ApacheLucene构建的开源搜索服务器。它提供了一个可扩展的搜索解决方案,内置支持近实时搜索和多租户。
《ElasticSearch 可扩展的开源弹性搜索解决方案》将教你如何构建一个快速、灵活、可扩展的搜索解决方案,通过建立自定义集群进入ElasticSearch的世界。通过学习数据索引和分析,你将掌握ElasticSearch的强大功能,包括如何搜索数据、如何扩大搜索范围,以及如何进行集群管理。
从建立自己的ElasticSearch集群开始,然后进行搜索并扩展搜索参数,你就可以创建一个完全自定义的搜索解决方案。在此基础上,你将进一步地学习ElasticSearch的查询API,以及如何使用强大的过滤和统计功能。在ElasticSearch旅程最后总结的一些章节,帮助读者控制和调整集群,学习分片分配、网关模式配置等知识。
《ElasticSearch 可扩展的开源弹性搜索解决方案》是为希望利用ElasticSearch创建一个快速、灵活的搜索解决方案的开发者而撰写的。如果你正试图学习ElasticSearch或者希望变得更加精通,本书也同样适合。开始学习本书时你不需要知道关于ElasticSearch的任何知识,但知道一些数据库和查询的基本知识是必需的。
你将从本书学到
配置和创建一个ElasticSearch索引
使用ElasticSearch查询DSL进行各种查询
在不损失性能的情况下高效和精确地使用过滤器
实现自动补全功能
高亮数据和地理信息搜索以得到更好的结果
理解ElasticSearch如何返回结果及如何验证这些结果
使用统计和相似功能从搜索中获得更多,并提升客户的搜索体验
使用ElasticSearchAPI和第三方监控方案监控集群状态与集群健康状况

Content Description

《ElasticSearch 可扩展的开源弹性搜索解决方案》基于ElasticSearch的0.2版本,覆盖了ElasticSearch各种功能和命令的应用,全面、详细地介绍了开源、分布式、RESTful,具有全文检索功能的搜索引擎ElasticSearch。
《ElasticSearch 可扩展的开源弹性搜索解决方案》前两章着重介绍了ElasticSearch的基本功能和用法,包括ElasticSearch的安装和配置、REST API的使用方法,以及怎样使用Query DSL语句进行查询、过滤、排序等。接下来的4章是对ElasticSearch基本功能的扩展,主要介绍了如何使用统计功能来计算查询返回结果的聚集数据、如何实现自动补全功能、如何使用ElasticSearch的空间数据处理能力,以及如何使用预期搜索功能等。第7章介绍了ElasticSearch管理API的能力,如控制分片部署位置、操纵集群等功能。在第8章将学习到如何处理使用ElasticSearch过程中可能遇到的常见问题。
《ElasticSearch 可扩展的开源弹性搜索解决方案》内容丰富、全面,基本概念的讲解细致、深入浅出。各种功能和命令的介绍,都配以实践操作和详细的代码。
Author Description

柳厅文,中科院的博士研究生,英语较好,有着丰富的翻译经验。中科院的博士研究生,英语较好,有着丰富的翻译经验。
Comments

★ElasticSearch很好入门!毫无疑问,我们终于迎来这本史上很好的ElasticSearch入门图书。对比ElasticSearch可轻松带来的几千美金级别的便利和受益,买这本书和阅读这本书的代价实在微不足道。它可以教会你更多关于ElasticSearch的知识,而这是你即使花几十个小时在网上搜索,或看那些烂教程所不可比拟的。这本书内容组织的妙味在于,不管你是逐页阅读全书,还是在需要做具体事情时加以参考,这本书都同样适合。
——David

★ES领域的首部杰作!最重要的莫过于这是ElasticSearch一本也是一本图书,而ES官网上的文档实在烂。这本书超级易读,完整了覆盖了ES的方方面面,包括安装、配置以及RESTAPI。这本书内容组织完善,各章之间的衔接非常顺畅。作者本人对ES的每一话题都给予足够关注,比如索引、搜索、高级搜索及其他。读者还可以再作者博客上不断看到关于ES版本升级后本书的内容更新。
——BhaskarK

Catalogue

第1章ElasticSearch集群入门
1.1什么是ElasticSearch
1.1.1索引
1.1.2文档
1.1.3文档类型
1.1.4节点和集群
1.1.5分片
1.1.6副本
1.2安装和配置ElasticSearch集群
1.3目录结构
1.4配置ElasticSearch
1.5运行ElasticSearch
1.6关闭ElasticSearch
1.7作为系统服务运行ElasticSearch
1.8基于REST API的数据操作
1.8.1什么是REST
1.8.2在ElasticSearch中存储数据
1.8.3创建新文档
1.8.4检索文档
1.8.5更新文档
1.8.6删除文档
1.9手工创建索引与配置映射
1.9.1索引
1.9.2文档类型
1.9.3索引操作
1.9.4模式映射
1.10动态映射和模板
1.10.1类型确定机制
1.10.2动态映射
1.10.3模板
1.11路由选择的重要性
1.11.1如何进行索引
1.11.2搜索是如何工作的
1.11.3路由选择
1.11.4routing参数
1.11.5_routing字段
1.12索引别名及其用途
1.12.1别名的定义
1.12.2创建别名
1.12.3修改别名
1.12.4两种命令的组合
1.12.5获得所有的别名
1.12.6过滤别名
1.12.7别名和路由选择
1.13本章小结

第2章搜索数据
2.1查询和索引的过程
2.2本章案例使用的映射
2.3查询ElasticSearch
2.3.1简单查询
2.3.2分页和结果规模
2.3.3返回版本号
2.3.4限制结果分数
2.3.5指定返回字段
2.3.6使用script_fields
2.3.7选择合适的搜索类型(高级选项)
2.3.8指定搜索执行的位置(高级选项)
2.4基本查询
2.4.1term查询
2.4.2terms查询
2.4.3match查询
2.4.4multi_match查询
2.4.5query_string查询
2.4.6field查询
2.4.7ids查询
2.4.8prefix查询
2.4.9fuzzy_like_this查询
2.4.10fuzzy_like_this_field查询
2.4.11fuzzy查询
2.4.12match_all查询
2.4.13wildcard查询
2.4.14more_like_this查询
2.4.15more_like_this_field查询
2.4.16range查询
2.4.17查询重写
2.5过滤查询结果
2.5.1使用过滤器
2.5.2range过滤器
2.5.3exists过滤器
2.5.4missing过滤器
2.5.5script过滤器
2.5.6type过滤器
2.5.7limit过滤器
2.5.8ids过滤器
2.5.9其他功能
2.5.10bool、and、or和not过滤器
2.5.11过滤器的命名
2.5.12过滤器的缓存
2.6复合查询
2.6.1bool查询
2.6.2boosting查询
2.6.3constant_score查询
2.6.4indices查询
2.6.5custom_filters_score查询
2.6.6custom_boost_factor查询
2.6.7custom_score查询
2.7数据排序
2.7.1默认排序
2.7.2选择用于排序的字段
2.7.3指定缺失字段的行为
2.7.4动态标准
2.7.5排序归类和不同国家的字符
2.8使用脚本
2.8.1脚本中可用的对象
2.8.2MVEL
2.8.3其他语言
2.8.4脚本库
2.8.5本地代码
2.9本章小结

第3章扩展结构与搜索
3.1索引非平面数据
3.1.1数据
3.1.2对象
3.1.3数组
3.1.4映射
3.1.5开启还是关闭动态映射
3.1.6向ElasticSearch发送映射文件
3.2利用额外的内部信息扩展索引结构
3.2.1标识符字段
3.2.2_type字段
3.2.3_all字段
3.2.4_source字段
3.2.5_boost字段
3.2.6_index字段
3.2.7_size字段
3.2.8_timestamp字段
3.2.9_ttl字段
3.3高亮
3.3.1高亮功能入门
3.3.2字段配置
3.3.3底层实现
3.3.4配置HTML标签
3.3.5控制高亮片段
3.3.6全局与局部设置
3.3.7仅显示匹配字段
3.4自动补全
3.4.1prefix查询
3.4.2edgeNGram
3.4.3统计
3.5处理文件
3.6地理信息
3.6.1为空间搜索准备映射
3.6.2示例数据
3.6.3示例查询
3.6.4geo_bounding_box过滤器
3.6.5限定距离
3.7本章小结

第4章搜索优化
4.1为什么文档被检索到
4.1.1理解字段分析过程
4.1.2解释查询
4.2用加权查询影响得分
4.2.1什么是权值(boost)
4.2.2在查询中使用权值
4.2.3修改打分
4.3什么时候索引时加权有意义
4.3.1在输入数据中定义字段加权
4.3.2在输入数据中对文档加权
4.3.3在映射中定义加权
4.4具有相同含义的词
4.4.1同义词(synonym)过滤器
4.4.2定义同义词规则
4.4.3查询时或索引时同义词扩展
4.5搜索不同语言的内容
4.5.1为什么我们需要对语言区分处理
4.5.2如何处理多种语言
4.5.3检测文档的语言
4.5.4示例文档
4.5.5映射
4.5.6查询
4.6使用跨度查询
4.6.1什么是跨度
4.6.2span_term查询
4.6.3span_first查询
4.6.4span_near查询
4.6.5span_or查询
4.6.6span_not查询
4.6.7性能考虑
4.7本章小结

第5章组合索引、分析和搜索
5.1索引树形结构
5.2利用更新API修改索引结构
5.2.1映射
5.2.2添加一个新字段
5.2.3修改字段
5.3使用嵌套对象
5.4使用父子关系
5.4.1映射和索引
5.4.2查询
5.4.3父子关系和过滤
5.4.4性能考虑
5.5从其他系统获取数据:river
5.5.1我们需要什么和river是什么
5.5.2安装和配置river
5.6批量索引以加快索引过程
5.6.1如何准备数据
5.6.2索引数据
5.6.3是否有可能更快
5.7本章小结

第6章搜索之外
6.1统计
6.1.1文档结构
6.1.2返回结果
6.1.3query统计
6.1.4filter统计
6.1.5terms统计
6.1.6range统计
6.1.7histogram统计
6.1.8statistical统计
6.1.9terms_stats统计
6.1.10geo_distance统计
6.1.11过滤统计结果
6.1.12统计计算范围
6.1.13统计计算的内存考虑
6.2相似(More Like This)
6.2.1示例数据
6.2.2发现相似文档
6.3反查
6.3.1准备反查器
6.3.2深入学习
6.4 本章小结

第7章管理集群
7.1监控集群状态与健康状况
7.1.1集群健康API
7.1.2索引统计API
7.1.3状态API
7.1.4节点信息API
7.1.5节点状态API
7.1.6集群状态API
7.1.7索引分段API
7.2控制分片和副本的分配
7.2.1显式控制分配
7.2.2集群范围内分配
7.2.3每个节点上的分片和副本数量
7.2.4手动移动分片和副本
7.3实例和集群状态诊断工具
7.3.1Bigdesk插件
7.3.2elasticsearch-head插件
7.3.3elasticsearch-paramedic插件
7.3.4SPM工具
7.4ElasticSearch时光机
7.4.1网关模块
7.4.2恢复控制
7.5节点探索
7.5.1探索类型
7.5.2主节点
7.5.3设置集群名称
7.5.4配置多播
7.5.5配置单播
7.5.6节点ping设置
7.6ElasticSearch插件
7.6.1安装插件
7.6.2删除插件
7.6.3插件类型
7.7本章小结

第8章问题处理
8.1为什么靠后页面中的结果会比较慢
8.1.1问题是什么
8.1.2滚动(scrolling)机制来救急
8.2控制集群再平衡
8.2.1什么是再平衡
8.2.2集群何时准备就绪
8.2.3集群再平衡设置
8.3验证查询
8.4预热(warming up)
8.4.1定义一个新的预热查询
8.4.2获取已定义的预热查询
8.4.3删除一个预热查询
8.4.4关闭预热功能
8.4.5如何选择预热查询
8.5本章小结



Introduction

推荐序
Cool,这是国内第一本介绍ElasticSearch的书!
电子工业出版社邀请我来为这本书作序,非常荣幸也非常惭愧。本人最近2年掉“创业坑”里面不能自拔,每天忙碌于各种琐事,为ElasticSearch社区所做贡献实在不多。
在讨论组中,经常有人跟我抱怨:ElasticSearch的中文资料实在是太少了,官方的文档不完整。还有很多人说英文的文档看起来太费劲了。我曾经尝试将官方的guide翻译成中文,但无奈工作繁忙且精力有限,翻译了几个章节,然后就没有然后了。本书的出版,对于广大ElasticSearch爱好者来说绝对是一个喜讯,相信本书的出版对于ElasticSearch的进一步普及也会带来很好的帮助。
这本书非常适合初学者阅读和参考。作者先从介绍常用API的使用开始,由浅入深,随着后面的不断深入,不仅详细介绍了ElasticSearch的各种搜索特性和查询语法(ElasticSearch真的很强大啊),而且对性能优化和集群管理也做了很多细致的介绍。书中不仅介绍了在使用ElasticSearch过程中可能会遇到的各种问题及相对应的解决办法,更难能可贵的是还给出了出现这些问题的原因及其背后的原理。相信就算是对搜索及ElasticSearch有过一定了解的同学也能在这本书里面学到很多东西。
本人接触ElasticSearch不多不少也有4个年头了,亲眼见证了这个产品的飞速发展。ElasticSearch已经从最初的分布式搜索引擎发展成为如今大数据时代下杰出的实时数据分析的解决方案。ElasticSearch旗下的产品线也在不断地丰富、完善,越来越多的公司和个人都开始考虑使用ElasticSearch作为其用于搭建企业搜索和数据分析工具的首选。可以说ElasticSearch的前景一片光明。而我本人对于ElasticSearch的作者ShayBanon也是非常敬佩的。我接触ElasticSearch比较早,那个时候ElasticSearch还刚release没多久,遇到使用上的各种问题都能在IRC聊天室或者邮件组里面很快得到Shay的飞速响应和耐心解答。另外,ElasticSearch的很多设计理念现在看来都是很先进的并且还在一直不断地进步,真心很“赞”。
这本书针对ElasticSearch的版本是0.20.2。无奈ElasticSearch版本更新太快,尤其是1.0以后,ElasticSearch推出了很多新的功能,如aggregation、snapshot等,但也有一些旧功能的废除,甚至还有一些API的变动。这些在本书中可能都没有涉及;不过不要紧,版本变化不可避免,书也很难做到同步,有问题多去社区交流就好了。:)
Medcl,ElasticSearch中文社区发起人,目前在医树网负责后端及运维工作
译者序
大数据时代已经到来,数据规模正在以前所未有的速度迅速增长。Lucene是许多互联网公司的标准搜索引擎,但无法在一个合理的时间内存储和检索如此海量的数据,因而不适合大数据和云计算环境。计算机体系结构在数据存储和搜索方面要求具备强大的水平扩展性,而ElasticSearch致力于改变这一现状。ElasticSearch因其自身快速、灵活和可扩展的特点在大数据时代得到了迅速的发展。开发的软件只要换上新一代的搜索引擎搜索数据,即可获得性能上的突飞猛进。ElasticSearch提供了非常优秀的可扩展框架,以支持大数据程序设计的需求。
ElasticSearch是一个基于Lucene内核构建的,具有开源、分布式、RESTful等特点的搜索引擎,能够实时搜索,稳定并且可靠。本书全面丰富地介绍了ElasticSearch搜索引擎。无论你是需要全文搜索、结构化数据的实时统计,还是两者的结合,本书都会帮助你了解其中最基本的概念,从最基本的操作开始学习。然后,逐渐开始探索更加复杂的高级功能,如过滤、统计、高亮、反查等。
本书特色鲜明,作者在介绍ElasticSearch时,仿佛是在跟朋友谈论家常,娓娓道来,基本概念的讲解细致、深入浅出。各种功能和命令的介绍,都配以实践操作和详细的代码,把ElasticSearch的魅力展现得淋漓尽致。
本书的翻译工作经过精心的组织,整个过程得到大批专业人士的帮助。在交付出版社之前,译者团队经过全书的讨论、初译、初核、再译、再核,审校等6个环节。其中,柳厅文和时金桥分别负责第1~2章和第3章的翻译,对保证本书的翻译质量起到了重要作用;张浩亮翻译了第4~5章;徐菲翻译了第6~8章。特别感谢郭莉主任,她应邀审校了全部译文,提出了很多中肯的改进意见。本书在交到出版社之后,又得到电子工业出版社的大力帮助,他们的工作专业而细致,让人敬佩。另外,还要感谢西安交通大学的李烨同学、电子科技大学的李全刚同学、中国科学院信息工程研究所的亚静同学等,他们参与了本书部分内容的翻译、整理,以及本书代码的实验验证。如果没有这么多人的辛勤奉献,这本中译本很难如期呈现。
由于本书涉及面广,很多术语较新,且目前尚无固定译法,因此翻译难度很大。有时,为一个术语选择一个恰当的中文译法,译者经常反复推敲、讨论。但由于译者水平有限,译文中难免存在一些问题,真诚地希望读者朋友们将自己的一些意见或建议发往elasticsearch-server@163.com。
关于作者
RafałKuć是一位天生的团队领导者和软件开发者。他现在在SematextGroup公司做顾问和软件工程师,专注于开源技术,如ApacheLucene与Solr、ElasticSearch及Hadoop软件堆栈。从银行软件到电子商务产品,他在不同的软件公司有超过11年的从业经历。他主要专注于Java,但是对任何有助于简单、快速达到目标的工具或程序设计语言都保持开放态度。Rafał还是solr.pl网站的创始人之一,在这里他试图和大家分享知识,帮助大家解决有关Solr和Lucene的问题。他还在世界各地的各种会议上做讲者,例如LuceneEurocon、BerlinBuzzwords及ApacheCon。
Rafał从2002年起开启了他的Lucene之旅,但那时他并非对Lucene一见钟情。当他在2003年年底回到Lucene时,他改变了关于此框架的想法,看到了其在搜索技术方面的潜力。后来Solr出现了,事情就是这样的。在2010年中,他开始使用ElasticSearch。如今,Lucene、Solr、ElasticSearch和信息检索是他的主要兴趣所在。
Rafał还是ApacheSolr3.1Cookbook一书的作者,其升级版本ApacheSolr4Cookbook由PacktPublishing公司出版。
致谢
来自RafałKuć的致谢
你拿到的这本书对我来说是一个新的体验,尽管这并不是我写过的第一本书。当我们开始写作时,认为自己能够把所有我们想要的功能都写出来,但是在那个时候我们没有估计到ElasticSearch有多大、写作需要多少时间。最后,我们不得不对主题进行挑选,希望我们的选择是明智的,希望你能够发现本书对你的工作有所帮助。当我在描述一个功能时,我试图像我希望自己能够读到的那样把它写出来,所以我希望你能感到这些描述是有用的,是令人感兴趣的。
尽管把时钟拨回,我还是会这样做;但是写作本书的那段时间对我的家庭来说并不简单,尤其是这并不是我在那个时候唯一写作的书。在那个时候ApacheSolr4Cookbook一书也在更新。对此受苦最深的是我的夫人Agnes以及我们的两个可爱的孩子,我们的儿子Philip和我们的女儿Susanna。如果没有他们的耐心和理解,我是不可能写作此书的。同时,我也要感谢我的父母和Agnes的父母,感谢他们的支持和帮助。
我希望对所有参与到创建、发展以及维护ElasticSearch和Lucene项目的人表示感谢,感谢他们的工作和激情。没有他们,本书不可能写出来。
最后,我要给所有本书的编审人员一个大大的感谢。至少从我的角度来看,他们有益的建议和深刻见解使得本书变得更好。
再一次,感谢你们!
MarekRogoziński是一位拥有10年以上经验的软件架构师与顾问。他专攻基于开源项目的解决方案,如Solr和ElasticSearch。
他也是solr.pl网站的共同创始人之一,并在网站上发表有关Solr和Lucene库的信息和教程。
目前,他拥有Smartupz公司的CTO职位,这家公司是Discourse社交协作软件的生产商。
来自MarekRogoziński的致谢
这本书的写作是很辛苦的工作,但也是一个尝试新事物的好机会。看到随着时间的增长,越来越多的内容被创作出来,我也感受到ElasticSearch的内容是多么丰富,在有限的内容中描述出它的功能是多么困难。我希望在本书中选中的主题是最重要、最令人感兴趣的。
最大的感谢是给所有参与到Lucene和ElasticSearch开发的人们的。这真是一项伟大的工作。
我还想感谢此书的工作团队。我们顺利、迅速地完成了所有的筹备工作,这给我留下了深刻的印象。对于本书的编审,我要给他们特别的感谢,他们给我们提出了一长串的意见和建议。
最后也是最重要的,感谢我所有的朋友,那些劝我写书的朋友和那些本作品对他们来说是大大惊喜的朋友。
关于编审人员
RavindraBharathi在软件行业工作已经超过10年,涉及不同的领域,如教育、数字媒体营销/广告、商业搜索及能源管理系统。他对搜索类应用有浓厚的兴趣,包括数据可视化、Mashup及仪表盘。他的博客地址是https://ravindrabharathi.blogspot.com。
MatthewLeeHinman目前在为高可用系统及基于云的系统开发分布式归档系统,开发语言包括Clojure和Java。他乐于为开源软件做出贡献,喜欢花时间进行户外徒步。
MarceloOchoa在布宜诺斯艾利斯省中央国立大学(UniversidadNacionaldelCentrodelaProvinciadeBuenosAires)理学院(FacultaddeCienciasExactas)的系统实验室工作。他是Scotas.com(一家专注于使用ApacheSolr和Oracle提供近实时搜索解决方案的公司)的CTO。他同时承担大学的教学工作及与Oracle和大数据技术相关的外部项目。他曾经参与了多个Oracle相关项目,如Oracle手册和多媒体CBT的翻译。他拥有数据库、网络、Web和Java技术背景。在XML领域中,他以作为很多个项目的开发者而著称,包括ApacheCocoon项目的DBGenerator、开源项目DBPrism和DBPrismCMS、使用OracleJVMDirectory实现的Lucene-Oracle集成,以及在Restlet.org项目中的OracleXDBRestletAdapter(一种在数据库驻留JVM中实现本地RESTWeb服务的替代方法)。
从2006年起,他成为OracleACE项目(OracleACEProgram)的一员。“OracleACE”以其作为Oracle社区中的技术狂热者与倡导者而著称,其候选人由OracleTechnologyandApplications委员会中的ACE专家们提名。
他是OracleDatabaseProgrammingusingJavaandWebServices(KuassiMensah,DigitalPress)一书中第17章的作者,也是ProfessionalXMLDatabases(KevinWilliams,WroxPress)一书中第21章的作者。
前言
欢迎阅读本书。在读本书时,你将被一路带入一个奇妙的世界—有关ElasticSearch企业搜索服务器提供的全文搜索服务的世界。我们将从对ElasticSearch的总体介绍开始,具体介绍覆盖了启动与运行ElasticSearch及如何使用配置文件和RESTAPI对其进行配置等内容。你还将学到如何创建索引结构并提交给ElasticSearch、如何为字段配置不同的分析器,以及如何使用内置数据类型。
在本书中还将讨论查询语言,即所谓的QueryDSL,它允许用户创建复杂的查询并对返回结果进行过滤。除了上面提到的内容,你还将看到如何使用统计功能来计算查询返回结果的聚集数据。我们还将实现自动补全功能,学会使用ElasticSearch的空间数据处理能力及预期搜索功能。
最后,本书还将向你展示ElasticSearch管理API的能力,如控制分片部署位置、操纵集群等功能。此外,你还将学到如何处理使用ElasticSearch过程中可能遇到的常见问题。
本书包含的内容
第1章覆盖了ElasticSearch的安装和配置、RESTAPI的使用方法、映射配置、路由和索引别名等内容。
第2章讨论了QueryDSL——基本查询与复合查询、过滤、结果排序及使用脚本等内容。
第3章解释了如何索引非平面数据、如何处理高亮和自动补全,以及如何利用_ttl、_source等内部信息扩展索引结构。
第4章覆盖了如何影响结果的得分、如何使用同义词功能,以及处理多语言数据。此外,本章还介绍了如何使用位置感知的查询及如何检查文档被检索到的原因。
第5章展示了如何索引树状结构、使用嵌套对象、处理父子关系、在线更新索引结构、从外部系统获取数据及利用批量处理加快索引过程等内容。
第6章主要介绍统计功能、相似查询功能及预期搜索功能。
第7章主要介绍集群管理API及集群监控。在本章中,你还将找到有关外部插件安装的信息。
第8章将指引你有效获取大规模结果集、控制集群再平衡、验证查询及使用预热查询。
你需要为本书做的准备
本书基于ElasticSearch服务器0.20.0写作而成,书中所有的示例和函数都应当在上面生效。此外,你还需要一个可以发送HTTP请求的命令行工具,如curl,它在绝大部分的操作系统中都有。请注意,本书中所有的示例都使用了提到的curl工具。如果你想要用其他工具,请注意把查询格式替换为你选择工具能够理解的样式。
此外,一些章节还需要额外的工具,例如ElasticSearch插件或者MongoDBNoSQL数据库(不过在需要时,书中会明确提到)。
本书面向的读者
如果你是全文搜索和ElasticSearch的初学者,本书是非常适合你阅读的。它将指引你学习ElasticSearch的基础知识,你还将学到一些高级功能。
如果你知道ElasticSearch并且已经使用过它,你将发现本书很吸引人,因为它为所有功能提供了一个很好的综述,并且还带有示例和描述。不过,你可能会遇到一些已经知道的内容。
如果你知道ApacheSolr搜索引擎,这本书还可以用来比较ApacheSolr和ElasticSearch的部分功能。这将帮助你判定哪个工具更加适合你的应用案例。
如果你已经知道ElasticSearch的所有细节,并且知道每一个配置参数都是如何工作的,那么这本书绝对不是你想要的!
部分约定
在本书中,你将找到若干种形式的文本,用来区分不同类型的信息。这里是这些形式的一些例子及其含义解释。
文本中的代码关键词如下所示:“indices对象包含关于library和map索引的信息。primaries对象包含当前节点之上的所有主分片的信息。”
代码块显示如下:
"store":{
"size":"7.6kb",
"size_in_bytes":7867,
"throttle_time":"0s",
"throttle_time_in_millis":0
}
当我们期望把你的注意力吸引到代码块的某一部分时,相关的行或条目会被加粗显示。
publicclassHashCodeSortScriptextendsAbstractSearchScript{
privateStringfield="name";
publicHashCodeSortScript(Map<String,Object>params)
命令行输入或输出写作如下形式:
curl-XPOST'localhost:9200/_cluster/reroute'-d'{
"commands":[
{"move":{"index":"shop","shard":1,"from_node":"es_node_one","to_node":"es_node_two"}},
{"cancel":{"index":"shop","shard":0,"node":"es_node_one"}}
新的词条与重要词语会被加粗显示。
警告或重要的注释文字将以加灰底的形式显示。
提示和技巧看上去是这个样子的。

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book