# Elasticsearch

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

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

**Page:** 724

---

## [How does one restore just missing backups from a snapshot](https://discuss.elastic.co/t/how-does-one-restore-just-missing-backups-from-a-snapshot/261308)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 9:10pm UTC](https://discuss.elastic.co/t/how-does-one-restore-just-missing-backups-from-a-snapshot/261308 "2021-01-17T21:10:55Z")

</div>

I am recovering from a disaster with my cluster and I have a lost about 150 out of 500 indexes. What I would like to do is restore just the missing ones from kibana but not the ones that are OK. Is there a way to do t…

---

## [Can't curl a just installed elastic in a vm - time out issues](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359)

<div class="topic-metadata">

**Author:** [@Simon\_Poirier](https://discuss.elastic.co/u/Simon_Poirier)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 7:39pm UTC](https://discuss.elastic.co/t/cant-curl-a-just-installed-elastic-in-a-vm-time-out-issues/261359 "2021-01-17T19:39:27Z")

</div>

Hi there, I have a VM with Elastic and kibana working fine in an 20.04 ubuntu. I am now trying to send curl operations on the rest api, from my host, but i got timed out. in the vm it's working fine. when i do : sudo …

---

## [How does Elasticsearch map Integer doc IDs to shards](https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329)

<div class="topic-metadata">

**Author:** [@rex-remind](https://discuss.elastic.co/u/rex-remind)\
**Replies:** 7\
**Last updated:** [January 17, 2021, 6:58pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-map-integer-doc-ids-to-shards/261329 "2021-01-17T18:58:59Z")

</div>

How does Elasticsearch map Integer doc IDs to shards? What algorithm does it use? I've been digging around but haven't seemed to find the answer. For context, every document we have has an id that's a row id from postg…

---

## [Elasticsearch: Failed to obtain node locks](https://discuss.elastic.co/t/elasticsearch-failed-to-obtain-node-locks/260102)

<div class="topic-metadata">

**Author:** [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Replies:** 12\
**Last updated:** [January 17, 2021, 6:34pm UTC](https://discuss.elastic.co/t/elasticsearch-failed-to-obtain-node-locks/260102 "2021-01-17T18:34:45Z")

</div>

Kibana version : 7.8.0 Elasticsearch version : 7.8.0 APM Server version : 7.8.0 Hi Team My elasticsearch server is up and running from more than 2-3 months. All of a sudden it's down today. When I tried to debug I se…

---

## [Elasticsearch OpenJDK process takes over every available TCP port](https://discuss.elastic.co/t/elasticsearch-openjdk-process-takes-over-every-available-tcp-port/261107)

<div class="topic-metadata">

**Author:** [@MiriamJu](https://discuss.elastic.co/u/MiriamJu)\
**Replies:** 5\
**Last updated:** [January 17, 2021, 12:42pm UTC](https://discuss.elastic.co/t/elasticsearch-openjdk-process-takes-over-every-available-tcp-port/261107 "2021-01-17T12:42:16Z")

</div>

Hi, I am facing an issue with Elastic Search: In one of our PCs, The ES Java process took over every available TCP port on the system and held them, so the system entered TCP starvation and failed to continue functionin…

---

## [Direct correlation between pending tasks and GC](https://discuss.elastic.co/t/direct-correlation-between-pending-tasks-and-gc/260704)

<div class="topic-metadata">

**Author:** [@tutunak](https://discuss.elastic.co/u/tutunak)\
**Replies:** 6\
**Last updated:** [January 17, 2021, 12:23pm UTC](https://discuss.elastic.co/t/direct-correlation-between-pending-tasks-and-gc/260704 "2021-01-17T12:23:31Z")

</div>

Hi for all my clusters I see the direct correlation between pending tasks and GC time. What can I do with that? How can avoid this situation?

---

## [Lucene commit failed: checksum failed, while indexing](https://discuss.elastic.co/t/lucene-commit-failed-checksum-failed-while-indexing/253215)

<div class="topic-metadata">

**Author:** [@SuperToma](https://discuss.elastic.co/u/SuperToma)\
**Replies:** 1\
**Last updated:** [January 17, 2021, 8:44am UTC](https://discuss.elastic.co/t/lucene-commit-failed-checksum-failed-while-indexing/253215 "2021-01-17T08:44:07Z")

</div>

Hello guys ! I'm faced with this error while indexing: \[2020-10-24T18:18:31,520\]\[WARN \]\[o.e.i.e.Engine \] \[mini-server\] \[release\]\[0\] failed engine \[lucene commit failed\] org.apache.lucene.index.CorruptInde…

---

## [Why replica shard is not allocated](https://discuss.elastic.co/t/why-replica-shard-is-not-allocated/259768)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 16\
**Last updated:** [January 17, 2021, 8:30am UTC](https://discuss.elastic.co/t/why-replica-shard-is-not-allocated/259768 "2021-01-17T08:30:03Z")

</div>

I have 8 nodes of cluster 3 master node 3 data node and 2 coordinate node.Everyday i saw this Missing replica shards and manually i close those index and open and then refresh those index in kibana and my problem gets so…

---

## ['Access Denied' trying to open Elasticsearch for first time on Windows 10](https://discuss.elastic.co/t/access-denied-trying-to-open-elasticsearch-for-first-time-on-windows-10/261343)

<div class="topic-metadata">

**Author:** [@Rookie2011](https://discuss.elastic.co/u/Rookie2011)\
**Replies:** 1\
**Last updated:** [January 17, 2021, 8:15am UTC](https://discuss.elastic.co/t/access-denied-trying-to-open-elasticsearch-for-first-time-on-windows-10/261343 "2021-01-17T08:15:01Z")

</div>

C:\\Users\\jorda\>cd C:\\Program Files\\Elastic\\Elasticsearch\\7.10.2 C:\\Program Files\\Elastic\\Elasticsearch\\7.10.2\>bin\>elasticsearch-setup-passwords auto Access is denied.

---

## [Score calculation with nested object](https://discuss.elastic.co/t/score-calculation-with-nested-object/261340)

<div class="topic-metadata">

**Author:** [@Indy](https://discuss.elastic.co/u/Indy)\
**Replies:** 0\
**Last updated:** [January 17, 2021, 12:24am UTC](https://discuss.elastic.co/t/score-calculation-with-nested-object/261340 "2021-01-17T00:24:02Z")

</div>

Hello ! I try to do this : I have books, books have many tags. It's a nested relation ! When a user search "starwars vador", I search in all books to find books with this tags. If a book has tags "starwars" and "vado…

---

## [Service elasticsearch start but not the ports](https://discuss.elastic.co/t/service-elasticsearch-start-but-not-the-ports/261292)

<div class="topic-metadata">

**Author:** [@Emiliano\_Baum](https://discuss.elastic.co/u/Emiliano_Baum)\
**Replies:** 2\
**Last updated:** [January 16, 2021, 11:17pm UTC](https://discuss.elastic.co/t/service-elasticsearch-start-but-not-the-ports/261292 "2021-01-16T23:17:36Z")

</div>

Hi , I am struggling with a rare problem, the elasticsearch service starts but not the ports. I have been running a maintenance routine on my cluster and in two nodes I have the same problem, the elastic search service…

---

## [Why 1000 shards?](https://discuss.elastic.co/t/why-1000-shards/261324)

<div class="topic-metadata">

**Author:** [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Replies:** 1\
**Last updated:** [January 16, 2021, 11:17pm UTC](https://discuss.elastic.co/t/why-1000-shards/261324 "2021-01-16T23:17:17Z")

</div>

Why elasticsearch has 1000 shards at a cluster level is there any specific reason because i know too many shards causes memory problem, query speed low, recovery of shards etc

---

## [Elasticsearch: Snapshot repository - index compression - "hard" archiving](https://discuss.elastic.co/t/elasticsearch-snapshot-repository-index-compression-hard-archiving/261334)

<div class="topic-metadata">

**Author:** [@Rysiu](https://discuss.elastic.co/u/Rysiu)\
**Replies:** 1\
**Last updated:** [January 16, 2021, 9:37pm UTC](https://discuss.elastic.co/t/elasticsearch-snapshot-repository-index-compression-hard-archiving/261334 "2021-01-16T21:37:56Z")

</div>

Hi! Are the snapshots taken within elasticsearch repositories compressed in some fairly efficient way by default? When you "permanently" secure (e.g. BD-ROM) a snapshot repository, is it worth compressing it to some ar…

---

## [Match all terms of field with fuzziness](https://discuss.elastic.co/t/match-all-terms-of-field-with-fuzziness/261323)

<div class="topic-metadata">

**Author:** [@floryan](https://discuss.elastic.co/u/floryan)\
**Replies:** 0\
**Last updated:** [January 16, 2021, 5:34pm UTC](https://discuss.elastic.co/t/match-all-terms-of-field-with-fuzziness/261323 "2021-01-16T17:34:01Z")

</div>

Hi everyone, I've been trying to figure out how to perform a specific search but cannot wrap my head around it and was hoping that someone here could give me some helpful input. I'd like to write a query against one sp…

---

## [Start elasticsearch as a single node](https://discuss.elastic.co/t/start-elasticsearch-as-a-single-node/261317)

<div class="topic-metadata">

**Author:** [@Mohammad\_Mousavi](https://discuss.elastic.co/u/Mohammad_Mousavi)\
**Replies:** 1\
**Last updated:** [January 16, 2021, 10:30am UTC](https://discuss.elastic.co/t/start-elasticsearch-as-a-single-node/261317 "2021-01-16T10:30:50Z")

</div>

Hi, I have a cluster with 3 nodes. it's configured for 1 shard and 2 replica so all 3 nodes have all data. I have a back up of one of them, ( backup from VM ). I'm going to restore and start this backup as a single node…

---

## [The age of index which is using ilm policy management](https://discuss.elastic.co/t/the-age-of-index-which-is-using-ilm-policy-management/261198)

<div class="topic-metadata">

**Author:** [@carpeDiem](https://discuss.elastic.co/u/carpeDiem)\
**Replies:** 7\
**Last updated:** [January 16, 2021, 9:42am UTC](https://discuss.elastic.co/t/the-age-of-index-which-is-using-ilm-policy-management/261198 "2021-01-16T09:42:03Z")

</div>

Hello, I'm currently trying to configure and using ilm lifecycle management and data stream for my indices,we are metting a question,when the index was rollovered,the age of index will be reset,this got us into trouble.…

---

## [How to delete a write index that had no allocated shards](https://discuss.elastic.co/t/how-to-delete-a-write-index-that-had-no-allocated-shards/261304)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 0\
**Last updated:** [January 16, 2021, 2:51am UTC](https://discuss.elastic.co/t/how-to-delete-a-write-index-that-had-no-allocated-shards/261304 "2021-01-16T02:51:26Z")

</div>

ES 7.10 original title: how can I delete a write index which has no allocated shards. I started the post after struggling with this for a day but, as is often the case, the action of documenting the problem and and dou…

---

## [How to search parent document without children?](https://discuss.elastic.co/t/how-to-search-parent-document-without-children/261239)

<div class="topic-metadata">

**Author:** [@J\_Kit](https://discuss.elastic.co/u/J_Kit)\
**Replies:** 4\
**Last updated:** [January 16, 2021, 3:16am UTC](https://discuss.elastic.co/t/how-to-search-parent-document-without-children/261239 "2021-01-16T03:16:20Z")

</div>

I created parent-child relationship. "my\_join\_field": { "type": "join", "relations": { "parent": "child" } } I tried to search for all parent document with…

---

## [Configuring ILM hot cold delete policy on ES Cluster](https://discuss.elastic.co/t/configuring-ilm-hot-cold-delete-policy-on-es-cluster/259509)

<div class="topic-metadata">

**Author:** [@sandeepkanabar](https://discuss.elastic.co/u/sandeepkanabar)\
**Replies:** 5\
**Last updated:** [January 16, 2021, 3:21am UTC](https://discuss.elastic.co/t/configuring-ilm-hot-cold-delete-policy-on-es-cluster/259509 "2021-01-16T03:21:56Z")

</div>

I'm thinking to apply ILM policies on my ES cluster containing historical data that needs to be preserved for legal purposes with retention period being 7 years (85 months). This cluster used to have day-wise indices. I…

---

## [Plainless Query Cannot invoke \\"Object.getClass()\\" because \\"callArgs\[0\]\\" is null](https://discuss.elastic.co/t/plainless-query-cannot-invoke-object-getclass-because-callargs-0-is-null/261305)

<div class="topic-metadata">

**Author:** [@carpeDiem](https://discuss.elastic.co/u/carpeDiem)\
**Replies:** 0\
**Last updated:** [January 16, 2021, 3:16am UTC](https://discuss.elastic.co/t/plainless-query-cannot-invoke-object-getclass-because-callargs-0-is-null/261305 "2021-01-16T03:16:36Z")

</div>

Hello, I am using a painless scripting language to query,but the hit of result is empty. This is my query body POST test\_script-0/\_search { "\_source":true, "aggs":{}, "from":0, "highlig…

---

## [Python: Method to get connection pool details](https://discuss.elastic.co/t/python-method-to-get-connection-pool-details/261301)

<div class="topic-metadata">

**Author:** [@rpotnuru](https://discuss.elastic.co/u/rpotnuru)\
**Replies:** 0\
**Last updated:** [January 16, 2021, 12:00am UTC](https://discuss.elastic.co/t/python-method-to-get-connection-pool-details/261301 "2021-01-16T00:00:41Z")

</div>

Hello Team, We are using ElasticSearch Python client for talking to ES, Is there any api/method to get the following when using the ES client. total number of connections (active,closed, stale etc). total number of c…

---

## [Is there a simple way to get the execution times of Transport.perform\_request() method](https://discuss.elastic.co/t/is-there-a-simple-way-to-get-the-execution-times-of-transport-perform-request-method/261300)

<div class="topic-metadata">

**Author:** [@rpotnuru](https://discuss.elastic.co/u/rpotnuru)\
**Replies:** 0\
**Last updated:** [January 15, 2021, 11:58pm UTC](https://discuss.elastic.co/t/is-there-a-simple-way-to-get-the-execution-times-of-transport-perform-request-method/261300 "2021-01-15T23:58:14Z")

</div>

Hello Team, We are using ElasticSearch Python module in our application and would like to see if there is a way to capture execution times of Transport.perform\_request() method along with with some useful metadata of th…

---

## [ALgorithm in ElasticSearch for similarity distances between 2 floating vectors](https://discuss.elastic.co/t/algorithm-in-elasticsearch-for-similarity-distances-between-2-floating-vectors/259859)

<div class="topic-metadata">

**Author:** [@deshwal.mahesh](https://discuss.elastic.co/u/deshwal.mahesh)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 11:52pm UTC](https://discuss.elastic.co/t/algorithm-in-elasticsearch-for-similarity-distances-between-2-floating-vectors/259859 "2021-01-15T23:52:10Z")

</div>

Before I start, I seriously have no idea what Elastic is and How it works. I am ML Engineer and has recently been assigned the task for Image - Image similarity. I developed a model which will compare the distances betwe…

---

## [Transform aggregation is not keeping up](https://discuss.elastic.co/t/transform-aggregation-is-not-keeping-up/261176)

<div class="topic-metadata">

**Author:** [@Mike\_Connor](https://discuss.elastic.co/u/Mike_Connor)\
**Replies:** 6\
**Last updated:** [January 15, 2021, 9:27pm UTC](https://discuss.elastic.co/t/transform-aggregation-is-not-keeping-up/261176 "2021-01-15T21:27:36Z")

</div>

Hello, I am struggling with a transform that when originally deployed was performing, but after a seemingly minor change has now become slow and not able to keep up. The transform queries an index for the past 3 hours, …

---

## [Cluster nodes didn't recognize each others (ES-7.7.1)](https://discuss.elastic.co/t/cluster-nodes-didnt-recognize-each-others-es-7-7-1/260839)

<div class="topic-metadata">

**Author:** [@Guillaume\_Tiberi](https://discuss.elastic.co/u/Guillaume_Tiberi)\
**Replies:** 6\
**Last updated:** [January 15, 2021, 5:05pm UTC](https://discuss.elastic.co/t/cluster-nodes-didnt-recognize-each-others-es-7-7-1/260839 "2021-01-15T17:05:25Z")

</div>

Hi I want to build a 5 nodes ES cluster but nodes didn't recognized each others. Could you help me to well config this cluster ? It's like node didn't recognize themself to be the master-node (node-3 looking for master…

---

## [Date math rounding error](https://discuss.elastic.co/t/date-math-rounding-error/261116)

<div class="topic-metadata">

**Author:** [@bbailey](https://discuss.elastic.co/u/bbailey)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 3:38pm UTC](https://discuss.elastic.co/t/date-math-rounding-error/261116 "2021-01-15T15:38:44Z")

</div>

I've come across a strange issue which I think is a bug in the date math I create a daily snapshot of data once it is 10 days old using curator and the name of the snapshot is set to "name: \<{now/d-10d{YYYY-MM-dd}}\>" T…

---

## [Not enough master nodes/failed to retrieve user](https://discuss.elastic.co/t/not-enough-master-nodes-failed-to-retrieve-user/261165)

<div class="topic-metadata">

**Author:** [@pan\_e](https://discuss.elastic.co/u/pan_e)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 2:55pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-failed-to-retrieve-user/261165 "2021-01-15T14:55:46Z")

</div>

I'm using ElasticSearch 6.8 with 3 Nodes. I have set discovery.zen.minimum\_master\_nodes: 2 I'm trying to test what happens when there is only 1 node online. I've shut down 2 nodes and I can see the 3rd node goes into: …

---

## [Created a rollup job with a space in the ID and now i cannot stop it](https://discuss.elastic.co/t/created-a-rollup-job-with-a-space-in-the-id-and-now-i-cannot-stop-it/261187)

<div class="topic-metadata">

**Author:** [@Andrew22](https://discuss.elastic.co/u/Andrew22)\
**Replies:** 2\
**Last updated:** [January 15, 2021, 2:02pm UTC](https://discuss.elastic.co/t/created-a-rollup-job-with-a-space-in-the-id-and-now-i-cannot-stop-it/261187 "2021-01-15T14:02:07Z")

</div>

Hello, fairly new to rollup jobs here and i have created one called "new rollup" to play around with now i want to delete it but i have to stop it first and when i try to stop it i get this error POST \_rollup/job/new r…

---

## [Check-rollover-ready explain](https://discuss.elastic.co/t/check-rollover-ready-explain/261260)

<div class="topic-metadata">

**Author:** [@d4nnyx](https://discuss.elastic.co/u/d4nnyx)\
**Replies:** 2\
**Last updated:** [January 15, 2021, 1:40pm UTC](https://discuss.elastic.co/t/check-rollover-ready-explain/261260 "2021-01-15T13:40:20Z")

</div>

Hello guys, I have set up ILM policy on data stream and when I manually perform rollover trough rollover api, it's just a blink of an eye and new index is created. BUT, if I use ILM, there is some step called check-rol…

---

## [Java RestHighLevelClient: Offset stripped from query for Datehistogram in Composite aggregation](https://discuss.elastic.co/t/java-resthighlevelclient-offset-stripped-from-query-for-datehistogram-in-composite-aggregation/261259)

<div class="topic-metadata">

**Author:** [@jselberg](https://discuss.elastic.co/u/jselberg)\
**Replies:** 0\
**Last updated:** [January 15, 2021, 12:51pm UTC](https://discuss.elastic.co/t/java-resthighlevelclient-offset-stripped-from-query-for-datehistogram-in-composite-aggregation/261259 "2021-01-15T12:51:25Z")

</div>

Hi, We're trying to aggregate some data on a weekly basis, but we would like to adjust the calculation of weeks so that the weeks starts on Sundays instead. We've tried using the offset() operation from the DateHistogr…

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

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