# Elasticsearch

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

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

**Page:** 836

---

## [Due to heavy load, Shards getting unassigned](https://discuss.elastic.co/t/due-to-heavy-load-shards-getting-unassigned/244433)

<div class="topic-metadata">

**Author:** [@het](https://discuss.elastic.co/u/het)\
**Replies:** 14\
**Last updated:** [August 14, 2020, 11:07am UTC](https://discuss.elastic.co/t/due-to-heavy-load-shards-getting-unassigned/244433 "2020-08-14T11:07:26Z")

</div>

Hi, I have a cluster contains 3 data nodes 31 GB of each, and 3 master nodes 8 GB of each. I have around a total of 252 shards. The total data size is approx. 65 GB. I am using 7.7.1 ElasticSearch When I run a load of…

---

## [Lose all my indices](https://discuss.elastic.co/t/lose-all-my-indices/244982)

<div class="topic-metadata">

**Author:** [@Alan\_Digital](https://discuss.elastic.co/u/Alan_Digital)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 10:27am UTC](https://discuss.elastic.co/t/lose-all-my-indices/244982 "2020-08-14T10:27:08Z")

</div>

Hi, I've got some issues with my elastic, I have lost all my indices. I'm trying to find out, where this error is coming from? After 2 weeks all my data disappears. I'm using elasticstore to synchronize my data with …

---

## [What is the minimum number of servers necessary for healthy elastic search cluster?](https://discuss.elastic.co/t/what-is-the-minimum-number-of-servers-necessary-for-healthy-elastic-search-cluster/244977)

<div class="topic-metadata">

**Author:** [@Ankitha\_Sathya](https://discuss.elastic.co/u/Ankitha_Sathya)\
**Replies:** 1\
**Last updated:** [August 14, 2020, 9:22am UTC](https://discuss.elastic.co/t/what-is-the-minimum-number-of-servers-necessary-for-healthy-elastic-search-cluster/244977 "2020-08-14T09:22:30Z")

</div>

Hi all, I am new to Elastic search and trying to understand what is the minimum requirement for a ES cluster keeping availability in mind. Note that I am considering all the nodes are master-eligible and data node and …

---

## [CCR - update settings for soft\_delete.enable](https://discuss.elastic.co/t/ccr-update-settings-for-soft-delete-enable/244848)

<div class="topic-metadata">

**Author:** [@aoi1](https://discuss.elastic.co/u/aoi1)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 4:42am UTC](https://discuss.elastic.co/t/ccr-update-settings-for-soft-delete-enable/244848 "2020-08-14T04:42:53Z")

</div>

Hi everyone! I am now trying to use Cross Cluster Replication. It sounds powerful, good, and looks like a good way for replicating indexes. There is one question. As the document says, we need to set the leader index's…

---

## [Management thread taking too much cpu](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935)

<div class="topic-metadata">

**Author:** [@Geeks\_Insights](https://discuss.elastic.co/u/Geeks_Insights)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 2:22am UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935 "2020-08-14T02:22:51Z")

</div>

Hi we are observing too much cpu on cluster suddenly and the hot threads shows below only on management thread pool. hotthreads 99.8% (499ms out of 500ms) cpu usage by thread 'elasticsearch\[node1\]\[management\]\[T#2\]' …

---

## [Kibana export into CSV string got converted to number unexpectedly](https://discuss.elastic.co/t/kibana-export-into-csv-string-got-converted-to-number-unexpectedly/244947)

<div class="topic-metadata">

**Author:** [@ella](https://discuss.elastic.co/u/ella)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 9:13pm UTC](https://discuss.elastic.co/t/kibana-export-into-csv-string-got-converted-to-number-unexpectedly/244947 "2020-08-13T21:13:16Z")

</div>

Hi I try to export data into CSV in kibana There is a field with value as '000011' and it's always shown as '11' even the the data type is string in index pattern. How can i solve this?

---

## [I have added a custom analyzer to my index settings, but not getting results](https://discuss.elastic.co/t/i-have-added-a-custom-analyzer-to-my-index-settings-but-not-getting-results/244771)

<div class="topic-metadata">

**Author:** [@Saumya\_Mishra](https://discuss.elastic.co/u/Saumya_Mishra)\
**Replies:** 9\
**Last updated:** [August 13, 2020, 8:56pm UTC](https://discuss.elastic.co/t/i-have-added-a-custom-analyzer-to-my-index-settings-but-not-getting-results/244771 "2020-08-13T20:56:59Z")

</div>

// This the setting of my index { "hw\_transcriptionlogindex" : { "settings" : { "index" : { "number\_of\_shards" : "1", "provided\_name" : "hw\_t…

---

## [Unable to cast org.elasticsearch.client.RestClient to org.elasticsearch.client.Client](https://discuss.elastic.co/t/unable-to-cast-org-elasticsearch-client-restclient-to-org-elasticsearch-client-client/244488)

<div class="topic-metadata">

**Author:** [@elastic78](https://discuss.elastic.co/u/elastic78)\
**Replies:** 12\
**Last updated:** [August 13, 2020, 8:44pm UTC](https://discuss.elastic.co/t/unable-to-cast-org-elasticsearch-client-restclient-to-org-elasticsearch-client-client/244488 "2020-08-13T20:44:21Z")

</div>

Hi, In my code I am casting RestClient to Client. I don't see any runtime error but my application is not coming up due to the following error. Can someone help me org.apache.catalina.core.StandardContext.listenerStart …

---

## [Verify TLS enablement?](https://discuss.elastic.co/t/verify-tls-enablement/244944)

<div class="topic-metadata">

**Author:** [@Chris\_Gatihi](https://discuss.elastic.co/u/Chris_Gatihi)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 8:13pm UTC](https://discuss.elastic.co/t/verify-tls-enablement/244944 "2020-08-13T20:13:42Z")

</div>

Hi, We recently enabled TLS on version 5.6.16 and it wasn't clear to us if there is any indication (even just a logging statement) that TLS enablement has kicked in. Is there anything we could look at for validation? T…

---

## [Add multiple data values to Elasticsearch index using java REST API](https://discuss.elastic.co/t/add-multiple-data-values-to-elasticsearch-index-using-java-rest-api/244938)

<div class="topic-metadata">

**Author:** [@Venkat\_Raj](https://discuss.elastic.co/u/Venkat_Raj)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 7:10pm UTC](https://discuss.elastic.co/t/add-multiple-data-values-to-elasticsearch-index-using-java-rest-api/244938 "2020-08-13T19:10:29Z")

</div>

Hi All, I am using JAVA REST API to create index and add data to the index. Below is the code I am using: Map\<String, Object\> dataMap = new HashMap\<String, Object\>(); dataMap.put("appname", app); dataMap.put("version…

---

## [Adding conditions dynamically to the watcher](https://discuss.elastic.co/t/adding-conditions-dynamically-to-the-watcher/244872)

<div class="topic-metadata">

**Author:** [@adityaPsl](https://discuss.elastic.co/u/adityaPsl)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 11:25am UTC](https://discuss.elastic.co/t/adding-conditions-dynamically-to-the-watcher/244872 "2020-08-13T11:25:41Z")

</div>

Hello Team, Could you please help me understand if adding conditions dynamically to the watcher is possible. I will try to explain the scenario. for example if i have 3 status codes for which i am checking the index if…

---

## [ILM - creating new policy throw error "invalid\_index\_name\_exception"](https://discuss.elastic.co/t/ilm-creating-new-policy-throw-error-invalid-index-name-exception/244517)

<div class="topic-metadata">

**Author:** [@Abdul\_Hameed](https://discuss.elastic.co/u/Abdul_Hameed)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 6:52pm UTC](https://discuss.elastic.co/t/ilm-creating-new-policy-throw-error-invalid-index-name-exception/244517 "2020-08-13T18:52:27Z")

</div>

Hi, I am trying to create a policy in ILM to delete indices which are older than 90 days. My elasticsearch version is 6.6.1. When I run the following query in dev tools of kibana: PUT \_ilm/policy/retention\_policy { …

---

## [How to name dated Index for ILM with Roll over](https://discuss.elastic.co/t/how-to-name-dated-index-for-ilm-with-roll-over/244880)

<div class="topic-metadata">

**Author:** [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 6:49pm UTC](https://discuss.elastic.co/t/how-to-name-dated-index-for-ilm-with-roll-over/244880 "2020-08-13T18:49:15Z")

</div>

I have an ILM policy with roll over functionality and below is my Index name which consists of year-month-date and roll over series.(YYYY.MM.DD-000001) 'PUT test-2020.07.26-000001 { "aliases": { "…

---

## [Find Exact same sentence from Document](https://discuss.elastic.co/t/find-exact-same-sentence-from-document/244663)

<div class="topic-metadata">

**Author:** [@aninda\_halder](https://discuss.elastic.co/u/aninda_halder)\
**Replies:** 4\
**Last updated:** [August 13, 2020, 6:07pm UTC](https://discuss.elastic.co/t/find-exact-same-sentence-from-document/244663 "2020-08-13T18:07:26Z")

</div>

Suppose i'm 3 documents . Abul hassan was a actor hassan was a actor abul was a actor if i want to search for abul hassan ,search query will return all of the 3 document , but i want to get only 1st document as this …

---

## [Multiple data nodes with different storage size](https://discuss.elastic.co/t/multiple-data-nodes-with-different-storage-size/244885)

<div class="topic-metadata">

**Author:** [@Thomas74](https://discuss.elastic.co/u/Thomas74)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 5:01pm UTC](https://discuss.elastic.co/t/multiple-data-nodes-with-different-storage-size/244885 "2020-08-13T17:01:32Z")

</div>

Hi, I will reach soon my maximum cluster data size. I would like to add a temporary data node until I received a new one. This node has less storage than others but I wonder what will happened if I add it into my clus…

---

## [Cannot deploy elastic-stack into Kubernetes cluster. Error: found in Chart.yaml](https://discuss.elastic.co/t/cannot-deploy-elastic-stack-into-kubernetes-cluster-error-found-in-chart-yaml/244919)

<div class="topic-metadata">

**Author:** [@melissajenner22](https://discuss.elastic.co/u/melissajenner22)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 4:37pm UTC](https://discuss.elastic.co/t/cannot-deploy-elastic-stack-into-kubernetes-cluster-error-found-in-chart-yaml/244919 "2020-08-13T16:37:49Z")

</div>

I would like to deploy elastic-stack into Kubernetes cluster. I git clone the chart, use default settings. But, I got errors. 1. git clone https://github.com/helm/charts 2. Create namespace kubectl create namespac…

---

## [Copy nested fields to new nested fields via Reindex or Update API](https://discuss.elastic.co/t/copy-nested-fields-to-new-nested-fields-via-reindex-or-update-api/244897)

<div class="topic-metadata">

**Author:** [@g30](https://discuss.elastic.co/u/g30)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 2:16pm UTC](https://discuss.elastic.co/t/copy-nested-fields-to-new-nested-fields-via-reindex-or-update-api/244897 "2020-08-13T14:16:31Z")

</div>

Hi, We have the following data stored in our existing index. { "id": "83c55df4-dd6d-11ea-87d0-0242ac130003", "name": "test", "customData": { "id\_int": 16934, "year": "2020", "number": "0001", "anotherField":…

---

## [Why is it that when using ReIndex, only the specified size can be migrated, but not all data can be migrated](https://discuss.elastic.co/t/why-is-it-that-when-using-reindex-only-the-specified-size-can-be-migrated-but-not-all-data-can-be-migrated/243416)

<div class="topic-metadata">

**Author:** [@JaretWang](https://discuss.elastic.co/u/JaretWang)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 2:13pm UTC](https://discuss.elastic.co/t/why-is-it-that-when-using-reindex-only-the-specified-size-can-be-migrated-but-not-all-data-can-be-migrated/243416 "2020-08-13T14:13:13Z")

</div>

The server is 5 physical machines and the operation system is ubuntu18.04 Es old cluster version: 7.3.1 The related nodes, indexes, memory, and sharding cases are as follows The main Settings information of the …

---

## [Usage of large amount of data on Elastic Search](https://discuss.elastic.co/t/usage-of-large-amount-of-data-on-elastic-search/244718)

<div class="topic-metadata">

**Author:** [@Erdi](https://discuss.elastic.co/u/Erdi)\
**Replies:** 4\
**Last updated:** [August 13, 2020, 1:04pm UTC](https://discuss.elastic.co/t/usage-of-large-amount-of-data-on-elastic-search/244718 "2020-08-13T13:04:17Z")

</div>

Hello, I would like to ask a question related to usage of elasctic search. I wonder that What your experiences are when you are storing large amounts of data in Elastic Search? Do you suggest this usage for me? Did you …

---

## [Elasticsearch 7.4.2 Snapshot and restore](https://discuss.elastic.co/t/elasticsearch-7-4-2-snapshot-and-restore/243928)

<div class="topic-metadata">

**Author:** [@Sanjay1](https://discuss.elastic.co/u/Sanjay1)\
**Replies:** 4\
**Last updated:** [August 13, 2020, 1:42pm UTC](https://discuss.elastic.co/t/elasticsearch-7-4-2-snapshot-and-restore/243928 "2020-08-13T13:42:14Z")

</div>

I am using Elasticsearch 7.4.2 and some clarification and help on snapshot and restore. There is nothing like full snapshot or partial snapshot. Each snapshot is a complete snapshot. As I know each snapshot is incremen…

---

## [Two node cluster with all primary shards in Node 1 and all replica shards in Node 2](https://discuss.elastic.co/t/two-node-cluster-with-all-primary-shards-in-node-1-and-all-replica-shards-in-node-2/244742)

<div class="topic-metadata">

**Author:** [@robertitox](https://discuss.elastic.co/u/robertitox)\
**Replies:** 7\
**Last updated:** [August 13, 2020, 1:29pm UTC](https://discuss.elastic.co/t/two-node-cluster-with-all-primary-shards-in-node-1-and-all-replica-shards-in-node-2/244742 "2020-08-13T13:29:32Z")

</div>

Dear all, I have an Elasticsearch cluster composed by two nodes: master node and data node. When I join the second node to the cluster, after some hours, the cluster health becomes green but I can see that all primary s…

---

## [Matching numbers found inside product MPNs](https://discuss.elastic.co/t/matching-numbers-found-inside-product-mpns/244787)

<div class="topic-metadata">

**Author:** [@droplet](https://discuss.elastic.co/u/droplet)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 1:27pm UTC](https://discuss.elastic.co/t/matching-numbers-found-inside-product-mpns/244787 "2020-08-13T13:27:16Z")

</div>

Linux | ES 7.7 |PHP+Laravel6+Scout So I should start by explaining what an MPN is just in case you don't know. It is simply an abbreviation of Model Part Number and most products on the planet have it. Others have EAN, …

---

## [Java RestHighLevelClient UpdateByQuery with Task Response](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870)

<div class="topic-metadata">

**Author:** [@Leynch](https://discuss.elastic.co/u/Leynch)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 12:33pm UTC](https://discuss.elastic.co/t/java-resthighlevelclient-updatebyquery-with-task-response/244870 "2020-08-13T12:33:53Z")

</div>

The updateByQuery API of elasticsearch has the possibility to get a task response if the parameter wait\_for\_completion is set to false (https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docs-update-by-query.htm…

---

## [Sort on multiple fields with different weighted criteria](https://discuss.elastic.co/t/sort-on-multiple-fields-with-different-weighted-criteria/244147)

<div class="topic-metadata">

**Author:** [@neeraj142](https://discuss.elastic.co/u/neeraj142)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 9:43am UTC](https://discuss.elastic.co/t/sort-on-multiple-fields-with-different-weighted-criteria/244147 "2020-08-07T09:43:31Z")

</div>

as i am doing shorting on multiple fields { followersCount: { order: 'desc' } }, { averageRating: 'desc' }, { \_geo\_distance: { coordinates: \[lng, lat\], order: "asc", unit: "km", distance\_type: "arc", ignore\_un…

---

## [Unable to join nodes to cluster](https://discuss.elastic.co/t/unable-to-join-nodes-to-cluster/244832)

<div class="topic-metadata">

**Author:** [@john7](https://discuss.elastic.co/u/john7)\
**Replies:** 5\
**Last updated:** [August 13, 2020, 12:24pm UTC](https://discuss.elastic.co/t/unable-to-join-nodes-to-cluster/244832 "2020-08-13T12:24:55Z")

</div>

I'm trying to setup a cluster of 3 elastic nodes. 1 master and two data nodes. I'm able to start all 3 of them yet they seem to setup there own cluster instead of joining together. Node 1 (the master) 192.168.56.114 …

---

## [Querying slow on kibana after re installation of docker](https://discuss.elastic.co/t/querying-slow-on-kibana-after-re-installation-of-docker/242693)

<div class="topic-metadata">

**Author:** [@twright8](https://discuss.elastic.co/u/twright8)\
**Replies:** 12\
**Last updated:** [August 13, 2020, 12:24pm UTC](https://discuss.elastic.co/t/querying-slow-on-kibana-after-re-installation-of-docker/242693 "2020-08-13T12:24:15Z")

</div>

Hi All, After doing a clean reinstall of my ELK stack, querying the same reindexed data takes much longer, it now with saved queries that would be a few seconds previously now pop up with this: Your query is taking awh…

---

## [User docker to build elasticsearch cluster on multi-machine](https://discuss.elastic.co/t/user-docker-to-build-elasticsearch-cluster-on-multi-machine/244845)

<div class="topic-metadata">

**Author:** [@W1nter-3Z](https://discuss.elastic.co/u/W1nter-3Z)\
**Replies:** 9\
**Last updated:** [August 13, 2020, 12:19pm UTC](https://discuss.elastic.co/t/user-docker-to-build-elasticsearch-cluster-on-multi-machine/244845 "2020-08-13T12:19:00Z")

</div>

Machine A runs 3 es nodes , Machine B adds a new data nodes it faield when joining the cluster on A machine A es master node settings: cluster.name: es-cluster node.name: es-master node.master: tru…

---

## [Autocomplete Query](https://discuss.elastic.co/t/autocomplete-query/244875)

<div class="topic-metadata">

**Author:** [@chivas](https://discuss.elastic.co/u/chivas)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 12:18pm UTC](https://discuss.elastic.co/t/autocomplete-query/244875 "2020-08-13T12:18:37Z")

</div>

Hi, I have currently implemented autocomplete feature by using search\_as\_you\_type datatype, I use the copy\_to parameter to copy vaules from multiple fields into a new field. e.g. values in name, address, designation fi…

---

## [Tuning SSD Performance](https://discuss.elastic.co/t/tuning-ssd-performance/244557)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 5\
**Last updated:** [August 13, 2020, 11:16am UTC](https://discuss.elastic.co/t/tuning-ssd-performance/244557 "2020-08-13T11:16:01Z")

</div>

Hi, Is there an aggregated, and detailed, source of information regarding optimising nvme ssd config for indexing heavy use cases with elasticsearch? Thx D

---

## [Segregating elasticsearch search results](https://discuss.elastic.co/t/segregating-elasticsearch-search-results/244865)

<div class="topic-metadata">

**Author:** [@Abhishek\_Chauhan](https://discuss.elastic.co/u/Abhishek_Chauhan)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 11:12am UTC](https://discuss.elastic.co/t/segregating-elasticsearch-search-results/244865 "2020-08-13T11:12:42Z")

</div>

Hello all, I have the following query:- i have five indexes in my ES cluster and i want to search for a term in all the indexes. As we already know that by default, ES returns 10 documents that match the term.So all th…

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

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