简体   繁体   English

我如何找出在heroku上运行的found-elasticsearch版本?

[英]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上两个工件之间区别

  • 13 days worth of commits 价值13天的提交
  • 49 commits 49次提交
  • 191 changes files 191个更改文件

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.

相关问题 我如何从 jquery-ui-rails gem 版本中找出 JQuery UI 的版本? - How do i figure out the version of JQuery UI from version of jquery-ui-rails gem? 我如何找出heroku上的错误 - How do I find out what the error is on heroku 如何将Elasticsearch升级到最新版本 - How do I Upgrade Elasticsearch to the latest version 如何确定在Rails中随时打开哪些数据库连接? - How do I figure out what database connections are open at any one time in Rails? 在 Heroku 上运行 Rake 任务时,如何将日志消息排除在 STDOUT 之外? - How do I keep log messages out of STDOUT when running Rake tasks on Heroku? 如何在不写文件的情况下找出mime类型? - How do I figure out the mime type without writing a file? 在本地项目目录中安装 gem 时,如何确定正确的 gem 文件路径应该是什么? - When installing a gem in a local project directory, how do I figure out what the proper gem file path should be? 如何让Devise在Heroku上发送确认电子邮件? - How do I enable Devise to send out confirmation emails on Heroku? 如何查看在Heroku登台环境中运行的应用程序? - How do I view an app running in Heroku's staging environment? 我如何找到我的应用程序正在运行的Rails版本? - how can i find what version of rails my app is running on?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM