# Elasticsearch

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

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

**Page:** 1403

---

## [Using G1C1 with Java 1.8.0\_191](https://discuss.elastic.co/t/using-g1c1-with-java-1-8-0-191/167443)

<div class="topic-metadata">

**Author:** [@Zerobot](https://discuss.elastic.co/u/Zerobot)\
**Replies:** 1\
**Last updated:** [February 7, 2019, 12:43pm UTC](https://discuss.elastic.co/t/using-g1c1-with-java-1-8-0-191/167443 "2019-02-07T12:43:44Z")

</div>

Hi! So I read that Elastic now supports using G1 Garbace Collectior. Is it also supported on for example Java 1.8.0\_191 or is JDK 10+ a total requirement? Thanks in advance!

---

## [Cardinality Aggregation gives wrong number?](https://discuss.elastic.co/t/cardinality-aggregation-gives-wrong-number/167116)

<div class="topic-metadata">

**Author:** [@Wassim\_Ben\_Amor](https://discuss.elastic.co/u/Wassim_Ben_Amor)\
**Replies:** 32\
**Last updated:** [February 7, 2019, 12:10pm UTC](https://discuss.elastic.co/t/cardinality-aggregation-gives-wrong-number/167116 "2019-02-07T12:10:36Z")

</div>

Hello, I want to count all unique values of a field. the Cardinality Aggregation with this request "aggs": { "1": { "cardinality": { "field": "user\_id" } } }, "size": 0 } giv…

---

## [Facing issues with links inside a document](https://discuss.elastic.co/t/facing-issues-with-links-inside-a-document/167435)

<div class="topic-metadata">

**Author:** [@rvrao.cts](https://discuss.elastic.co/u/rvrao.cts)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 11:20am UTC](https://discuss.elastic.co/t/facing-issues-with-links-inside-a-document/167435 "2019-02-07T11:20:55Z")

</div>

Hi We are using Elasticsearch 1.7.5 and uploading .doc and .docx files into our application Content in word document is getting indexed but hyper links associated with text inside document is not indexing Do we need t…

---

## [No documents added; missing index and parse error](https://discuss.elastic.co/t/no-documents-added-missing-index-and-parse-error/167178)

<div class="topic-metadata">

**Author:** [@Bret\_Wortman](https://discuss.elastic.co/u/Bret_Wortman)\
**Replies:** 2\
**Last updated:** [February 7, 2019, 10:46am UTC](https://discuss.elastic.co/t/no-documents-added-missing-index-and-parse-error/167178 "2019-02-07T10:46:27Z")

</div>

I upgraded our stack to 6.5.4 yesterday afternoon, and since that time, no new documents have been added to elasticsearch. The logstash error log shows a slew of errors similar to this: \[2019-02-05T17:27:03,540\]\[WARN \]…

---

## [java.lang.OutOfMemoryError: Java heap space on ES 6.4.0](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423)

<div class="topic-metadata">

**Author:** [@afashaffu08](https://discuss.elastic.co/u/afashaffu08)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 10:44am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423 "2019-02-07T10:44:52Z")

</div>

Hi Everyone, Host was getting down when performing indexing, Cluster having 5 nodes in that three nodes going down ,When we restarted Es againcluster will be healthy and same issue will reflect if we do indexing on it. …

---

## [Debbug plugin using gradlew project](https://discuss.elastic.co/t/debbug-plugin-using-gradlew-project/167244)

<div class="topic-metadata">

**Author:** [@villarj](https://discuss.elastic.co/u/villarj)\
**Replies:** 1\
**Last updated:** [February 7, 2019, 10:38am UTC](https://discuss.elastic.co/t/debbug-plugin-using-gradlew-project/167244 "2019-02-07T10:38:44Z")

</div>

Hello, I create an ingest-plugin for Elasticsearch but when I try to debbug the plugin using: \</ ./gradlew projects \> does not work correctly. It does not debbug. Any idea?

---

## [How do I connect PySpark to Elasticsearch with SSL and verify certs set to False? Ask Question](https://discuss.elastic.co/t/how-do-i-connect-pyspark-to-elasticsearch-with-ssl-and-verify-certs-set-to-false-ask-question/167412)

<div class="topic-metadata">

**Author:** [@Brett\_Anderson](https://discuss.elastic.co/u/Brett_Anderson)\
**Replies:** 4\
**Last updated:** [February 7, 2019, 10:35am UTC](https://discuss.elastic.co/t/how-do-i-connect-pyspark-to-elasticsearch-with-ssl-and-verify-certs-set-to-false-ask-question/167412 "2019-02-07T10:35:30Z")

</div>

Previously I have successfully connected to an Elasticsearch cluster directly from Python with the following code: ssl\_context = create\_ssl\_context() ssl\_context.check\_hostname = False ssl\_context.verify\_mode = ssl.CERT…

---

## [Getting 429 ES Exception while performing search queries](https://discuss.elastic.co/t/getting-429-es-exception-while-performing-search-queries/166945)

<div class="topic-metadata">

**Author:** [@Shibbu11](https://discuss.elastic.co/u/Shibbu11)\
**Replies:** 9\
**Last updated:** [February 7, 2019, 10:15am UTC](https://discuss.elastic.co/t/getting-429-es-exception-while-performing-search-queries/166945 "2019-02-07T10:15:23Z")

</div>

Hello, I am using Elasticsearch 5.6.7. I have one node in my cluster with 128 GB ram and 16 GB heap size. I have around 14 indices with 5 primary and 1 replica shard each in this node. Each index has a size of 40-50…

---

## [Node death on load](https://discuss.elastic.co/t/node-death-on-load/167418)

<div class="topic-metadata">

**Author:** [@philv](https://discuss.elastic.co/u/philv)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 10:14am UTC](https://discuss.elastic.co/t/node-death-on-load/167418 "2019-02-07T10:14:25Z")

</div>

I have a small 3-node cluster, I try loading 180 million documents to is using the Java TransportClient and the load I send the documents to always dies. The ES process ends. All I can see in the logs is a lot of GC ti…

---

## [ELK cronjob not listing in kubernetes](https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404)

<div class="topic-metadata">

**Author:** [@venkatraj](https://discuss.elastic.co/u/venkatraj)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 9:27am UTC](https://discuss.elastic.co/t/elk-cronjob-not-listing-in-kubernetes/167404 "2019-02-07T09:27:33Z")

</div>

I have deployed ELK helm in kubernetes environment and changed the log retention period from 1 to 2 But I am not getting the cron scheduller kubectl get cronjob -n kube-system ( No resources found) elasticsearch-cura…

---

## [Upgrade Elastic stack from 6.2.4 to 6.4](https://discuss.elastic.co/t/upgrade-elastic-stack-from-6-2-4-to-6-4/167388)

<div class="topic-metadata">

**Author:** [@hermann102](https://discuss.elastic.co/u/hermann102)\
**Replies:** 1\
**Last updated:** [February 7, 2019, 7:56am UTC](https://discuss.elastic.co/t/upgrade-elastic-stack-from-6-2-4-to-6-4/167388 "2019-02-07T07:56:05Z")

</div>

I have actually two versions (6.2.4 and 6.4 ) Elastic stack in my two environments (DEV and PROD). I want to upgrade 6.2.4 to 6.4 version. Somebody can help me, to know what is the good process to do that, please. I hav…

---

## [Significance of field param "store" to fetch data fast](https://discuss.elastic.co/t/significance-of-field-param-store-to-fetch-data-fast/167385)

<div class="topic-metadata">

**Author:** [@kshi\_yelpale000](https://discuss.elastic.co/u/kshi_yelpale000)\
**Replies:** 1\
**Last updated:** [February 7, 2019, 7:25am UTC](https://discuss.elastic.co/t/significance-of-field-param-store-to-fetch-data-fast/167385 "2019-02-07T07:25:52Z")

</div>

Hi all, I want to fetch one field data very frequent, so i want to store that field data in memory for all documents, so when i fetch via search query by \_source, the result will be faster. In normal case it takes too m…

---

## [Value comparison](https://discuss.elastic.co/t/value-comparison/167381)

<div class="topic-metadata">

**Author:** [@Denis\_Kazinachikov](https://discuss.elastic.co/u/Denis_Kazinachikov)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 5:48am UTC](https://discuss.elastic.co/t/value-comparison/167381 "2019-02-07T05:48:35Z")

</div>

Hello! I use elastic for to collect retail prices of goods. Many products do not change the price, and in the graph there is a mess, I want to remove from the schedule the products whose price does not change. Metric …

---

## [Is there any approach in java using which we can find out the list of indexes contributed in creating response against the query fired](https://discuss.elastic.co/t/is-there-any-approach-in-java-using-which-we-can-find-out-the-list-of-indexes-contributed-in-creating-response-against-the-query-fired/167085)

<div class="topic-metadata">

**Author:** [@BleedCode](https://discuss.elastic.co/u/BleedCode)\
**Replies:** 2\
**Last updated:** [February 7, 2019, 4:59am UTC](https://discuss.elastic.co/t/is-there-any-approach-in-java-using-which-we-can-find-out-the-list-of-indexes-contributed-in-creating-response-against-the-query-fired/167085 "2019-02-07T04:59:37Z")

</div>

Is there any approach in java using which we can find out the list of indexes contributed in creating response against the query fired. Example: A query is executed against 5 indices in one request and only 2 contribute…

---

## [Input Date in PUT Watcher API](https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374)

<div class="topic-metadata">

**Author:** [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 2:19am UTC](https://discuss.elastic.co/t/input-date-in-put-watcher-api/167374 "2019-02-07T02:19:29Z")

</div>

hi. i'm using elasticseacrh 6.4 i'm using Watcher API for pre-processing aggregation's result summary. i need input date-type data (now()) in watcher api. i'm looking input reference (https://www.elastic.co/guide/en/…

---

## [Reuse/cache script fields to use other parts of the query](https://discuss.elastic.co/t/reuse-cache-script-fields-to-use-other-parts-of-the-query/167371)

<div class="topic-metadata">

**Author:** [@anam](https://discuss.elastic.co/u/anam)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 12:14am UTC](https://discuss.elastic.co/t/reuse-cache-script-fields-to-use-other-parts-of-the-query/167371 "2019-02-07T00:14:00Z")

</div>

I am working on a project where we need to show distance the listings are from a user location. To show the distance, when lat/lon is given in the input, we calculate distance using a script field called "distance" "scr…

---

## [Restore index from another cluster](https://discuss.elastic.co/t/restore-index-from-another-cluster/167329)

<div class="topic-metadata">

**Author:** [@nousees](https://discuss.elastic.co/u/nousees)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 9:22pm UTC](https://discuss.elastic.co/t/restore-index-from-another-cluster/167329 "2019-02-06T21:22:25Z")

</div>

Hi, I'm struggle trying to restore an index from a snapshot to another cluster. The steps I've following are: make a backup of the index on the original cluster create the snapshot repository on the other cluster, just…

---

## [Upgradation of ELK on Docker](https://discuss.elastic.co/t/upgradation-of-elk-on-docker/167290)

<div class="topic-metadata">

**Author:** [@vivektsb](https://discuss.elastic.co/u/vivektsb)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 9:18pm UTC](https://discuss.elastic.co/t/upgradation-of-elk-on-docker/167290 "2019-02-06T21:18:21Z")

</div>

Hi, Could you please let me know the procedure for upgrading ELK on docker.As of now there is no official documentation . Regards, Vivek

---

## [Xpack which one gold or platinum](https://discuss.elastic.co/t/xpack-which-one-gold-or-platinum/167350)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 8:09pm UTC](https://discuss.elastic.co/t/xpack-which-one-gold-or-platinum/167350 "2019-02-06T20:09:52Z")

</div>

I am interested in setting up users authentication for kibana using LDAP. goal is that when user login he/she can only see certain dashboard with limited access. I enable Xpack demo on my test server and it worked wi…

---

## [Global ordinals performance and size on-heap](https://discuss.elastic.co/t/global-ordinals-performance-and-size-on-heap/158320)

<div class="topic-metadata">

**Author:** [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Replies:** 8\
**Last updated:** [February 6, 2019, 7:10pm UTC](https://discuss.elastic.co/t/global-ordinals-performance-and-size-on-heap/158320 "2019-02-06T19:10:45Z")

</div>

Hi Elastic folks, We are seeing significant performance hit stemming from the usage of global ordinals (CPU, heap, GC). All background on our specific situation is below, points in question are: Loading of global ordi…

---

## [Custom index template is not working](https://discuss.elastic.co/t/custom-index-template-is-not-working/166998)

<div class="topic-metadata">

**Author:** [@Hetal\_Parmar](https://discuss.elastic.co/u/Hetal_Parmar)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 4:15pm UTC](https://discuss.elastic.co/t/custom-index-template-is-not-working/166998 "2019-02-06T16:15:01Z")

</div>

I m trying to make custom index mapping template and use it with logstash logstash config file output section output{ elasticsearch { hosts =\> "localhost:9200" index =\> "employee\_index" document\_id =\>"%{empid}" ma…

---

## [How to index a data structure with list](https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317)

<div class="topic-metadata">

**Author:** [@elliotcrn](https://discuss.elastic.co/u/elliotcrn)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 3:42pm UTC](https://discuss.elastic.co/t/how-to-index-a-data-structure-with-list/167317 "2019-02-06T15:42:42Z")

</div>

How to create index for this data structure? There will be multiple otherUserID's and I don't know how to index them with elasticsearch 6.5. Could anyone help me with URL, mapping and indexing in general please? UserID …

---

## [XPACK Alerting "extract" same field from all hits](https://discuss.elastic.co/t/xpack-alerting-extract-same-field-from-all-hits/165923)

<div class="topic-metadata">

**Author:** [@adnanbaykal](https://discuss.elastic.co/u/adnanbaykal)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 2:58pm UTC](https://discuss.elastic.co/t/xpack-alerting-extract-same-field-from-all-hits/165923 "2019-02-06T14:58:18Z")

</div>

I am creating an alert in XPACK WATCHER - I get the results as json but I want to extract one field from the result set (hits). I want to achieve the following: {{ctx.payload.hits.hits.\*.\_source.text}}" This works wh…

---

## [Distinct values from field(s)](https://discuss.elastic.co/t/distinct-values-from-field-s/167304)

<div class="topic-metadata">

**Author:** [@srikanthkadem](https://discuss.elastic.co/u/srikanthkadem)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 2:44pm UTC](https://discuss.elastic.co/t/distinct-values-from-field-s/167304 "2019-02-06T14:44:13Z")

</div>

Can anyone help to get distinct values from ES data fields. I have a column with index setting as below "ItemType": { "type": "text", "fields": { "keyword": { "ignore\_above": 256, "type": "keyword"} I tried to do A…

---

## [Null\_value not working](https://discuss.elastic.co/t/null-value-not-working/166785)

<div class="topic-metadata">

**Author:** [@NoZomIBK](https://discuss.elastic.co/u/NoZomIBK)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 2:26pm UTC](https://discuss.elastic.co/t/null-value-not-working/166785 "2019-02-06T14:26:56Z")

</div>

I have an integer field which may be null and should have the null\_value 0. for testing i prepared an index: curl -H "Content-Type: application/json" -XPUT -d "{"mappings":{"\_doc":{"properties":{"name":{"type":"text"},…

---

## [Index-\>table, document-\>row?](https://discuss.elastic.co/t/index-table-document-row/166890)

<div class="topic-metadata">

**Author:** [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Replies:** 4\
**Last updated:** [February 6, 2019, 2:21pm UTC](https://discuss.elastic.co/t/index-table-document-row/166890 "2019-02-06T14:21:19Z")

</div>

I wanna make some rough comparison between Elasticsearch basic concepts and that of legacy DB. Can we say that index is similar to table, document is similar to row, and field is similar to column?

---

## [Size(number of results to be returned) per each index](https://discuss.elastic.co/t/size-number-of-results-to-be-returned-per-each-index/167289)

<div class="topic-metadata">

**Author:** [@srikanthkadem](https://discuss.elastic.co/u/srikanthkadem)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 1:49pm UTC](https://discuss.elastic.co/t/size-number-of-results-to-be-returned-per-each-index/167289 "2019-02-06T13:49:57Z")

</div>

Hi , Can any one help for following scenario. I have 3 indexes for e.g jobs,files,tags when user enters some keyword I want to search in all the 3 indexes and return top 5 results from each index. can we do this sear…

---

## [Creating Indices with types using Java API](https://discuss.elastic.co/t/creating-indices-with-types-using-java-api/167263)

<div class="topic-metadata">

**Author:** [@Chandan\_Ray](https://discuss.elastic.co/u/Chandan_Ray)\
**Replies:** 5\
**Last updated:** [February 6, 2019, 1:26pm UTC](https://discuss.elastic.co/t/creating-indices-with-types-using-java-api/167263 "2019-02-06T13:26:26Z")

</div>

Hi guys, I am using RestHighLevelClient for Elasticsearch 5.6 but I am not able create indices using the API. Help.

---

## [Replicas remains unassigned](https://discuss.elastic.co/t/replicas-remains-unassigned/167171)

<div class="topic-metadata">

**Author:** [@Hari\_Prasad](https://discuss.elastic.co/u/Hari_Prasad)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 1:01pm UTC](https://discuss.elastic.co/t/replicas-remains-unassigned/167171 "2019-02-06T13:01:14Z")

</div>

Hi I am currently in 6.4.2 version and I have lot of replica shards in "unassigned" state. Below is the result That I get when I run query GET /\_cluster/allocation/explain { "index": "log-2019.01.29", "shard": 0, …

---

## [Elastic Tuning](https://discuss.elastic.co/t/elastic-tuning/167245)

<div class="topic-metadata">

**Author:** [@fedwe](https://discuss.elastic.co/u/fedwe)\
**Replies:** 5\
**Last updated:** [February 6, 2019, 11:29am UTC](https://discuss.elastic.co/t/elastic-tuning/167245 "2019-02-06T11:29:37Z")

</div>

Hello Elastic Team, I am new in elastic search and i want to ask , I have 3 servers with 16 gb ram and virtual storage and 4 CPUs on each which is intel xeon E5-2699 v4 2.2 ghz 4 cores on each. okay so i want to inde…

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

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