# Elasticsearch

**URL:** https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1442

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 1443

---

## [Request \_cat/shards display index\_closed\_exception](https://discuss.elastic.co/t/request-cat-shards-display-index-closed-exception/161992)

<div class="topic-metadata">

**Author:** [@test987654123](https://discuss.elastic.co/u/test987654123)\
**Replies:** 8\
**Last updated:** [December 27, 2018, 8:18am UTC](https://discuss.elastic.co/t/request-cat-shards-display-index-closed-exception/161992 "2018-12-27T08:18:26Z")

</div>

Hi, My Cluster version is 6.4.2 ， I closed part of the index for storage reasons。 When I request this api, Response request is index\_closed\_exception 。

---

## [Error: Could not find or load main class org.elasticsearch.tools.JavaVersionChecker for install of s3 plugin](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-org-elasticsearch-tools-javaversionchecker-for-install-of-s3-plugin/162212)

<div class="topic-metadata">

**Author:** [@Santosh\_B](https://discuss.elastic.co/u/Santosh_B)\
**Replies:** 0\
**Last updated:** [December 27, 2018, 8:03am UTC](https://discuss.elastic.co/t/error-could-not-find-or-load-main-class-org-elasticsearch-tools-javaversionchecker-for-install-of-s3-plugin/162212 "2018-12-27T08:03:14Z")

</div>

While building Docker file, installation of elasticsearch-plugin fails with "Error: Could not find or load main class org.elasticsearch.tools.launchers.JavaVersionChecker". It fails for ElasticSearch 6.4.x and 6.5.x vers…

---

## [Update mapping format](https://discuss.elastic.co/t/update-mapping-format/162208)

<div class="topic-metadata">

**Author:** [@ashnik](https://discuss.elastic.co/u/ashnik)\
**Replies:** 1\
**Last updated:** [December 27, 2018, 7:22am UTC](https://discuss.elastic.co/t/update-mapping-format/162208 "2018-12-27T07:22:38Z")

</div>

Hi, I am using elasticsearch 6.4. The date type format recently changed from "epoch\_millis" to "dd MMMM, yyyy (HH:mm:ss)". Currently there is no data in elasticsearch for this field. Is it possible to update the form…

---

## [Elasticsearch Upgrade from 2.4.4](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-4/162198)

<div class="topic-metadata">

**Author:** [@Sunil\_G.C](https://discuss.elastic.co/u/Sunil_G.C)\
**Replies:** 1\
**Last updated:** [December 27, 2018, 7:22am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-from-2-4-4/162198 "2018-12-27T07:22:11Z")

</div>

Which one is a better option to upgrade an elasticsearch from 2.4 version? 5.\_ 6.\_ And could you someone explain why?

---

## [Aggregation by similarity](https://discuss.elastic.co/t/aggregation-by-similarity/162209)

<div class="topic-metadata">

**Author:** [@fookfook](https://discuss.elastic.co/u/fookfook)\
**Replies:** 0\
**Last updated:** [December 27, 2018, 7:14am UTC](https://discuss.elastic.co/t/aggregation-by-similarity/162209 "2018-12-27T07:14:10Z")

</div>

ElasticSearch has many aggregation, such as terms, date range, histogram and so on. Now I want to aggregate a certain field (such as the name of a person) based on its similarity. I want to know whether there is any rele…

---

## [Problem with -javaagent](https://discuss.elastic.co/t/problem-with-javaagent/162150)

<div class="topic-metadata">

**Author:** [@sarahmech](https://discuss.elastic.co/u/sarahmech)\
**Replies:** 2\
**Last updated:** [December 27, 2018, 7:13am UTC](https://discuss.elastic.co/t/problem-with-javaagent/162150 "2018-12-27T07:13:39Z")

</div>

Hi, I have installed the latest version of SELKS, and when I install apm server it appears "You have correctly setup APM Server" and when I start kibana, it says "There's no APM index pattern available. To use the Query …

---

## [Bulk api for parent/child documents in ElasticSearch 6x](https://discuss.elastic.co/t/bulk-api-for-parent-child-documents-in-elasticsearch-6x/162203)

<div class="topic-metadata">

**Author:** [@Tarun\_Jangra](https://discuss.elastic.co/u/Tarun_Jangra)\
**Replies:** 0\
**Last updated:** [December 27, 2018, 6:19am UTC](https://discuss.elastic.co/t/bulk-api-for-parent-child-documents-in-elasticsearch-6x/162203 "2018-12-27T06:19:38Z")

</div>

I can not find relevant example of parent/child relations getting indexed using bulk API. Any clue How to push child documents? How to put parent attribute to let elasticsearch know about relation connection? Apprecia…

---

## [Will “merge api” affect “\_snapshot”?](https://discuss.elastic.co/t/will-merge-api-affect-snapshot/162104)

<div class="topic-metadata">

**Author:** [@xyx](https://discuss.elastic.co/u/xyx)\
**Replies:** 3\
**Last updated:** [December 27, 2018, 5:32am UTC](https://discuss.elastic.co/t/will-merge-api-affect-snapshot/162104 "2018-12-27T05:32:25Z")

</div>

Will “merge api” affect “\_snapshot”? When I used \_snapshot to backup my index.And then use "merge api" to merge segments. Does this operate will cause some problems.In other words，the data will not correct.

---

## [Find similar records through MLT from millions records](https://discuss.elastic.co/t/find-similar-records-through-mlt-from-millions-records/162190)

<div class="topic-metadata">

**Author:** [@Suvam](https://discuss.elastic.co/u/Suvam)\
**Replies:** 0\
**Last updated:** [December 27, 2018, 2:31am UTC](https://discuss.elastic.co/t/find-similar-records-through-mlt-from-millions-records/162190 "2018-12-27T02:31:20Z")

</div>

How can we get all similar/duplicate record/document depending upon certain fields. There are 20 millions of documents. Can we have weightage on these fields collectively. What is the best way in elasticsearch.

---

## [Elasticserch storage](https://discuss.elastic.co/t/elasticserch-storage/162109)

<div class="topic-metadata">

**Author:** [@mancharagopan](https://discuss.elastic.co/u/mancharagopan)\
**Replies:** 2\
**Last updated:** [December 27, 2018, 2:13am UTC](https://discuss.elastic.co/t/elasticserch-storage/162109 "2018-12-27T02:13:18Z")

</div>

Hi, I have Elasticsearch on a 100GB disk but in the monitoring it shows total disk capacity is 50GB. How do i increase the storage usage?

---

## [Nginx proxy for Elastic Cloud instance](https://discuss.elastic.co/t/nginx-proxy-for-elastic-cloud-instance/161360)

<div class="topic-metadata">

**Author:** [@kevins](https://discuss.elastic.co/u/kevins)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 7:41pm UTC](https://discuss.elastic.co/t/nginx-proxy-for-elastic-cloud-instance/161360 "2018-12-26T19:41:53Z")

</div>

I am trying to create an Nginx reverse proxy to a cloud.elastic.co instance. All attempts at this result in the following message: {"ok":false,"message":"Unknown cluster."} upstream elasticsearch { server {{my ins…

---

## [Java -\> Rust thoughts](https://discuss.elastic.co/t/java-rust-thoughts/162170)

<div class="topic-metadata">

**Author:** [@arisbanach](https://discuss.elastic.co/u/arisbanach)\
**Replies:** 0\
**Last updated:** [December 26, 2018, 6:40pm UTC](https://discuss.elastic.co/t/java-rust-thoughts/162170 "2018-12-26T18:40:00Z")

</div>

I was wondering if there's been any talk at Elastic about migrating some of the codebase for Elasticsearch to a language other than Java. In my opinion, Rust would be a perfect language to use for something like Elastics…

---

## [Fetching all params keys and values](https://discuss.elastic.co/t/fetching-all-params-keys-and-values/162107)

<div class="topic-metadata">

**Author:** [@Naresh\_Bharadwaj](https://discuss.elastic.co/u/Naresh_Bharadwaj)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 5:08pm UTC](https://discuss.elastic.co/t/fetching-all-params-keys-and-values/162107 "2018-12-26T17:08:14Z")

</div>

I am using painless script query in elasticsearch and I want to fetch all the keys inside params. So I want to access it like params\[0\].key. Something like that. But do not find the proper syntax. Can anyone help me out? …

---

## [Snapshort backups Failed to complete action: snapshot. \<type 'exceptions.KeyError'\>: 'indices'](https://discuss.elastic.co/t/snapshort-backups-failed-to-complete-action-snapshot-type-exceptions-keyerror-indices/162125)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 4:55pm UTC](https://discuss.elastic.co/t/snapshort-backups-failed-to-complete-action-snapshot-type-exceptions-keyerror-indices/162125 "2018-12-26T16:55:22Z")

</div>

Hi Team, My snapshot backups were failing with below error few times and when i enable debug mode it is getting success and not able to find out what is causing the issue. Failed to complete action: snapshot. \<type 'e…

---

## [Error while installing Plugin](https://discuss.elastic.co/t/error-while-installing-plugin/162164)

<div class="topic-metadata">

**Author:** [@thefred](https://discuss.elastic.co/u/thefred)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 4:48pm UTC](https://discuss.elastic.co/t/error-while-installing-plugin/162164 "2018-12-26T16:48:32Z")

</div>

Hello I am currently trying to install a custom plugin in elasticsearch 6.5.4 and Java 11, windows server 2012 R2. Upon running install plugin command the following error occurs. Any thoughts? Below is my plugin-descrip…

---

## [ElasticSearch Restoration - How to overwrite existing datas](https://discuss.elastic.co/t/elasticsearch-restoration-how-to-overwrite-existing-datas/162134)

<div class="topic-metadata">

**Author:** [@genseb](https://discuss.elastic.co/u/genseb)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 4:30pm UTC](https://discuss.elastic.co/t/elasticsearch-restoration-how-to-overwrite-existing-datas/162134 "2018-12-26T16:30:51Z")

</div>

Hi, Process a backup using curl -XPUT "http://localhost:9200/\_snapshot/s3\_repository/snap1?wait\_for\_completion=true" command. When I try to restore this backup, I'm encountering following issue: {"error":{"root\_cause"…

---

## [ELK migration from 5.4 to 6.6](https://discuss.elastic.co/t/elk-migration-from-5-4-to-6-6/162137)

<div class="topic-metadata">

**Author:** [@Harsh\_Sharma](https://discuss.elastic.co/u/Harsh_Sharma)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 4:22pm UTC](https://discuss.elastic.co/t/elk-migration-from-5-4-to-6-6/162137 "2018-12-26T16:22:38Z")

</div>

Hi All, I'm planning to upgrade my ELK stack in production from 5.4. to 6.6. I need your help for best practice and action items to achieve this goal. Below are the details - ES (5.4.3) - 20 nodes cluster, Data size…

---

## [Curator script to reindex daily indices to monthly onces](https://discuss.elastic.co/t/curator-script-to-reindex-daily-indices-to-monthly-onces/161223)

<div class="topic-metadata">

**Author:** [@VietCong](https://discuss.elastic.co/u/VietCong)\
**Replies:** 4\
**Last updated:** [December 26, 2018, 4:01pm UTC](https://discuss.elastic.co/t/curator-script-to-reindex-daily-indices-to-monthly-onces/161223 "2018-12-26T16:01:15Z")

</div>

I am trying to write a curator script that would look into my clusters and pick out those daily indices that are smaller than 5GB then reindex them to big monthly indices then delete the daily indices. My problem/que…

---

## [ElasticSearch 6.4.2 high level rest client jar hell issue with Ant build tool](https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158)

<div class="topic-metadata">

**Author:** [@Rahul\_Kosambi](https://discuss.elastic.co/u/Rahul_Kosambi)\
**Replies:** 0\
**Last updated:** [December 26, 2018, 3:16pm UTC](https://discuss.elastic.co/t/elasticsearch-6-4-2-high-level-rest-client-jar-hell-issue-with-ant-build-tool/162158 "2018-12-26T15:16:48Z")

</div>

Hello, I am in the process of upgrading our ES cluster from v 1.4.4 to v 6.4.2. I have used ES high level rest client v 6.4.2 extensively for CRUD and search operations in our project but am facing a roadblock in deplo…

---

## [Why does a restart performs recovery which takes long time (6-12hrs)?](https://discuss.elastic.co/t/why-does-a-restart-performs-recovery-which-takes-long-time-6-12hrs/162132)

<div class="topic-metadata">

**Author:** [@eightnoteight](https://discuss.elastic.co/u/eightnoteight)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 2:50pm UTC](https://discuss.elastic.co/t/why-does-a-restart-performs-recovery-which-takes-long-time-6-12hrs/162132 "2018-12-26T14:50:56Z")

</div>

Hi, So our cluster consists of 4k indices and about 20k shards spanned over 7 nodes. upon restarting an elasticsearch node most of the indices(99.98) get to available state within 5 mins. but everytime there are a few i…

---

## [Fieldname.keyword search returns different results](https://discuss.elastic.co/t/fieldname-keyword-search-returns-different-results/162142)

<div class="topic-metadata">

**Author:** [@Ganga\_Lakshmanasamy](https://discuss.elastic.co/u/Ganga_Lakshmanasamy)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 1:06pm UTC](https://discuss.elastic.co/t/fieldname-keyword-search-returns-different-results/162142 "2018-12-26T13:06:26Z")

</div>

I have a field which uses a particular analyzer. For a scenario, i want the field to be matched without any analyzer being applied. So I ma using fielname.keyword for the match query. This query doesn't return value for …

---

## [The fuzzier matching, the higher score?](https://discuss.elastic.co/t/the-fuzzier-matching-the-higher-score/162009)

<div class="topic-metadata">

**Author:** [@Jevgenij](https://discuss.elastic.co/u/Jevgenij)\
**Replies:** 5\
**Last updated:** [December 26, 2018, 11:39am UTC](https://discuss.elastic.co/t/the-fuzzier-matching-the-higher-score/162009 "2018-12-26T11:39:45Z")

</div>

Hello! My template is: ..., "code": { "type": "keyword", "copy\_to": "full\_text" }, ..., "full\_text": { "type": "text" } My query is: { …

---

## [Data nodes fail to connect with a separate monitoring node](https://discuss.elastic.co/t/data-nodes-fail-to-connect-with-a-separate-monitoring-node/162136)

<div class="topic-metadata">

**Author:** [@Harish\_Mata](https://discuss.elastic.co/u/Harish_Mata)\
**Replies:** 0\
**Last updated:** [December 26, 2018, 11:38am UTC](https://discuss.elastic.co/t/data-nodes-fail-to-connect-with-a-separate-monitoring-node/162136 "2018-12-26T11:38:20Z")

</div>

I recently created a monitoring node and configured everything as per the documentation on setting up a separate monitoring node for our production elasticsearch nodes.When I tried restarting one of the data nodes it say…

---

## [ES crashing with OutOfMemory exception while reading Translog of 450 GB](https://discuss.elastic.co/t/es-crashing-with-outofmemory-exception-while-reading-translog-of-450-gb/162070)

<div class="topic-metadata">

**Author:** [@raghav\_gupta](https://discuss.elastic.co/u/raghav_gupta)\
**Replies:** 1\
**Last updated:** [December 26, 2018, 11:35am UTC](https://discuss.elastic.co/t/es-crashing-with-outofmemory-exception-while-reading-translog-of-450-gb/162070 "2018-12-26T11:35:11Z")

</div>

We have cluster with large number of shards with 2 replicas across multiple indices. We recently did a rolling upgrade from ES 5.6.10 to 6.2.4. Couple of days back, cluster went to yellow as node es-d39-rm was trying to…

---

## [Class cast exception while updating documents](https://discuss.elastic.co/t/class-cast-exception-while-updating-documents/161448)

<div class="topic-metadata">

**Author:** [@BlueSpirit](https://discuss.elastic.co/u/BlueSpirit)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 9:56am UTC](https://discuss.elastic.co/t/class-cast-exception-while-updating-documents/161448 "2018-12-26T09:56:45Z")

</div>

While updating all documents in an index using \_update\_by\_query I get the following error: { "error": { "root\_cause": \[ { "type": "class\_cast\_exception", "reason": "java.lang.String incompatible with java.util.Map…

---

## [Does ES use a pure Apache Lucene?](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064)

<div class="topic-metadata">

**Author:** [@0ctopus13prime](https://discuss.elastic.co/u/0ctopus13prime)\
**Replies:** 4\
**Last updated:** [December 26, 2018, 7:18am UTC](https://discuss.elastic.co/t/does-es-use-a-pure-apache-lucene/161064 "2018-12-26T07:18:59Z")

</div>

Does ES use a pure Apache Lucene without any customizations? I plan to run ES on the top of the customized Lucene (Method signitures remain, some magic numbers will be touched) I wondering if Elasticsearch is able to r…

---

## [Deployment health issue: Snapshots out of date (latest success was 23 hours ago)](https://discuss.elastic.co/t/deployment-health-issue-snapshots-out-of-date-latest-success-was-23-hours-ago/161993)

<div class="topic-metadata">

**Author:** [@princeOfMacedon](https://discuss.elastic.co/u/princeOfMacedon)\
**Replies:** 4\
**Last updated:** [December 26, 2018, 6:00am UTC](https://discuss.elastic.co/t/deployment-health-issue-snapshots-out-of-date-latest-success-was-23-hours-ago/161993 "2018-12-26T06:00:37Z")

</div>

Hi all, I'm using filebeat to push log to elastic cloud. After using elastic-curator to add snapshots and backup some old indices to S3, I've encounter this error on elastic cloud console: Deployment health issue: Sna…

---

## [Is it possible to write an event listener?](https://discuss.elastic.co/t/is-it-possible-to-write-an-event-listener/162085)

<div class="topic-metadata">

**Author:** [@asnar](https://discuss.elastic.co/u/asnar)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 4:35am UTC](https://discuss.elastic.co/t/is-it-possible-to-write-an-event-listener/162085 "2018-12-26T04:35:48Z")

</div>

Is it possible to write an event listener ?

---

## [Elasticsearch service is getting stopped automatically](https://discuss.elastic.co/t/elasticsearch-service-is-getting-stopped-automatically/162082)

<div class="topic-metadata">

**Author:** [@faruks](https://discuss.elastic.co/u/faruks)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 9:34pm UTC](https://discuss.elastic.co/t/elasticsearch-service-is-getting-stopped-automatically/162082 "2018-12-25T21:34:19Z")

</div>

hi elasticsearch service is getting stopped automatically service elasticsearch start \<log\> elasticsearch\]# tail -f my-application.log at org.elasticsearch.plugins.PluginsService.loadBundle(PluginsService.java:524) ~…

---

## [Nodes with different amount of memory](https://discuss.elastic.co/t/nodes-with-different-amount-of-memory/161649)

<div class="topic-metadata">

**Author:** [@Silas\_Hansen](https://discuss.elastic.co/u/Silas_Hansen)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 6:58pm UTC](https://discuss.elastic.co/t/nodes-with-different-amount-of-memory/161649 "2018-12-25T18:58:41Z")

</div>

Hi We have a cluster that we want to add as much capacity to as possible. We have some reservations on AWS that don't expire until a very long time from now, and we wan't to utilize those reservations in our cluster. H…

[Previous page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1441)

[Next page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1443)
