[英]How do I figure out what found-elasticsearch version is running on heroku?
Heroku says I am running elasticsearch version 2.2.0 but I think they are wrong and here is why... Heroku说我正在运行2.2.0版的Elasticsearch,但我认为它们是错误的,这就是原因...
Locally on 2.2.0, my mappings include the payloads: true
option as defined here - and they work just fine. 本地的2.2.0,我的映射包括
payloads: true
选项,定义在这里 -他们工作得很好。 However, on heroku I get empty responses. 但是,在heroku上,我得到的响应是空的。 If I remove this option and construct the mapping in accordance with the "2.x" docs then it works on heroku but responses are empty locally.
如果我删除此选项并根据“ 2.x”文档构造映射,则它可在heroku上运行,但本地响应为空。 What does 2.x mean exactly?
2.x到底是什么意思? How can I find the real version running on heroku?
如何找到在heroku上运行的真实版本?
Thank you. 谢谢。
Found-ElasticSearch: 发现弹性搜索:
{
"name": "instance-x",
"cluster_name": "x",
"version": {
"number": "2.2.0",
"build_hash": "1b182b4497d4bba7602085ebd2e59a8a555ad368",
"build_timestamp": "2016-01-14T13:42:27Z",
"build_snapshot": true,
"lucene_version": "5.4.0"
},
"tagline": "You Know, for Search"
}
Local: 本地:
{
"name": "Power Princess",
"cluster_name": "elasticsearch_brew",
"version": {
"number": "2.2.0",
"build_hash": "8ff36d139e16f8720f2947ef62c8167a888992fe",
"build_timestamp": "2016-01-27T13:32:39Z",
"build_snapshot": false,
"lucene_version": "5.4.1"
},
"tagline": "You Know, for Search"
}
I notice lucene and build_snapshot are different. 我注意到lucene和build_snapshot是不同的。 The lucene version only has bugfixes that are nothing to do with payloads.
lucene版本仅具有与有效负载无关的错误修正。 So what is the build_snapshot and could that be affecting it?
那么什么是build_snapshot,这会影响它吗?
You can use the build_hash
values in order to figure out the difference between both builds. 您可以使用
build_hash
值来确定两个版本之间的差异。 The one deployed on Found dates back from January 14th, 2016 and the one on Heroku from January 27th, 2016, ie 13 days. 在Found上部署的一个可追溯至2016年1月14日,在Heroku上部署的一个可追溯至2016年1月27日,即13天。 According to
build_snapshot
, the one on Found is not a release artifact, but a snapshot artifact . 根据
build_snapshot
,Found上的不是发布工件,而是快照工件 。
So let's look at the differences between both artifacts on Github using the build hashes above: 因此,让我们使用上面的构建哈希来看一下Github上两个工件之间的区别 :
And somewhere in there we find the commit db409c99 which includes changes in the CompletionFieldMapper
and the payloads
field has been added . 在其中的某个地方,我们找到了db409c99提交,其中包括
CompletionFieldMapper
更改,并且已添加了payloads
字段 。
Glancing through the commits, we can find that they had to revert the new completion suggester changes because it was breaking other parts. 浏览这些提交,我们可以发现他们不得不还原新的完成提示器更改,因为它破坏了其他部分。 It will be re-introduced in a major version (3.0).
它将在主要版本(3.0)中重新引入。
So, to sum up, the local version you have includes the payloads
field, while the one you have on Found doesn't, which explains the behavior you're seeing. 因此,总而言之,您拥有的本地版本包括
payloads
字段,而您在Found上拥有的本地版本则没有,这说明了您所看到的行为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.