# Elasticsearch

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

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

**Page:** 1444

---

## [Release Notes Docs (PDF)](https://discuss.elastic.co/t/release-notes-docs-pdf/162018)

<div class="topic-metadata">

**Author:** [@Yashwant\_Shettigar](https://discuss.elastic.co/u/Yashwant_Shettigar)\
**Replies:** 3\
**Last updated:** [December 25, 2018, 5:46pm UTC](https://discuss.elastic.co/t/release-notes-docs-pdf/162018 "2018-12-25T17:46:29Z")

</div>

Can someone please share the release notes of ELK for 6.5 version ? I want a link where all these notes could be downloaded. Mainly I needed to the information such as system requirements, CPU usage, mem usage, pros, co…

---

## [Best way to analyse storage of elastic search data nodes](https://discuss.elastic.co/t/best-way-to-analyse-storage-of-elastic-search-data-nodes/161508)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 3:37pm UTC](https://discuss.elastic.co/t/best-way-to-analyse-storage-of-elastic-search-data-nodes/161508 "2018-12-25T15:37:28Z")

</div>

Hi Team, Now a days my ES storage is increasing rapidly even though we are deleting the indices older than 100 days. but still we are not clear why indices are consuming more storage. Could any one suggest what are the…

---

## [How to split data in ML Multimetric job](https://discuss.elastic.co/t/how-to-split-data-in-ml-multimetric-job/162023)

<div class="topic-metadata">

**Author:** [@sesha](https://discuss.elastic.co/u/sesha)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 1:23pm UTC](https://discuss.elastic.co/t/how-to-split-data-in-ml-multimetric-job/162023 "2018-12-25T13:23:15Z")

</div>

I was trying to do Multimetric ml job with sample data(kibana\_sample\_data\_flights), to get anomalies for flights from different Origin(Origin, OriginCountry, OriginCityName, OriginAirportID ..) to the destination ( Dest…

---

## [What happened to deleted indices, shards and replicas?](https://discuss.elastic.co/t/what-happened-to-deleted-indices-shards-and-replicas/161982)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 12:40pm UTC](https://discuss.elastic.co/t/what-happened-to-deleted-indices-shards-and-replicas/161982 "2018-12-25T12:40:51Z")

</div>

I had confusion about elasticsearch DELETE API. If I delete induces through DELETE API, what will happen to shards and replicas? I have 3 data nodes, so will it delete data and free up the space? If not how to free up d…

---

## [Cannot update ES settings using ElasticSearch-PHP](https://discuss.elastic.co/t/cannot-update-es-settings-using-elasticsearch-php/162064)

<div class="topic-metadata">

**Author:** [@Hamideh.D](https://discuss.elastic.co/u/Hamideh.D)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 11:46am UTC](https://discuss.elastic.co/t/cannot-update-es-settings-using-elasticsearch-php/162064 "2018-12-25T11:46:11Z")

</div>

There is already an index in ES. I am using ElasticSearch-PHP as client. According to ES docs these code should change ES settings: $params = \[ 'index' =\> 'my\_index', 'body' =\> \[ 'settings' =\> \[ 'number\_of\_repli…

---

## [Did you mean suggestion not correcting words like all, of, the](https://discuss.elastic.co/t/did-you-mean-suggestion-not-correcting-words-like-all-of-the/162062)

<div class="topic-metadata">

**Author:** [@Prakanshu\_Ray](https://discuss.elastic.co/u/Prakanshu_Ray)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 11:32am UTC](https://discuss.elastic.co/t/did-you-mean-suggestion-not-correcting-words-like-all-of-the/162062 "2018-12-25T11:32:40Z")

</div>

Hi , I am working to achieve did you mean feature in elastic search using phrase suggester, though i am facing issue as it's not correcting words like all , the , of etc. Below is the phrase suggester :- "suggest": { …

---

## [ES data replication to two ES clusters and restore](https://discuss.elastic.co/t/es-data-replication-to-two-es-clusters-and-restore/161970)

<div class="topic-metadata">

**Author:** [@Jason6](https://discuss.elastic.co/u/Jason6)\
**Replies:** 7\
**Last updated:** [December 25, 2018, 10:32am UTC](https://discuss.elastic.co/t/es-data-replication-to-two-es-clusters-and-restore/161970 "2018-12-25T10:32:14Z")

</div>

Hi ES experts, I have a question as below, please help me take a look, thanks a lot. we plan to build our disaster recovery(DR) env. we want to save data to our production env and DR ES clusters at the same time. the…

---

## [Reindex plugin for ES 2.1.2](https://discuss.elastic.co/t/reindex-plugin-for-es-2-1-2/162035)

<div class="topic-metadata">

**Author:** [@stecino](https://discuss.elastic.co/u/stecino)\
**Replies:** 3\
**Last updated:** [December 25, 2018, 9:02am UTC](https://discuss.elastic.co/t/reindex-plugin-for-es-2-1-2/162035 "2018-12-25T09:02:08Z")

</div>

Where can I download this from. This version isn't supported anymore, so I am seeing this sudo bin/plugin install reindex --verbose -\> Installing reindex... Trying https://download.elastic.co/elasticsearch/release/org…

---

## [\[ingest pipeline\] set convert in string](https://discuss.elastic.co/t/ingest-pipeline-set-convert-in-string/161806)

<div class="topic-metadata">

**Author:** [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 6:52am UTC](https://discuss.elastic.co/t/ingest-pipeline-set-convert-in-string/161806 "2018-12-25T06:52:56Z")

</div>

Hi, Using Elasticsearch 6.5.1 I tried to set a value using set and my new value become a string: Here my debug simulate: POST \_ingest/pipeline/\_simulate { "pipeline" : { "description": "debug", "processors": …

---

## [How get the parent name of a \_doc](https://discuss.elastic.co/t/how-get-the-parent-name-of-a-doc/161599)

<div class="topic-metadata">

**Author:** [@Hossein\_Ghaheri](https://discuss.elastic.co/u/Hossein_Ghaheri)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 6:42am UTC](https://discuss.elastic.co/t/how-get-the-parent-name-of-a-doc/161599 "2018-12-25T06:42:55Z")

</div>

Hi, My document is as follow : I search in this document by name. Now i want get parent name of result. For example : When I search "Red" , i want get this result : Red in Colors (parent\_id of Red is 3 & name…

---

## [How to Maintain the CDC(Change data capture) in elasticsearch](https://discuss.elastic.co/t/how-to-maintain-the-cdc-change-data-capture-in-elasticsearch/161650)

<div class="topic-metadata">

**Author:** [@suneeld](https://discuss.elastic.co/u/suneeld)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 6:34am UTC](https://discuss.elastic.co/t/how-to-maintain-the-cdc-change-data-capture-in-elasticsearch/161650 "2018-12-25T06:34:07Z")

</div>

I would like to Maintain the CDC logic(scd type2) in elasticsearch, so that I should be able to distinguish the data between current record Vs Previous record, for my high volume changes. Example :- { text: "foo bar", …

---

## [Coordinating nodes didn't help in mitigating 429s](https://discuss.elastic.co/t/coordinating-nodes-didnt-help-in-mitigating-429s/161709)

<div class="topic-metadata">

**Author:** [@Hari\_Prasad](https://discuss.elastic.co/u/Hari_Prasad)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 6:24am UTC](https://discuss.elastic.co/t/coordinating-nodes-didnt-help-in-mitigating-429s/161709 "2018-12-25T06:24:26Z")

</div>

I had a setup of 3 Elasticsearch (2 of them with roles data and master node, with each 6g memory, 1 master only node with 6g memory, discovery.zen.minimum\_master\_nodes set to 2 in all three nodes), 2 Logstash nodes wit…

---

## [Elasticsearch script field: add an aggregated field](https://discuss.elastic.co/t/elasticsearch-script-field-add-an-aggregated-field/161754)

<div class="topic-metadata">

**Author:** [@bbking](https://discuss.elastic.co/u/bbking)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 6:21am UTC](https://discuss.elastic.co/t/elasticsearch-script-field-add-an-aggregated-field/161754 "2018-12-25T06:21:31Z")

</div>

Is there a way to add an aggregated filed to each document? For example, I want to find the timestamp of the oldest/first document containing a specific hash value and store it as an extra field for each document. How c…

---

## [Elasticsearch shutdown](https://discuss.elastic.co/t/elasticsearch-shutdown/161971)

<div class="topic-metadata">

**Author:** [@Dmitrij](https://discuss.elastic.co/u/Dmitrij)\
**Replies:** 6\
**Last updated:** [December 25, 2018, 6:06am UTC](https://discuss.elastic.co/t/elasticsearch-shutdown/161971 "2018-12-25T06:06:25Z")

</div>

Hello. Can you help with advice? I am still new to working with elasticsearch and do not know how to solve the problem. There is a test server using elasticsearch - there is no load on it, I am the only active user. Whe…

---

## [Elasticsearch node takes a time to come in yellow or green state after start](https://discuss.elastic.co/t/elasticsearch-node-takes-a-time-to-come-in-yellow-or-green-state-after-start/162028)

<div class="topic-metadata">

**Author:** [@amol\_sonawane1](https://discuss.elastic.co/u/amol_sonawane1)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 5:50am UTC](https://discuss.elastic.co/t/elasticsearch-node-takes-a-time-to-come-in-yellow-or-green-state-after-start/162028 "2018-12-25T05:50:52Z")

</div>

Elasticsearch node takes a time to come in yellow or green state after the start ES cluster details: Single node with one index and 10 shards. ES is taking 6-7 minutes to come in the yellow or green state every time wh…

---

## [Subtract two field count with aggregate in elastic search](https://discuss.elastic.co/t/subtract-two-field-count-with-aggregate-in-elastic-search/162044)

<div class="topic-metadata">

**Author:** [@Akash\_Sahu](https://discuss.elastic.co/u/Akash_Sahu)\
**Replies:** 0\
**Last updated:** [December 25, 2018, 3:00am UTC](https://discuss.elastic.co/t/subtract-two-field-count-with-aggregate-in-elastic-search/162044 "2018-12-25T03:00:15Z")

</div>

I am getting below output after apply aggregate but i have perform subtraction on "key": "in-completed","doc\_count": 4 and "key": "completed", "doc\_count": 2 expected output - \[in-completed\]\[doc\_count\] - \[completed\]\[do…

---

## [Does es support docker swarm mode?](https://discuss.elastic.co/t/does-es-support-docker-swarm-mode/161986)

<div class="topic-metadata">

**Author:** [@wxywj1005](https://discuss.elastic.co/u/wxywj1005)\
**Replies:** 0\
**Last updated:** [December 24, 2018, 8:59am UTC](https://discuss.elastic.co/t/does-es-support-docker-swarm-mode/161986 "2018-12-24T08:59:08Z")

</div>

Hi, es team! It works normally with docker-compose up, but when I am switching to production mode，I meet a problem. when I run docker deploy -c docker-compose.yml es as a swarm, console logges that Ignoring unsupported…

---

## [Help For master node options](https://discuss.elastic.co/t/help-for-master-node-options/162034)

<div class="topic-metadata">

**Author:** [@dxkvcawc.3yx](https://discuss.elastic.co/u/dxkvcawc.3yx)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 2:41am UTC](https://discuss.elastic.co/t/help-for-master-node-options/162034 "2018-12-25T02:41:33Z")

</div>

hello , i have an question: is master node can be data node? (node.master:true and node.data:true) and another question: what is minimal hardware requirement for master node and data node? is mater node can same with …

---

## [Relevance sorting / JOIN](https://discuss.elastic.co/t/relevance-sorting-join/161923)

<div class="topic-metadata">

**Author:** [@Tom\_Miller](https://discuss.elastic.co/u/Tom_Miller)\
**Replies:** 2\
**Last updated:** [December 24, 2018, 9:02pm UTC](https://discuss.elastic.co/t/relevance-sorting-join/161923 "2018-12-24T21:02:21Z")

</div>

I've been using Elasticsearch for a while, but mainly for indexing logging style data. I'm looking to build a shopping style system, and I have a lot of sales data, and products, and I'd like to sort the products using …

---

## [Enable CORS policy on FSCrawler REST Client](https://discuss.elastic.co/t/enable-cors-policy-on-fscrawler-rest-client/162005)

<div class="topic-metadata">

**Author:** [@Carlos\_Pinedo](https://discuss.elastic.co/u/Carlos_Pinedo)\
**Replies:** 3\
**Last updated:** [December 24, 2018, 8:48pm UTC](https://discuss.elastic.co/t/enable-cors-policy-on-fscrawler-rest-client/162005 "2018-12-24T20:48:21Z")

</div>

I'm trying to create an Angular 7 web app where I can add PDF contents directly into a Elasticsearch service. I created the file uploader in the app and I started a FSCrawler REST client to send the file requests. But wh…

---

## [Rebuild highlight result](https://discuss.elastic.co/t/rebuild-highlight-result/162029)

<div class="topic-metadata">

**Author:** [@Ahmed\_EBEN\_HASSINE](https://discuss.elastic.co/u/Ahmed_EBEN_HASSINE)\
**Replies:** 0\
**Last updated:** [December 24, 2018, 8:21pm UTC](https://discuss.elastic.co/t/rebuild-highlight-result/162029 "2018-12-24T20:21:20Z")

</div>

I'm trying to highlight my search results. i'm flowing this part of doc https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html This is my elastic query : "query" : { "matc…

---

## [Elasticsearch spring boot integration date issue](https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026)

<div class="topic-metadata">

**Author:** [@udaysarika](https://discuss.elastic.co/u/udaysarika)\
**Replies:** 0\
**Last updated:** [December 24, 2018, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-spring-boot-integration-date-issue/162026 "2018-12-24T19:52:52Z")

</div>

Hi All, We are in the process of doing elasticsearch spring boot integration POC. We were stuck with data format issues during date save. Below are the details of my example. elasticsearch-6.4.0 Spring Boot 2.1.0.REL…

---

## [Cannot connect to AWS elasticsearch cluster with flask app and Python elasticsearch wrapper](https://discuss.elastic.co/t/cannot-connect-to-aws-elasticsearch-cluster-with-flask-app-and-python-elasticsearch-wrapper/161093)

<div class="topic-metadata">

**Author:** [@ichiban88](https://discuss.elastic.co/u/ichiban88)\
**Replies:** 27\
**Last updated:** [December 24, 2018, 7:52pm UTC](https://discuss.elastic.co/t/cannot-connect-to-aws-elasticsearch-cluster-with-flask-app-and-python-elasticsearch-wrapper/161093 "2018-12-24T19:52:32Z")

</div>

This is a repeat of an earlier request but with a lot more information. I have installed elasticsearch 6.5.3 on an aws ec2 server. Inbound rules are: SSH TCP 0.0.0.0 PORTS RANGE 22 HTTP: TCP 0.0.0.0 PORTS RANGE 80 HTTP…

---

## [Enabling tokens in Elastic Cloud](https://discuss.elastic.co/t/enabling-tokens-in-elastic-cloud/161881)

<div class="topic-metadata">

**Author:** [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Replies:** 1\
**Last updated:** [December 24, 2018, 6:17pm UTC](https://discuss.elastic.co/t/enabling-tokens-in-elastic-cloud/161881 "2018-12-24T18:17:54Z")

</div>

How do I enable tokens in the Elastic Cloud Service? I have a few developers using various clients: React Java PHP I'd like them to be able to authenticate with user name and password and then receive a token for sub…

---

## [Cluster suddenly blew up out of nowhere](https://discuss.elastic.co/t/cluster-suddenly-blew-up-out-of-nowhere/162017)

<div class="topic-metadata">

**Author:** [@baller](https://discuss.elastic.co/u/baller)\
**Replies:** 5\
**Last updated:** [December 24, 2018, 6:16pm UTC](https://discuss.elastic.co/t/cluster-suddenly-blew-up-out-of-nowhere/162017 "2018-12-24T18:16:43Z")

</div>

Hi all, Approximately 1 hour ago we started getting connection and indexing errors on our cluster 36b401. We didn't make any config changes or any other changes to our app. After a few minutes of reattempting connection…

---

## [Deployment issue with dedicated user - how to limit permissions?](https://discuss.elastic.co/t/deployment-issue-with-dedicated-user-how-to-limit-permissions/161998)

<div class="topic-metadata">

**Author:** [@Dawid\_WWW](https://discuss.elastic.co/u/Dawid_WWW)\
**Replies:** 1\
**Last updated:** [December 24, 2018, 5:53pm UTC](https://discuss.elastic.co/t/deployment-issue-with-dedicated-user-how-to-limit-permissions/161998 "2018-12-24T17:53:42Z")

</div>

Hello, I have a problem with permissions access for elastic deployment with dedicated user. When I use superuser role for sample\_user, deployment works properly. The issue is begin with create new role. I wanted permiss…

---

## [Index with few shard or index with many shards?](https://discuss.elastic.co/t/index-with-few-shard-or-index-with-many-shards/161985)

<div class="topic-metadata">

**Author:** [@kamal](https://discuss.elastic.co/u/kamal)\
**Replies:** 9\
**Last updated:** [December 24, 2018, 4:30pm UTC](https://discuss.elastic.co/t/index-with-few-shard-or-index-with-many-shards/161985 "2018-12-24T16:30:13Z")

</div>

Hi I have 3 nodes and 55TB data to index, I can split it to 10 index, each one contain 155 shard or 110 index each contain 10 shards. I don't know which one is the best? Can any one help?

---

## [Subtraction two fields aggregate count in elasticsearch script](https://discuss.elastic.co/t/subtraction-two-fields-aggregate-count-in-elasticsearch-script/162008)

<div class="topic-metadata">

**Author:** [@Sanjeev7](https://discuss.elastic.co/u/Sanjeev7)\
**Replies:** 0\
**Last updated:** [December 24, 2018, 3:01pm UTC](https://discuss.elastic.co/t/subtraction-two-fields-aggregate-count-in-elasticsearch-script/162008 "2018-12-24T15:01:47Z")

</div>

I am getting below output after apply aggregate but i have perform subtraction on "key": "in-completed","doc\_count": 4 and "key": "completed", "doc\_count": 2 expected output - \[in-completed\]\[doc\_count\] - \[complete…

---

## [Error when I create a snapshot](https://discuss.elastic.co/t/error-when-i-create-a-snapshot/161991)

<div class="topic-metadata">

**Author:** [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Replies:** 1\
**Last updated:** [December 24, 2018, 2:22pm UTC](https://discuss.elastic.co/t/error-when-i-create-a-snapshot/161991 "2018-12-24T14:22:26Z")

</div>

Hi everyone ! Before upgrading my stack, I would like to create snapshot of my indices. My configuration is : 4 nodes (2 master, 2 data) 6.4.2 version I have created a folder on the network, it's mounted on each nod…

---

## [Sorting a string field numerically in elasticsearch](https://discuss.elastic.co/t/sorting-a-string-field-numerically-in-elasticsearch/161781)

<div class="topic-metadata">

**Author:** [@Nam](https://discuss.elastic.co/u/Nam)\
**Replies:** 3\
**Last updated:** [December 24, 2018, 2:14pm UTC](https://discuss.elastic.co/t/sorting-a-string-field-numerically-in-elasticsearch/161781 "2018-12-24T14:14:30Z")

</div>

Hi guys. When sorting on a field that's a string, strings that contain numbers aren't sorted properly. For example, with these documents with type: string: { login\_id: "1" } { login\_id: "1A" } { login\_id: "1B" } { …

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

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