# Elasticsearch

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

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

**Page:** 643

---

## [Elasticsearch cluster data migration](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538)

<div class="topic-metadata">

**Author:** [@rknd](https://discuss.elastic.co/u/rknd)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 2:36pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-data-migration/273538 "2021-05-20T14:36:10Z")

</div>

I have 10 nodes in one cluster(in a server). I want to dump all documents from this cluster. After that, import these docs to new cluster. The new cluster will be have only one node. I have followed this tutorial After …

---

## [How can I setup Alert and Actions privileges for a specific user role?](https://discuss.elastic.co/t/how-can-i-setup-alert-and-actions-privileges-for-a-specific-user-role/271121)

<div class="topic-metadata">

**Author:** [@Patr123](https://discuss.elastic.co/u/Patr123)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 2:22pm UTC](https://discuss.elastic.co/t/how-can-i-setup-alert-and-actions-privileges-for-a-specific-user-role/271121 "2021-05-20T14:22:23Z")

</div>

I am trying to setup roles in elasticsearch so that the user can create and setup alers in Alerts and Actions tab. I am getting "No permissions to create alerts" message in Alerts Tab. Any idea how I can setup these acce…

---

## [Painless Script - Unexpected characters](https://discuss.elastic.co/t/painless-script-unexpected-characters/273502)

<div class="topic-metadata">

**Author:** [@Leuteris](https://discuss.elastic.co/u/Leuteris)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 1:08pm UTC](https://discuss.elastic.co/t/painless-script-unexpected-characters/273502 "2021-05-20T13:08:03Z")

</div>

I am trying to update a doc using painless scripts. My document contain fields like "a4ayc/8" (the field name contains the character /). Document sample: { "\_index" : "user\_profile", "\_type" : "\_doc", "\_id"…

---

## [Search for text in a string](https://discuss.elastic.co/t/search-for-text-in-a-string/273457)

<div class="topic-metadata">

**Author:** [@cyberguy2891](https://discuss.elastic.co/u/cyberguy2891)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 1:06pm UTC](https://discuss.elastic.co/t/search-for-text-in-a-string/273457 "2021-05-20T13:06:15Z")

</div>

Hi, Im fairly new to elastic search and Ive been stuck on these for 8 hrs now. I have a log field like this: Retry Exhausted Error Get segment: GET request failed after 1 attempts to record the segment (final status co…

---

## [Painless Reindex Script saving long as integer](https://discuss.elastic.co/t/painless-reindex-script-saving-long-as-integer/273445)

<div class="topic-metadata">

**Author:** [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 12:44pm UTC](https://discuss.elastic.co/t/painless-reindex-script-saving-long-as-integer/273445 "2021-05-20T12:44:12Z")

</div>

Hi all, I am trying to use a painless script as part of a reindex to multiply a long by a number, and then save it as the source field. However, when the new value is saved it is saved as an integer instead of a long re…

---

## [Error WATCHER smtp.host](https://discuss.elastic.co/t/error-watcher-smtp-host/273516)

<div class="topic-metadata">

**Author:** [@milasi99](https://discuss.elastic.co/u/milasi99)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 12:31pm UTC](https://discuss.elastic.co/t/error-watcher-smtp-host/273516 "2021-05-20T12:31:43Z")

</div>

Hi, i have the elasticsearch version 7.12, and im trying do a Watcher. I have that error: Summary{ "watch\_id": "prueba", "node": "RWT064xBSfu5wmGh9bksrA", "state"…

---

## [How to chain synonyms in Elasticsearch](https://discuss.elastic.co/t/how-to-chain-synonyms-in-elasticsearch/273522)

<div class="topic-metadata">

**Author:** [@nik0219](https://discuss.elastic.co/u/nik0219)\
**Replies:** 0\
**Last updated:** [May 20, 2021, 12:02pm UTC](https://discuss.elastic.co/t/how-to-chain-synonyms-in-elasticsearch/273522 "2021-05-20T12:02:39Z")

</div>

In my Application I want to create the following hierarchy: hobby -\> sport -\> football When looking for the word hobby, I want to check for the words sport and football as well, when looking for the word sport I also w…

---

## [Are there any size limits snapshot in Elasticsearch](https://discuss.elastic.co/t/are-there-any-size-limits-snapshot-in-elasticsearch/273517)

<div class="topic-metadata">

**Author:** [@Armen\_Petrosyan](https://discuss.elastic.co/u/Armen_Petrosyan)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 11:48am UTC](https://discuss.elastic.co/t/are-there-any-size-limits-snapshot-in-elasticsearch/273517 "2021-05-20T11:48:52Z")

</div>

I would like to understand if there are any size limitations when save/restore snapshots? Are there such?

---

## [Reindex version conflict](https://discuss.elastic.co/t/reindex-version-conflict/273352)

<div class="topic-metadata">

**Author:** [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Replies:** 4\
**Last updated:** [May 20, 2021, 10:35am UTC](https://discuss.elastic.co/t/reindex-version-conflict/273352 "2021-05-20T10:35:19Z")

</div>

Hello, What is exactly a version conflict ? An example will be appreciated. Thank you

---

## [Range-Query not working l](https://discuss.elastic.co/t/range-query-not-working-l/273496)

<div class="topic-metadata">

**Author:** [@Rammi22](https://discuss.elastic.co/u/Rammi22)\
**Replies:** 3\
**Last updated:** [May 20, 2021, 9:49am UTC](https://discuss.elastic.co/t/range-query-not-working-l/273496 "2021-05-20T09:49:42Z")

</div>

Hello, I use: Elasticsearch-PHP ElasticsearchDSL Configurated search query: array(2) { \["index"\]=\> string(19) "my\_index\_\*" \["body"\]=\> array(4) { \["query"\]=\> array(1) { \["range"\]=\> array(…

---

## [Elasticsearch - added LDAP authentication, node won't start](https://discuss.elastic.co/t/elasticsearch-added-ldap-authentication-node-wont-start/273499)

<div class="topic-metadata">

**Author:** [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 9:44am UTC](https://discuss.elastic.co/t/elasticsearch-added-ldap-authentication-node-wont-start/273499 "2021-05-20T09:44:13Z")

</div>

Dears, ELK 7.7.0 With bellow configuration my node won't start: cluster.name: elkcluster node.name: elkcluster01 path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch network.host: 10.10.10.1 http.port: …

---

## [Changing the score of the results based on a field's value \[Java\]](https://discuss.elastic.co/t/changing-the-score-of-the-results-based-on-a-fields-value-java/273490)

<div class="topic-metadata">

**Author:** [@oasis\_agano](https://discuss.elastic.co/u/oasis_agano)\
**Replies:** 0\
**Last updated:** [May 20, 2021, 8:11am UTC](https://discuss.elastic.co/t/changing-the-score-of-the-results-based-on-a-fields-value-java/273490 "2021-05-20T08:11:13Z")

</div>

I am trying to change the order of the results based on a keyword field. something similar to this but with the java client. { "query": { "function\_score": { "functions": \[ { …

---

## [Want to find all document in elastic search in Node JS using aggregation](https://discuss.elastic.co/t/want-to-find-all-document-in-elastic-search-in-node-js-using-aggregation/273281)

<div class="topic-metadata">

**Author:** [@Anjali\_Gupta](https://discuss.elastic.co/u/Anjali_Gupta)\
**Replies:** 5\
**Last updated:** [May 20, 2021, 7:53am UTC](https://discuss.elastic.co/t/want-to-find-all-document-in-elastic-search-in-node-js-using-aggregation/273281 "2021-05-20T07:53:37Z")

</div>

Here is my code, i have lakhs of document in transactions\_development index and in below code I am getting only 10 hits inside body but I want to fetch lakhs of hits const totalDebited = await esClient.search({ index: …

---

## [How to access term\_vectors (payloads) from painless script](https://discuss.elastic.co/t/how-to-access-term-vectors-payloads-from-painless-script/273481)

<div class="topic-metadata">

**Author:** [@JF2018](https://discuss.elastic.co/u/JF2018)\
**Replies:** 0\
**Last updated:** [May 20, 2021, 7:30am UTC](https://discuss.elastic.co/t/how-to-access-term-vectors-payloads-from-painless-script/273481 "2021-05-20T07:30:35Z")

</div>

Hi I am using elastic 7.5.2. I have seen multiple examples on how to access term\_vectors (payloads) via groovy scripts. I though only have painless scripting available, so any help on how to access term\_vectors (payload…

---

## [Cpu utilization 100 percent - Elasticsearch](https://discuss.elastic.co/t/cpu-utilization-100-percent-elasticsearch/273291)

<div class="topic-metadata">

**Author:** [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)\
**Replies:** 4\
**Last updated:** [May 20, 2021, 7:23am UTC](https://discuss.elastic.co/t/cpu-utilization-100-percent-elasticsearch/273291 "2021-05-20T07:23:10Z")

</div>

My monitoring cluster is showing 99 percent Cpu usage during writes. Is it normal? If it's a 4 cpu node, does it mean that max is 400 percent?

---

## [Index Patterns containing frozen indices](https://discuss.elastic.co/t/index-patterns-containing-frozen-indices/273471)

<div class="topic-metadata">

**Author:** [@leemase004](https://discuss.elastic.co/u/leemase004)\
**Replies:** 0\
**Last updated:** [May 20, 2021, 5:52am UTC](https://discuss.elastic.co/t/index-patterns-containing-frozen-indices/273471 "2021-05-20T05:52:58Z")

</div>

We have noticed on our system that our search\_throttled thread pool has an extremely high number of rejected request. Each node has about ~4k-6k. To my understanding, the search\_throttled thread pool is reserved specifi…

---

## [How to link HunSpell files \`.dic\` and \`.aff\` separately to stemmer config?](https://discuss.elastic.co/t/how-to-link-hunspell-files-dic-and-aff-separately-to-stemmer-config/273329)

<div class="topic-metadata">

**Author:** [@GokulNC](https://discuss.elastic.co/u/GokulNC)\
**Replies:** 2\
**Last updated:** [May 20, 2021, 5:45am UTC](https://discuss.elastic.co/t/how-to-link-hunspell-files-dic-and-aff-separately-to-stemmer-config/273329 "2021-05-20T05:45:08Z")

</div>

Question: In HunSpell Token-Filter Analyzer (for Dictionary-based Stemming), while configuring its parameters, is it possible to specify separate full-paths for .dic and .aff files instead of having to set a common dire…

---

## [Elasticsearch slow query log pattern too big](https://discuss.elastic.co/t/elasticsearch-slow-query-log-pattern-too-big/273462)

<div class="topic-metadata">

**Author:** [@Izek](https://discuss.elastic.co/u/Izek)\
**Replies:** 0\
**Last updated:** [May 20, 2021, 2:15am UTC](https://discuss.elastic.co/t/elasticsearch-slow-query-log-pattern-too-big/273462 "2021-05-20T02:15:55Z")

</div>

I try to debug on the slow query but found out that all the slow query logs pattern are corrupt and cannot be parse by filebeat. Is there any way to increase the pattern size Below is the example, I cut most of the det…

---

## [The problems of memory of ES7.12](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461)

<div class="topic-metadata">

**Author:** [@lichuandev](https://discuss.elastic.co/u/lichuandev)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 2:10am UTC](https://discuss.elastic.co/t/the-problems-of-memory-of-es7-12/273461 "2021-05-20T02:10:04Z")

</div>

I use ES to store files, and the size of each file is within 100kb. The following two problems encountered in the use process have not been solved: 1.We set the requests cache: false, and the memory will still slowly re…

---

## [Best practices/recommendations for structuring log indices for a lot of apps](https://discuss.elastic.co/t/best-practices-recommendations-for-structuring-log-indices-for-a-lot-of-apps/273254)

<div class="topic-metadata">

**Author:** [@lancer\_enkor](https://discuss.elastic.co/u/lancer_enkor)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 1:52am UTC](https://discuss.elastic.co/t/best-practices-recommendations-for-structuring-log-indices-for-a-lot-of-apps/273254 "2021-05-20T01:52:32Z")

</div>

Hi, I'm building an ES cluster for application logs. The problem is that we have a lot of apps and a lot of environments. Every app and every env can have different retention times, so I can have let say over 100 apps t…

---

## [How to perform nested aggregation in child parent relationship](https://discuss.elastic.co/t/how-to-perform-nested-aggregation-in-child-parent-relationship/273372)

<div class="topic-metadata">

**Author:** [@Waseem\_Farooqui](https://discuss.elastic.co/u/Waseem_Farooqui)\
**Replies:** 0\
**Last updated:** [May 19, 2021, 8:02am UTC](https://discuss.elastic.co/t/how-to-perform-nested-aggregation-in-child-parent-relationship/273372 "2021-05-19T08:02:52Z")

</div>

Hi, I am using elasticsearch 7.11 and have implemented parent child relation on of the base reason was my updates were very frequent and time a new child could be added under 1 parent, My project is something managing …

---

## [Sort by a field containing array of strings with sort mode min](https://discuss.elastic.co/t/sort-by-a-field-containing-array-of-strings-with-sort-mode-min/273215)

<div class="topic-metadata">

**Author:** [@curlyheads](https://discuss.elastic.co/u/curlyheads)\
**Replies:** 1\
**Last updated:** [May 19, 2021, 9:57pm UTC](https://discuss.elastic.co/t/sort-by-a-field-containing-array-of-strings-with-sort-mode-min/273215 "2021-05-19T21:57:54Z")

</div>

Hi everybody, I want to sort the following example documents by the first array value of the field "name": curl -X PUT "localhost:9200/my-index-000001/\_doc/1?refresh&pretty" -H 'Content-Type: application/json' -d' { …

---

## [Configuring network.host and network.publish\_host in dual stack environment](https://discuss.elastic.co/t/configuring-network-host-and-network-publish-host-in-dual-stack-environment/273342)

<div class="topic-metadata">

**Author:** [@mahudees](https://discuss.elastic.co/u/mahudees)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 5:08pm UTC](https://discuss.elastic.co/t/configuring-network-host-and-network-publish-host-in-dual-stack-environment/273342 "2021-05-19T17:08:08Z")

</div>

Need to create a elasticsearch cluster where the environment is dual stack. From the document came to know that we can configure network.host: 0.0.0.0 to make it bind on all the available interfaces, in this case it can…

---

## [How to handle error mapping](https://discuss.elastic.co/t/how-to-handle-error-mapping/273399)

<div class="topic-metadata">

**Author:** [@Rizky\_Hudha](https://discuss.elastic.co/u/Rizky_Hudha)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 2:34pm UTC](https://discuss.elastic.co/t/how-to-handle-error-mapping/273399 "2021-05-19T14:34:30Z")

</div>

hallo I tried to make a mapping for my needs, but an error appeared, can you help with my error, and this my mappping PUT /badilums { "mappings":{ "properties":{ "badilum\_perkara":{ …

---

## [@timestamp field problem while reading data from elasticsearch using spark-sql](https://discuss.elastic.co/t/timestamp-field-problem-while-reading-data-from-elasticsearch-using-spark-sql/273382)

<div class="topic-metadata">

**Author:** [@Gokul6](https://discuss.elastic.co/u/Gokul6)\
**Replies:** 1\
**Last updated:** [May 19, 2021, 1:49pm UTC](https://discuss.elastic.co/t/timestamp-field-problem-while-reading-data-from-elasticsearch-using-spark-sql/273382 "2021-05-19T13:49:16Z")

</div>

i am trying to read data from elasticsearch using spark-sql, my index contains @timestamp field. below is my query the field name contains a special character so i am escaping it. the problem here is i am not getting…

---

## [Access payload from payload\_delimiter in scoring script](https://discuss.elastic.co/t/access-payload-from-payload-delimiter-in-scoring-script/273407)

<div class="topic-metadata">

**Author:** [@JF2018](https://discuss.elastic.co/u/JF2018)\
**Replies:** 0\
**Last updated:** [May 19, 2021, 1:02pm UTC](https://discuss.elastic.co/t/access-payload-from-payload-delimiter-in-scoring-script/273407 "2021-05-19T13:02:15Z")

</div>

Hi I have trouble doing something like this, in es7. Can anyone help me, on how to access the payloads, from payload\_delimiter, from my script\_score? score=0; for (term: my\_terms) { termInfo = \_index\['text'\].get…

---

## [SQL Views in Elastic](https://discuss.elastic.co/t/sql-views-in-elastic/273408)

<div class="topic-metadata">

**Author:** [@6igwig](https://discuss.elastic.co/u/6igwig)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 1:40pm UTC](https://discuss.elastic.co/t/sql-views-in-elastic/273408 "2021-05-19T13:40:22Z")

</div>

Is there functionality in Elasticsearch that would be comparable to that of a view in SQL? What I would like to do is use a query (a complex aggregation) as the "definition" of a new index. Lets say I have index-A that…

---

## [Update mappings on index](https://discuss.elastic.co/t/update-mappings-on-index/273299)

<div class="topic-metadata">

**Author:** [@Cesidio\_DiBenedetto](https://discuss.elastic.co/u/Cesidio_DiBenedetto)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 1:03pm UTC](https://discuss.elastic.co/t/update-mappings-on-index/273299 "2021-05-19T13:03:09Z")

</div>

If I add a few new fields in my index but are not currently being populated because our caching job hasn't been updated to match, will that break current inserts/updates on that index? Edit: Basically added a few new "f…

---

## [Encrypt HTTP Client](https://discuss.elastic.co/t/encrypt-http-client/273245)

<div class="topic-metadata">

**Author:** [@NareshReddy](https://discuss.elastic.co/u/NareshReddy)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 11:54am UTC](https://discuss.elastic.co/t/encrypt-http-client/273245 "2021-05-19T11:54:40Z")

</div>

When updating the certificate using the following commands "elasticsearch-certutil http". At end it is showing the error. Exception in thread "main" java.lang.IllegalArgumentException: ca certificate is not a CA! at o…

---

## [Index not moving to next phase](https://discuss.elastic.co/t/index-not-moving-to-next-phase/273376)

<div class="topic-metadata">

**Author:** [@Dzious](https://discuss.elastic.co/u/Dzious)\
**Replies:** 3\
**Last updated:** [May 19, 2021, 11:49am UTC](https://discuss.elastic.co/t/index-not-moving-to-next-phase/273376 "2021-05-19T11:49:25Z")

</div>

Hi, I'm struggleling with ILM. Using Kibana, I've setup a policy where after a day index should be moved to a warm phase and after 3 days they should be moved to a cold phase. Unfortunately, even with this policy enab…

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

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