# Elasticsearch

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

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

**Page:** 1271

---

## [Attaching Multiple Service to ElasticSearch](https://discuss.elastic.co/t/attaching-multiple-service-to-elasticsearch/184665)

<div class="topic-metadata">

**Author:** [@alin](https://discuss.elastic.co/u/alin)\
**Replies:** 3\
**Last updated:** [June 8, 2019, 3:22am UTC](https://discuss.elastic.co/t/attaching-multiple-service-to-elasticsearch/184665 "2019-06-08T03:22:52Z")

</div>

I have trouble indexing a large DB to ElasticSearch. I would like to have two services talk to ES. One would back index data and the other index in real time. Is this possible and any suggestions/resources to achieve thi…

---

## [Shard stuck in Relocating which block hot to warm process](https://discuss.elastic.co/t/shard-stuck-in-relocating-which-block-hot-to-warm-process/184811)

<div class="topic-metadata">

**Author:** [@xiang-liu-exa](https://discuss.elastic.co/u/xiang-liu-exa)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 8:35pm UTC](https://discuss.elastic.co/t/shard-stuck-in-relocating-which-block-hot-to-warm-process/184811 "2019-06-07T20:35:57Z")

</div>

We have a cluster of 8 hot nodes and 32 warm nodes and a process to auto move old index from hot to warm. This process works well until this week when it moves index-2019.05.12. index-2019.05.12 has 40 primary shards a…

---

## [Xpack Watcher Java API](https://discuss.elastic.co/t/xpack-watcher-java-api/183623)

<div class="topic-metadata">

**Author:** [@Aparna\_Kancharla](https://discuss.elastic.co/u/Aparna_Kancharla)\
**Replies:** 5\
**Last updated:** [June 7, 2019, 7:04pm UTC](https://discuss.elastic.co/t/xpack-watcher-java-api/183623 "2019-06-07T19:04:37Z")

</div>

Hi, I am trying to follow the guide linked below for creating a WatchSource using WatchSourceBuilder following the instructions. I have setup the Maven repository and through trial and error (looking at github repos…

---

## [CIRCLE geometry is not supported?](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505)

<div class="topic-metadata">

**Author:** [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 4:39pm UTC](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505 "2019-06-07T16:39:28Z")

</div>

hello I query by geo\_shape but got this error unsupported\_operation\_exception: CIRCLE geometry is not supported the dsl as followed, { "query": { "geo\_shape": { "location": { "shape": { …

---

## [How to do a parent document count on a child condition in a parent child mapping?](https://discuss.elastic.co/t/how-to-do-a-parent-document-count-on-a-child-condition-in-a-parent-child-mapping/184785)

<div class="topic-metadata">

**Author:** [@Stevens\_Laurent](https://discuss.elastic.co/u/Stevens_Laurent)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 4:18pm UTC](https://discuss.elastic.co/t/how-to-do-a-parent-document-count-on-a-child-condition-in-a-parent-child-mapping/184785 "2019-06-07T16:18:55Z")

</div>

Hello, I'm in a Parent Child mapping and I'm actually trying to do a parent document count on a child condition. My mapping says Parent is a Treatment and child is an event. Event document has a TYP\_EVE that is an erro…

---

## [Combining must, should, and must\_not](https://discuss.elastic.co/t/combining-must-should-and-must-not/184781)

<div class="topic-metadata">

**Author:** [@Kinbaum](https://discuss.elastic.co/u/Kinbaum)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 3:22pm UTC](https://discuss.elastic.co/t/combining-must-should-and-must-not/184781 "2019-06-07T15:22:49Z")

</div>

Hello, I am working with elasticsearch within Gentics Mesh CMS and I'm trying to construct a query that returns a series of nodes. I have two nodes tagged with keywordA. One of those nodes has tag keywordB. Based on the …

---

## [Cluster node master lost error 503](https://discuss.elastic.co/t/cluster-node-master-lost-error-503/184778)

<div class="topic-metadata">

**Author:** [@Daniel\_Bergmann](https://discuss.elastic.co/u/Daniel_Bergmann)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 3:00pm UTC](https://discuss.elastic.co/t/cluster-node-master-lost-error-503/184778 "2019-06-07T15:00:01Z")

</div>

Hello, I have a cluster with 3 nodes in the maximum limit of 1000 shards in each node, there are more than 1000 indexes that were automatically created by a template by logstash, everything ok here, but nothing started …

---

## [How to using scripted field value in watcher?](https://discuss.elastic.co/t/how-to-using-scripted-field-value-in-watcher/184001)

<div class="topic-metadata">

**Author:** [@yagami23](https://discuss.elastic.co/u/yagami23)\
**Replies:** 3\
**Last updated:** [June 7, 2019, 2:50pm UTC](https://discuss.elastic.co/t/how-to-using-scripted-field-value-in-watcher/184001 "2019-06-07T14:50:59Z")

</div>

Hi , i have created a scripted field called "duration" which will return in number. and i confirm this scripted field value is showing in Kibana when query. If i want to show this scripted field value by using watcher,…

---

## [Structure elasticsearch for 50 million fields](https://discuss.elastic.co/t/structure-elasticsearch-for-50-million-fields/184134)

<div class="topic-metadata">

**Author:** [@Niels\_van\_Rijn](https://discuss.elastic.co/u/Niels_van_Rijn)\
**Replies:** 12\
**Last updated:** [June 7, 2019, 10:41am UTC](https://discuss.elastic.co/t/structure-elasticsearch-for-50-million-fields/184134 "2019-06-07T10:41:49Z")

</div>

Hi! I have a dataset of 43536000 fields (I can't make it smaller, I already removed fields). With normal Elasticsearch settings (1000 shards per node and 1000 fields per index) I would have to make 44 nodes in my Elast…

---

## [Elastic Cloud - How to fix "number of fields exceeds the automatic field expansion limit"](https://discuss.elastic.co/t/elastic-cloud-how-to-fix-number-of-fields-exceeds-the-automatic-field-expansion-limit/181921)

<div class="topic-metadata">

**Author:** [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 2:27pm UTC](https://discuss.elastic.co/t/elastic-cloud-how-to-fix-number-of-fields-exceeds-the-automatic-field-expansion-limit/181921 "2019-06-07T14:27:30Z")

</div>

Hi, On Elastic Cloud 6.7 and 6.8 I get the above warning when running the 7.0 upgrade assistant. How do I solve this? I found you can set indices.query.bool.max\_clause\_count but Elastic Cloud does not allow modifying t…

---

## [Recreate a cluster with the same cluster\_uuid in k8s stetefullset configuration](https://discuss.elastic.co/t/recreate-a-cluster-with-the-same-cluster-uuid-in-k8s-stetefullset-configuration/184731)

<div class="topic-metadata">

**Author:** [@nilubkal](https://discuss.elastic.co/u/nilubkal)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 2:27pm UTC](https://discuss.elastic.co/t/recreate-a-cluster-with-the-same-cluster-uuid-in-k8s-stetefullset-configuration/184731 "2019-06-07T14:27:23Z")

</div>

Hello , i'm able to upgrade eleasticsearch from v 6.6.0 to 7.1.1 using the officially provided docker in a stetefull set in kubernetes without a problem. After applying the cluster.initial\_master\_nodes with a list of 3 …

---

## [Update a document in a watcher](https://discuss.elastic.co/t/update-a-document-in-a-watcher/184066)

<div class="topic-metadata">

**Author:** [@mostafa\_hassan](https://discuss.elastic.co/u/mostafa_hassan)\
**Replies:** 3\
**Last updated:** [June 7, 2019, 2:08pm UTC](https://discuss.elastic.co/t/update-a-document-in-a-watcher/184066 "2019-06-07T14:08:22Z")

</div>

Continuing the discussion from Is it possible to update a document in watcher: The proposed answer shows how to CREATE a document using index action, but the real question is how to update a document from a watcher. Th…

---

## [How to add more Attributes to the Completion Suggester](https://discuss.elastic.co/t/how-to-add-more-attributes-to-the-completion-suggester/183330)

<div class="topic-metadata">

**Author:** [@rogito\_manda](https://discuss.elastic.co/u/rogito_manda)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 2:03pm UTC](https://discuss.elastic.co/t/how-to-add-more-attributes-to-the-completion-suggester/183330 "2019-06-07T14:03:42Z")

</div>

I want to build an Autocomplete from a query datasets. This Dataset contains some attributes like: Session ID, Query, Timestamp and more.. So i´ve build an Autocomplete feature with the "Completion Suggester" first, w…

---

## [Count Occurrence Of Value](https://discuss.elastic.co/t/count-occurrence-of-value/184551)

<div class="topic-metadata">

**Author:** [@dkelsen](https://discuss.elastic.co/u/dkelsen)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 1:19pm UTC](https://discuss.elastic.co/t/count-occurrence-of-value/184551 "2019-06-07T13:19:12Z")

</div>

Hi, I'm trying to figure out how to get the total number of occurrences of a certain value in an index. I've tried using Value Count Aggregation, but that doesn't seem to work. "\_source" : { "category" : \[ …

---

## [Update\_by\_query crashing w/large scroll\_size](https://discuss.elastic.co/t/update-by-query-crashing-w-large-scroll-size/182291)

<div class="topic-metadata">

**Author:** [@Bobby\_Buten](https://discuss.elastic.co/u/Bobby_Buten)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 1:11pm UTC](https://discuss.elastic.co/t/update-by-query-crashing-w-large-scroll-size/182291 "2019-06-07T13:11:26Z")

</div>

I have the following issue with update\_by\_query, it crashes when my scroll\_size is large Using Elasticsearch 5.5.3 My index has 1 shard I use this \_update\_by\_query, I'm trying to add a username to \_licensed\_byPOST /my\_…

---

## [Index Mapping v/s Template](https://discuss.elastic.co/t/index-mapping-v-s-template/184741)

<div class="topic-metadata">

**Author:** [@Prabhav](https://discuss.elastic.co/u/Prabhav)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 12:39pm UTC](https://discuss.elastic.co/t/index-mapping-v-s-template/184741 "2019-06-07T12:39:17Z")

</div>

Can someone explain the major points of difference between Index Mapping and Template, since many examples described were not clear enough, Can someone explain difference with an example?

---

## [Cannot detect 4 nodes in a cluster](https://discuss.elastic.co/t/cannot-detect-4-nodes-in-a-cluster/184749)

<div class="topic-metadata">

**Author:** [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 12:19pm UTC](https://discuss.elastic.co/t/cannot-detect-4-nodes-in-a-cluster/184749 "2019-06-07T12:19:22Z")

</div>

I have a cluster with 4 nodes and using ES version 7.1. I got a problem. Only 3 nodes were detected. 2019-06-03T00:00:16,061\]\[WARN \]\[o.e.c.c.ClusterFormationFailureHelper\] \[lenovoda-os-node-1\] master not discovered or …

---

## [What does this error code means?](https://discuss.elastic.co/t/what-does-this-error-code-means/184748)

<div class="topic-metadata">

**Author:** [@Vikash\_Singh1](https://discuss.elastic.co/u/Vikash_Singh1)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 12:14pm UTC](https://discuss.elastic.co/t/what-does-this-error-code-means/184748 "2019-06-07T12:14:53Z")

</div>

\[WARN \] 2019-06-07 16:40:35.383 \[Ruby-0-Thread-29: :1\] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=\>"http://10.11.109.5:9200/", :error\_type=\>LogStash::Outputs::ElasticSe…

---

## [How to send "Hello World " from Netbeans into Elasticsearch Index](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728)

<div class="topic-metadata">

**Author:** [@samyo](https://discuss.elastic.co/u/samyo)\
**Replies:** 3\
**Last updated:** [June 7, 2019, 12:11pm UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728 "2019-06-07T12:11:03Z")

</div>

hello Folks, i am new on REST API in Java in order to send a simple String "Hello World" from Java Netbeans to Elasticsearch Index. Can anybody please tell me how to write the Connection String in Netbeans to Put(send)…

---

## [\[Watcher\] Webhook Action](https://discuss.elastic.co/t/watcher-webhook-action/184115)

<div class="topic-metadata">

**Author:** [@hyhong](https://discuss.elastic.co/u/hyhong)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 12:02pm UTC](https://discuss.elastic.co/t/watcher-webhook-action/184115 "2019-06-07T12:02:00Z")

</div>

When I send a post request,the received request params is null,the action as follows: "webhook": { "scheme": "http", "host": "x.x.x.x", "port": xxx, "method": "post", "path": "/webhook/service", "params": { "type…

---

## [Rolling Upgrade Best Practices](https://discuss.elastic.co/t/rolling-upgrade-best-practices/183895)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 11:49am UTC](https://discuss.elastic.co/t/rolling-upgrade-best-practices/183895 "2019-06-07T11:49:57Z")

</div>

Hi, When rolling through a cluster upgrade is there a recommendation for the order of the upgrade? Currently, I upgrade masters first. However, the other day we lost a data node which then wouldn't join the upgraded ma…

---

## [Native controller process has stopped - no new native processes can be started](https://discuss.elastic.co/t/native-controller-process-has-stopped-no-new-native-processes-can-be-started/184721)

<div class="topic-metadata">

**Author:** [@YoussefH](https://discuss.elastic.co/u/YoussefH)\
**Replies:** 5\
**Last updated:** [June 7, 2019, 11:42am UTC](https://discuss.elastic.co/t/native-controller-process-has-stopped-no-new-native-processes-can-be-started/184721 "2019-06-07T11:42:01Z")

</div>

Hello, I have an problem concerned the elasticsearch starting, when we go to the elasticsearch service for forced their startup, an error message is displayed and the startup is failed, for this i used the cmd console …

---

## [ElasticDump process stuck while copying data from 2.4.6 to 6.2.2](https://discuss.elastic.co/t/elasticdump-process-stuck-while-copying-data-from-2-4-6-to-6-2-2/184739)

<div class="topic-metadata">

**Author:** [@pradeep\_verma](https://discuss.elastic.co/u/pradeep_verma)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 10:43am UTC](https://discuss.elastic.co/t/elasticdump-process-stuck-while-copying-data-from-2-4-6-to-6-2-2/184739 "2019-06-07T10:43:30Z")

</div>

Hi, We are upgrading our ES servers from 2.4.6 to 6.2.2. To do so instead of upgrading existing servers, we have taken new machines and installed ES version 6.2.2. Now we are copying our existing indices from 2.4.6 m…

---

## [Performance considerations on uid generation](https://discuss.elastic.co/t/performance-considerations-on-uid-generation/184718)

<div class="topic-metadata">

**Author:** [@vangap](https://discuss.elastic.co/u/vangap)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 10:17am UTC](https://discuss.elastic.co/t/performance-considerations-on-uid-generation/184718 "2019-06-07T10:17:44Z")

</div>

I am trying to evaluate the best practices for ID generation in terms of index/query time performance and also storage; and stumbled upon this PR It sounds like there will be some benefits if I send base64 generated…

---

## [\[reindexing\] my\_index is much more larger after a re\_indexing](https://discuss.elastic.co/t/reindexing-my-index-is-much-more-larger-after-a-re-indexing/184726)

<div class="topic-metadata">

**Author:** [@Derrar](https://discuss.elastic.co/u/Derrar)\
**Replies:** 2\
**Last updated:** [June 7, 2019, 9:57am UTC](https://discuss.elastic.co/t/reindexing-my-index-is-much-more-larger-after-a-re-indexing/184726 "2019-06-07T09:57:22Z")

</div>

Hello Everyone, I encounter the following issue: my\_index is much more larger after a re\_indexing and I've no idea why. What I want to do: do a simple reindexing, keeping the same mapping, the destination index has 1 …

---

## [Update documents with painless - nested and not nested objects with the same name](https://discuss.elastic.co/t/update-documents-with-painless-nested-and-not-nested-objects-with-the-same-name/184617)

<div class="topic-metadata">

**Author:** [@Martin\_Becker](https://discuss.elastic.co/u/Martin_Becker)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 9:43am UTC](https://discuss.elastic.co/t/update-documents-with-painless-nested-and-not-nested-objects-with-the-same-name/184617 "2019-06-07T09:43:55Z")

</div>

I messed up my documents and want to clean them up. I want to do this using \_update\_by\_query and painless script. I run Elastic version 5.6 and my documents hold nested objects which hold tracking info as a nested objec…

---

## [Search/count children only](https://discuss.elastic.co/t/search-count-children-only/184729)

<div class="topic-metadata">

**Author:** [@michael04](https://discuss.elastic.co/u/michael04)\
**Replies:** 0\
**Last updated:** [June 7, 2019, 9:35am UTC](https://discuss.elastic.co/t/search-count-children-only/184729 "2019-06-07T09:35:33Z")

</div>

I'm looking for the best way to search children only. I have create the following mapping with a prefix -\> file parent-child relation. { "mappings": { "\_doc": { "properties": { …

---

## [\[Solved\] Issuing error with "elasticsearch-setup-passwords auto" command](https://discuss.elastic.co/t/solved-issuing-error-with-elasticsearch-setup-passwords-auto-command/184544)

<div class="topic-metadata">

**Author:** [@Hyrastios](https://discuss.elastic.co/u/Hyrastios)\
**Replies:** 5\
**Last updated:** [June 7, 2019, 8:36am UTC](https://discuss.elastic.co/t/solved-issuing-error-with-elasticsearch-setup-passwords-auto-command/184544 "2019-06-07T08:36:25Z")

</div>

Hi, I'm trying to set up native authentification feature on my local ELK 7.1 installation. Yesterday, I asked here if it was possible to use it with a basic license and the answer was : yes since 6.8 version. So in th…

---

## [How to cofigure roles.yml and role-mapping.yml in pki](https://discuss.elastic.co/t/how-to-cofigure-roles-yml-and-role-mapping-yml-in-pki/184699)

<div class="topic-metadata">

**Author:** [@sudak](https://discuss.elastic.co/u/sudak)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 7:38am UTC](https://discuss.elastic.co/t/how-to-cofigure-roles-yml-and-role-mapping-yml-in-pki/184699 "2019-06-07T07:38:53Z")

</div>

Hi I am new to elasticsearch . I have configured pki for authentication and have set roles.yml and role\_mapping. But i am getting " failed to parse indices privileges for role \[user\]. missing required \[privileges\] field…

---

## [Benchmarking ES cluster using larger Rally dataset for multiple parallel indexing](https://discuss.elastic.co/t/benchmarking-es-cluster-using-larger-rally-dataset-for-multiple-parallel-indexing/184477)

<div class="topic-metadata">

**Author:** [@cks](https://discuss.elastic.co/u/cks)\
**Replies:** 4\
**Last updated:** [June 7, 2019, 7:35am UTC](https://discuss.elastic.co/t/benchmarking-es-cluster-using-larger-rally-dataset-for-multiple-parallel-indexing/184477 "2019-06-07T07:35:02Z")

</div>

The above post allowed me to create 10x indices for nyc\_taxis dataset, however only the shards for one index were populated in parallel, then rolls over to next index and so on. Is there a way to populate all 10 indice…

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

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