gavinfoo / elasticsearch-definitive-guide Goto Github PK
View Code? Open in Web Editor NEWelasticsearch 权威指南
Home Page: http://learnes.net
elasticsearch 权威指南
Home Page: http://learnes.net
这里应该是有问题吧?
为每一个员工的文档创建索引,每个文档都包含了一个员工的所有信息。
每个文档都会被标记为employee类型。
这种类型将存活在employee这个索引中。
这个索引将会存储在Elasticsearch的集群中
我在书中1.6 搜索章节中的,使用Query DSL搜索部分的代码片段中发现,请求类型使用的是GET,这个地方,这个地方是否应该是POST?因为GET请求貌似无法携带请求体,只能携带查询字符串。
http://www.learnes.net/distributed_cluster/coping_with_failure.html
如果我们<<<吧>>>第一个节点杀掉
http://learnes.net/search/multi_index_multi_type.html
在多个索引中搜索也是<<想通>>的流程
目前官方的权威指南目录和这个翻译文本的目录差异非常大啊
1.分布式集群-横向扩展的最后一句话中:
原语句:我们一共有6个节点(3个主分片和3个从分片),因此最多可以扩展到6个节点,每个节点上有一个分片,这样每个分片都可以使用到所在节点100%的资源了。
问题:我们一共有6个节点,这里的节点应该是分片才对吧。
2.搜索-空白搜索-timeout
原语句:例如10、"10ms"(10毫秒)或者"1s"(1分钟):
问题:1s 应该是1秒吧
3.搜索-多索引,多类型
原语句:第二段中 当我们没有特别指定一个所以或者类型的时候
问题:所以->索引
原语句:表格中 /gb,us/user,tweet/_search 搜索索引user以及tweet中类型gb and us内的所有文档
问题: 后面的描述语句中 use,tweet和gb,us的定义说反了
有兴趣和你一起来做个翻译工作。
了解搜索
--> 8 line
Elasticsearch使用Lucene作为内部引擎,但是在你使用它做全文搜索时,只需要使用统一开发好的API即可,请不需要了解其背后复杂的Lucene的运行原理。
"请不需要了解其背后复杂的Lucene的运行原理。" 是不是应该改为 "并不需要了解其背后复杂的Lucene的运行原理。"
As title
get请求是否为post请求
我这里打不开网页,Ping 请求找不到主机 www.learnes.net。
直接打开gitbook还是没有问题的。
ES版本 2.4.1
使用命令:curl -XPUT http://localhost:9200/megacorp/employee/1 -d '{"first_name":"John", "last_name":"Smith", "age":25, "about":"I love to go rock climbing", "interests":["sports", "music"]}'
错误:{
"error" : {
"root_cause" : [ {
"type" : "index_not_found_exception",
...
解决的方法:
先建索引 curl -XPUT http://localhost:9200/megacorp,然后执行上面命令
最下边一段中:
几乎所有的语言都有将任意数据转换、机构化(结构化) 成 JSON,或者将对象转换为JSON的模块。
最重要的是,每对如此巨大的数据量,它们能做到实时处理吗?
-->
最重要的是,面对如此巨大的数据量,它们能做到实时处理吗?
python的查询和汇总举例
我看了一下,是直接在原文上编辑的,很疑惑,如何自动同步ES的最新文档哈?
怎么解决这个问题呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.