# Elasticsearch

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

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

**Page:** 882

---

## [Unable to connect my java application to the Elastic Stack Instance](https://discuss.elastic.co/t/unable-to-connect-my-java-application-to-the-elastic-stack-instance/238430)

<div class="topic-metadata">

**Author:** [@Ubeta](https://discuss.elastic.co/u/Ubeta)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 1:13am UTC](https://discuss.elastic.co/t/unable-to-connect-my-java-application-to-the-elastic-stack-instance/238430 "2020-06-25T01:13:03Z")

</div>

Hi! I have set up my Elastic Cloud Service through Google Cloud and have set up an Elastic Search Instance. I can upload my data to Elastic search and query my data just fine. However, when I try to connect to the Elas…

---

## [Cross cluster (TLS and Plain Text)](https://discuss.elastic.co/t/cross-cluster-tls-and-plain-text/237939)

<div class="topic-metadata">

**Author:** [@elk\_follower](https://discuss.elastic.co/u/elk_follower)\
**Replies:** 2\
**Last updated:** [June 25, 2020, 12:11am UTC](https://discuss.elastic.co/t/cross-cluster-tls-and-plain-text/237939 "2020-06-25T00:11:00Z")

</div>

Hi, Currently we have a ELK 6.8.6 cluster running in Prod and we plan to bring up a new stack with 7.7.1 and TLS enabled along with Open ID Connect. What option do we have to get data from both the cluster in single Ki…

---

## [Watcher action to call REST API](https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472)

<div class="topic-metadata">

**Author:** [@chitraj8](https://discuss.elastic.co/u/chitraj8)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 1:04pm UTC](https://discuss.elastic.co/t/watcher-action-to-call-rest-api/238472 "2020-06-24T13:04:47Z")

</div>

We would like to use the watcher feature that is part of commercial plugin in x-pack. After exploring the details from docs, we would like to get help on how to call an action that is REST API in the watcher configurati…

---

## [Fetch distinct values in a nested type field in elasticsearch? Can anyone provide one example?](https://discuss.elastic.co/t/fetch-distinct-values-in-a-nested-type-field-in-elasticsearch-can-anyone-provide-one-example/238426)

<div class="topic-metadata">

**Author:** [@divya005](https://discuss.elastic.co/u/divya005)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 9:48am UTC](https://discuss.elastic.co/t/fetch-distinct-values-in-a-nested-type-field-in-elasticsearch-can-anyone-provide-one-example/238426 "2020-06-24T09:48:50Z")

</div>

{ "aggs" : { "groupBatches" : { "nested": { "path": "admin" }, "aggs" : { "batches" : { "terms" : {"field" : "admin.ids.batchId"} } } } } } This is i got from 1 link but my requirement is same can anybody h…

---

## [How to give more priority to certain words in a phrase](https://discuss.elastic.co/t/how-to-give-more-priority-to-certain-words-in-a-phrase/238497)

<div class="topic-metadata">

**Author:** [@Dilip\_Khemani](https://discuss.elastic.co/u/Dilip_Khemani)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 1:52pm UTC](https://discuss.elastic.co/t/how-to-give-more-priority-to-certain-words-in-a-phrase/238497 "2020-06-24T13:52:39Z")

</div>

I have an index named product in Elastic Search 7.4 Product has a field named title. If I want to search all titles for blue watch I want to see all results which are blue watch or watch. I do not want to see results l…

---

## [How does elasticsearch limit the results of a query on multiple index search?](https://discuss.elastic.co/t/how-does-elasticsearch-limit-the-results-of-a-query-on-multiple-index-search/238543)

<div class="topic-metadata">

**Author:** [@Amine\_Maalfi](https://discuss.elastic.co/u/Amine_Maalfi)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 10:06pm UTC](https://discuss.elastic.co/t/how-does-elasticsearch-limit-the-results-of-a-query-on-multiple-index-search/238543 "2020-06-24T22:06:43Z")

</div>

Say i queried data that is contained in 5 indexes, and the results are limited to 100 will elasticsearch search all the indexes and get 20 results from each or get 100 results from the first index it encounters?

---

## [Should I make any chown to elasticsearch](https://discuss.elastic.co/t/should-i-make-any-chown-to-elasticsearch/238547)

<div class="topic-metadata">

**Author:** [@azteker](https://discuss.elastic.co/u/azteker)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 9:59pm UTC](https://discuss.elastic.co/t/should-i-make-any-chown-to-elasticsearch/238547 "2020-06-24T21:59:35Z")

</div>

Now the /etc/elasticsearch is root.root, and /var/data/elasticsearch and /var/log/elasticsearch are elasticsearch.elasticsearch. Is this correct?

---

## [Ruby API: difference between indices.template.\* and indices.index\_template](https://discuss.elastic.co/t/ruby-api-difference-between-indices-template-and-indices-index-template/238558)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 8:20pm UTC](https://discuss.elastic.co/t/ruby-api-difference-between-indices-template-and-indices-index-template/238558 "2020-06-24T20:20:09Z")

</div>

I have been writing some code to manage indexing templates and became very confused over whether I should be using , say, indices.exists\_index\_template.rb or indices.exists\_template.rb. After a lot of trial and error I …

---

## [J2KImageReader not loaded](https://discuss.elastic.co/t/j2kimagereader-not-loaded/238334)

<div class="topic-metadata">

**Author:** [@SKellyRJC](https://discuss.elastic.co/u/SKellyRJC)\
**Replies:** 9\
**Last updated:** [June 24, 2020, 8:14pm UTC](https://discuss.elastic.co/t/j2kimagereader-not-loaded/238334 "2020-06-24T20:14:16Z")

</div>

Hi, I have placed the jai-imageio-core-1.3.0.jar and the jai-imageio-jpeg2000-1.3.0.jar into the LIB directory for FSCrawler, however it does not get rid of the warning saying J2KImageReader not loaded? Why would this …

---

## [Where can I find Elasticsearch,Logstash,Kibana images for 6.6.1 version for Rancher v1.6](https://discuss.elastic.co/t/where-can-i-find-elasticsearch-logstash-kibana-images-for-6-6-1-version-for-rancher-v1-6/238538)

<div class="topic-metadata">

**Author:** [@chinmoy\_padhi](https://discuss.elastic.co/u/chinmoy_padhi)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 5:24pm UTC](https://discuss.elastic.co/t/where-can-i-find-elasticsearch-logstash-kibana-images-for-6-6-1-version-for-rancher-v1-6/238538 "2020-06-24T17:24:16Z")

</div>

Hi, Where can I get the Elasticsearch,Kibana,Logstash images for 6.6.1 version for Rancher 1.6 supported version Thanks

---

## [ES/Spark RDD Partitioning Strangeness](https://discuss.elastic.co/t/es-spark-rdd-partitioning-strangeness/238312)

<div class="topic-metadata">

**Author:** [@ikiril01](https://discuss.elastic.co/u/ikiril01)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 4:33pm UTC](https://discuss.elastic.co/t/es-spark-rdd-partitioning-strangeness/238312 "2020-06-24T16:33:13Z")

</div>

We're using the es-hadoop connector to dump data from an ES index to spark (w/ pyspark, newAPIHadoopRDD). The issue we're seeing is that the RDD that is returned is skewed in terms of partitions - it always returns 9 par…

---

## [How speed index](https://discuss.elastic.co/t/how-speed-index/238484)

<div class="topic-metadata">

**Author:** [@livetech](https://discuss.elastic.co/u/livetech)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 3:40pm UTC](https://discuss.elastic.co/t/how-speed-index/238484 "2020-06-24T15:40:46Z")

</div>

My server have 48gb ram and 500GB free space, digital ocean server very strong cpu how to configure yaml to speed index, please someone give me an example.

---

## [Collect the nested fields](https://discuss.elastic.co/t/collect-the-nested-fields/238528)

<div class="topic-metadata">

**Author:** [@aviman](https://discuss.elastic.co/u/aviman)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 3:54pm UTC](https://discuss.elastic.co/t/collect-the-nested-fields/238528 "2020-06-24T15:54:38Z")

</div>

Hi, How can I collect the nested fields names only: "variable" : { "XX" : { "value" : "1" }, "YY" : { "value" : "2" } How can i extract the nested filed names "XX" & "YY" using painless script

---

## [On average, what should we expect in query performance for nodes and core variations?](https://discuss.elastic.co/t/on-average-what-should-we-expect-in-query-performance-for-nodes-and-core-variations/237512)

<div class="topic-metadata">

**Author:** [@spdoes](https://discuss.elastic.co/u/spdoes)\
**Replies:** 4\
**Last updated:** [June 24, 2020, 3:21pm UTC](https://discuss.elastic.co/t/on-average-what-should-we-expect-in-query-performance-for-nodes-and-core-variations/237512 "2020-06-24T15:21:13Z")

</div>

Doubling the number of cores in rough average means reducing in half the query time ? (from 6 to 12 in my case) Doubling the number of nodes in rough average means reducing in half the query time ? (from 1 to 2 and …

---

## [How to use ES API to implement prometheus increase function](https://discuss.elastic.co/t/how-to-use-es-api-to-implement-prometheus-increase-function/238507)

<div class="topic-metadata">

**Author:** [@Roy\_Zhang](https://discuss.elastic.co/u/Roy_Zhang)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 2:51pm UTC](https://discuss.elastic.co/t/how-to-use-es-api-to-implement-prometheus-increase-function/238507 "2020-06-24T14:51:49Z")

</div>

Dear Elastic search experts, I am using metricBeat to streaming data from prometheus to ES. I have a requirement to implement prometheus increase function. The definition of increase function in prometheus: The follow…

---

## [Relevancy - how this is calculated](https://discuss.elastic.co/t/relevancy-how-this-is-calculated/238504)

<div class="topic-metadata">

**Author:** [@nages](https://discuss.elastic.co/u/nages)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 2:42pm UTC](https://discuss.elastic.co/t/relevancy-how-this-is-calculated/238504 "2020-06-24T14:42:06Z")

</div>

I had the following documents indexed PUT ecommercesite/product/2 { "product\_name": "Men Water Resistant Jacket", "description": "Provides comfort during biking and hiking", } when I tried to get the scoring fo…

---

## [Clustering two nodes with different data](https://discuss.elastic.co/t/clustering-two-nodes-with-different-data/238474)

<div class="topic-metadata">

**Author:** [@Alvaro\_Sanz](https://discuss.elastic.co/u/Alvaro_Sanz)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 1:56pm UTC](https://discuss.elastic.co/t/clustering-two-nodes-with-different-data/238474 "2020-06-24T13:56:00Z")

</div>

Hello, I am trying to form a cluster of two elasticsearch nodes. The both nodes have been in production environment for a while, and they both have different data. Is it possible to make a cluster of both nodes? In case…

---

## [Unassigned replica shards with reason as INDEX\_CREATED](https://discuss.elastic.co/t/unassigned-replica-shards-with-reason-as-index-created/237845)

<div class="topic-metadata">

**Author:** [@Aliasgar\_Choolawala](https://discuss.elastic.co/u/Aliasgar_Choolawala)\
**Replies:** 4\
**Last updated:** [June 24, 2020, 1:48pm UTC](https://discuss.elastic.co/t/unassigned-replica-shards-with-reason-as-index-created/237845 "2020-06-24T13:48:28Z")

</div>

can anyone please help me ? i have a 7 data node elasticsearch cluster(5 master nodes) for an index, i have the following settings for routing: "routing" : { "allocation" : { "require" : { …

---

## [How can we make field optional in elasticsearch?](https://discuss.elastic.co/t/how-can-we-make-field-optional-in-elasticsearch/238419)

<div class="topic-metadata">

**Author:** [@Abdul\_Gaffar\_Shaikh](https://discuss.elastic.co/u/Abdul_Gaffar_Shaikh)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 1:41pm UTC](https://discuss.elastic.co/t/how-can-we-make-field-optional-in-elasticsearch/238419 "2020-06-24T13:41:16Z")

</div>

i am trying to ingested csv file into elasticsearch via logstash and i have a dedicated schema for it. my data gets ingested for date fields where format is not specified and with format specified , it throws that into …

---

## [Freezed indices don't load](https://discuss.elastic.co/t/freezed-indices-dont-load/236353)

<div class="topic-metadata">

**Author:** [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Replies:** 6\
**Last updated:** [June 24, 2020, 1:40pm UTC](https://discuss.elastic.co/t/freezed-indices-dont-load/236353 "2020-06-24T13:40:23Z")

</div>

Hi, I started freezing older daily indices that are used less frequently, but now those aren't loading at all. Shouldn't those be available for reading (e.g., Kibana)? Thanks!

---

## [NoClassDefFoundError: org/elasticsearch/cluster/metadata/MetaData$Custom](https://discuss.elastic.co/t/noclassdeffounderror-org-elasticsearch-cluster-metadata-metadata-custom/238490)

<div class="topic-metadata">

**Author:** [@dinit](https://discuss.elastic.co/u/dinit)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 1:39pm UTC](https://discuss.elastic.co/t/noclassdeffounderror-org-elasticsearch-cluster-metadata-metadata-custom/238490 "2020-06-24T13:39:02Z")

</div>

Hey, I was updating my ElasticSearch from 7.6.1 to 7.8 and now my elastic process isn't startig any more. The Stacktrace is: \[2020-06-24T15:31:01,925\]\[INFO \]\[o.e.n.Node \] \[ALL\] JVM arguments \[-Xms6g,…

---

## [Leader\_check - time out?](https://discuss.elastic.co/t/leader-check-time-out/238459)

<div class="topic-metadata">

**Author:** [@PeterG](https://discuss.elastic.co/u/PeterG)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 12:32pm UTC](https://discuss.elastic.co/t/leader-check-time-out/238459 "2020-06-24T12:32:12Z")

</div>

Hi, We have a 3 node search cluster running on 3 vms. We run version 7.4.2 We run all the 3 nodes with the same config: discovery.seed\_hosts: \["grtzpse1-7.bla", "grtzpse2-7.bla", "grtzpse3-7.bla"\] cluster.initial\_mas…

---

## [Elastic joda to java time update - Illegal pattern component: uuuu](https://discuss.elastic.co/t/elastic-joda-to-java-time-update-illegal-pattern-component-uuuu/237830)

<div class="topic-metadata">

**Author:** [@krrz](https://discuss.elastic.co/u/krrz)\
**Replies:** 5\
**Last updated:** [June 24, 2020, 12:36pm UTC](https://discuss.elastic.co/t/elastic-joda-to-java-time-update-illegal-pattern-component-uuuu/237830 "2020-06-24T12:36:02Z")

</div>

I'm trying update joda time to java time in pipeline. And after copy sample from java-time-migration-update-ingest-pipelines I get "Illegal pattern component: uuuu" error. Some examples working, but changed index\_na…

---

## [How can I write multiple search with grater that less than query?](https://discuss.elastic.co/t/how-can-i-write-multiple-search-with-grater-that-less-than-query/238429)

<div class="topic-metadata">

**Author:** [@Yusuf\_Karatoprak](https://discuss.elastic.co/u/Yusuf_Karatoprak)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 12:01pm UTC](https://discuss.elastic.co/t/how-can-i-write-multiple-search-with-grater-that-less-than-query/238429 "2020-06-24T12:01:05Z")

</div>

How can I use grater than and less than with should match query in elasticsearch ? { "query": { "range" : { "rate" : { "gte" : 0.6, "lte" : 1, …

---

## [ElasticSearch ODBC Driver support for CRUD](https://discuss.elastic.co/t/elasticsearch-odbc-driver-support-for-crud/236398)

<div class="topic-metadata">

**Author:** [@onkark](https://discuss.elastic.co/u/onkark)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 12:00pm UTC](https://discuss.elastic.co/t/elasticsearch-odbc-driver-support-for-crud/236398 "2020-06-24T12:00:30Z")

</div>

Hi Team, I'm using ElasticSearch ODBC Driver in order to connect my CPP code with ElasticSearch to perform CRUD operations. I can retrieve records from elasticsearch very well. I just want to know why I'm unable update…

---

## [Optimizing setup which contains a single cold-node](https://discuss.elastic.co/t/optimizing-setup-which-contains-a-single-cold-node/238006)

<div class="topic-metadata">

**Author:** [@victor.nilsson](https://discuss.elastic.co/u/victor.nilsson)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 11:31am UTC](https://discuss.elastic.co/t/optimizing-setup-which-contains-a-single-cold-node/238006 "2020-06-24T11:31:42Z")

</div>

Hey there, We currently have the following setup: Two hot-nodes ingesting live data. After x amount of days ILM will rollover the indices and then move the indices to a cold-node where we close the indices after 7 days…

---

## [DELETE api vs \_delete\_by\_query against index alias](https://discuss.elastic.co/t/delete-api-vs-delete-by-query-against-index-alias/238439)

<div class="topic-metadata">

**Author:** [@raulk89](https://discuss.elastic.co/u/raulk89)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 11:07am UTC](https://discuss.elastic.co/t/delete-api-vs-delete-by-query-against-index-alias/238439 "2020-06-24T11:07:46Z")

</div>

Hi Elastic 6.8.4 When I have 2 indices, A and B. I have created alias X for these. For index B is\_write\_index: true Both of these indexes has doc with \_id: 5 When I do DELETE /X/\_doc/5 Then the doc is deleted only …

---

## [Confuse about 'index.translog.durability'](https://discuss.elastic.co/t/confuse-about-index-translog-durability/237494)

<div class="topic-metadata">

**Author:** [@KellyK313](https://discuss.elastic.co/u/KellyK313)\
**Replies:** 6\
**Last updated:** [June 24, 2020, 10:55am UTC](https://discuss.elastic.co/t/confuse-about-index-translog-durability/237494 "2020-06-24T10:55:52Z")

</div>

Hey guys,I'm learning the index.translog.durability parameter and got confused. In my opinion,when I change this parameter to async ,it means ElasticSearch use Buffer I/O,data is cached in pagecache and index.translog.s…

---

## [Max\_bucket and Kibana queries](https://discuss.elastic.co/t/max-bucket-and-kibana-queries/238407)

<div class="topic-metadata">

**Author:** [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 8:52am UTC](https://discuss.elastic.co/t/max-bucket-and-kibana-queries/238407 "2020-06-24T08:52:10Z")

</div>

Hi, I have about 30 indices in ElasticSearch with about 10.000.000 documents and they are under one index pattern of Kibana. One index of them ( data\_A ) , which has about 10.000 distinct values in the field "c\_displa…

---

## [What would make cpu usage differs too excessively between nodes?](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405)

<div class="topic-metadata">

**Author:** [@Morriaty](https://discuss.elastic.co/u/Morriaty)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 10:12am UTC](https://discuss.elastic.co/t/what-would-make-cpu-usage-differs-too-excessively-between-nodes/238405 "2020-06-24T10:12:36Z")

</div>

We have a cluster of three nodes with same hardwares. We have made some http benchmark test on: one index of 4 million docs, 5 shards, 1 replica use golang client gopkg.in/olivere/elastic.v6 connect to all three nodes.…

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

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