Elasticsearch in Action cover

Elasticsearch in Action

Rating 3.9
Chapters
19
ISBN
9787115449153

Tags

Summary

This book is a practical guide to building scalable search applications with Elasticsearch, co-written by Radu Gheorghe, Matthew Lee Hinman, and Roy Russo, aimed at developers and system administrators who need to implement search functionality in their own applications. The book focuses on Elasticsearch's HTTP-based REST API, with examples given mostly as curl bash scripts, so readers can readily translate them into calls in Java, Python, or other familiar languages. The content is divided into two main parts. Part One systematically explains core features: Elasticsearch's positioning and basic concepts, indexing, updating, and deleting data, various query methods and search execution, text analysis and relevance tuning, real-time exploratory analysis of data with aggregations, and expressing relationships between documents through parent-child and nested mechanisms. Part Two moves toward production: sharding and replicas, horizontal scaling, ideas and means for improving performance, and the essentials of day-to-day cluster management and operations, helping readers turn prototype features into products. Six additional appendices cover geospatial data handling, plugins, search result highlighting, production monitoring plugins, using percolators to "invert" search for reverse matching, and using suggesters for autocomplete and "did you mean" correction. The book emphasizes connecting concepts, query syntax, and tuning effects, and is suited to hands-on verification on a test cluster while reading.

Editor's review

对国内不少工程师来说,Elasticsearch 往往是在项目里“用起来”的:写几条 DSL,把数据塞进去,能搜出东西就算完。真正卡住人的,是搜索结果不够准、聚合慢、分片规划不当、集群出问题时无从下手。这本书的价值在于它不只停留在 API 用法,而是把分析器、相关性、聚合、文档关系和扩展性放在一条线上讲,帮助读者理解“为什么这样配”。 它的示例以 REST 接口的 curl 脚本为主,读起来轻便,不绑定某种客户端或框架,Java、Python、PHP 的开发者都能直接套用。第二部分转向生产话题,分片、副本、性能与集群管理,正是从 Demo 走向线上时最关键的一段路。六个附录覆盖地理空间、高亮、监控、自动完成与渗滤器,可按需查阅。 需要提醒的是,原书写作基于较早期的 Elasticsearch 版本,部分 API 与参数与当前版本已有差异,建议对照官方文档同步阅读。把它当作理解原理与查询思路的入门加进阶读本,仍相当合适。

Who it's for

A good fit for

  • 正在或准备用 Elasticsearch 做搜索功能的后端开发者,希望从能用走向好用
  • 使用 ELK 做日志与数据分析、需要理解聚合与相关性的工程师
  • 需要在项目中规划分片、扩容与集群运维的系统管理员与架构师
  • 对全文检索和倒排索引原理感兴趣、愿意动手做实验的技术爱好者

Not a good fit for

  • 只想找最新版本命令速查手册、对照 Elasticsearch 8.x/9.x API 逐条查阅的读者
  • 完全没有数据库和 HTTP 接口基础、希望零门槛入门的初学者
  • 期望深入学习 Lucene 源码或搜索引擎算法推导的研究型读者

Reading tips

  1. 先在本机或容器里起一个单节点集群,随章节同步敲 curl 命令并观察返回结果
  2. 第6、7章讲相关性与聚合,是实际项目中最常出问题的部分,建议反复对照自己的数据试验
  3. 读到第二部分时同步列出自己系统的分片与扩容方案,把书中思路落到真实容量估算上
  4. 遇到 API 与当前版本不一致时,以官方文档为准做好笔记,把本书当作概念与思路的地图

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part 1
  2. Chapter 1 Introducing Elasticsearch
  3. Chapter 2 Diving into functionality
  4. Chapter 3 Indexing, updating, and deleting data
  5. Chapter 4 Searching your data
  6. Chapter 5 Analyzing your data
  7. Chapter 6 Searching with relevancy
  8. Chapter 7 Exploring your data with aggregations
  9. Chapter 8 Relations among documents
  10. Part 2
  11. Chapter 9 Scaling out
  12. Chapter 10 Improving performance
  13. Chapter 11 Administering your cluster
  14. Appendix A Working with geospatial data
  15. Appendix B Plugins
  16. Appendix C Highlighting
  17. Appendix D Elasticsearch monitoring plugins
  18. Appendix E Turning search upside down with percolators
  19. Appendix F Using suggesters for autocomplete and "did you mean" functionality

FAQ

这本书对应的是哪个 Elasticsearch 版本?
原书写作时间较早,示例围绕 2.x 前后版本的 API 展开。后来的 Elasticsearch 版本在映射、查询与索引管理上已有大量变化,例如废弃了过滤查询、引入了模板与生命周期管理等,阅读时建议对照官方文档核对语法。
书后的六个附录需要单独下载吗?
部分中文版说明附录内容可另行获取,异步社区的电子版则把附录 A 至附录 F 一并收录在正文目录中。购买前可在详情页确认载体形式,纸质版读者可到出版社配套资源处获取。
和其他 Elasticsearch 书相比该怎么选?
本书偏重以 REST API 串起核心特性到生产实践的完整链条,示例语言无关;若需要新版本语法与更偏源码原理的内容,可再搭配更新的实战或源码解析类图书使用。
没有 Java 基础能读吗?
可以。全书示例主要使用基于 HTTP 的 curl 脚本,不依赖 Java 客户端即可完成绝大部分练习;但若要深入集群管理与性能调优,了解 JVM 与堆内存的基本概念会更顺畅。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category