# Elasticsearch

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

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

**Page:** 1692

---

## [Elastic Search \_update\_by\_query](https://discuss.elastic.co/t/elastic-search-update-by-query/130799)

<div class="topic-metadata">

**Author:** [@surajdalvi](https://discuss.elastic.co/u/surajdalvi)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 3:21pm UTC](https://discuss.elastic.co/t/elastic-search-update-by-query/130799 "2018-05-11T15:21:30Z")

</div>

Hi I am using \_update\_by\_query in following way: POST /documents/\_update\_by\_query { "script":{ "source":"for(int i = 0;i \< ctx.\_source.fields.size();i++){for (int j = 0; j \< params.field\_uid.size();j++){ if(params.…

---

## [Importing data with cURL error. Newb here](https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381)

<div class="topic-metadata">

**Author:** [@mehdi-gital](https://discuss.elastic.co/u/mehdi-gital)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 3:14pm UTC](https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381 "2018-05-11T15:14:35Z")

</div>

Hey guys, I've been learning Elasticsearch and Kibana for 2-3 days now. I'm super newbie and I know it but I was wondering if anyone can lend a hand. Issue: I'm trying to pass a json file to my kibana session using the…

---

## [Status of restore process](https://discuss.elastic.co/t/status-of-restore-process/131159)

<div class="topic-metadata">

**Author:** [@\_danny](https://discuss.elastic.co/u/_danny)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 3:12pm UTC](https://discuss.elastic.co/t/status-of-restore-process/131159 "2018-05-11T15:12:29Z")

</div>

Hi, I am having two elastic search clusters and a single shared repository is registered on both of them. One process is used to snapshot the indices from first ES cluster while another process restore the snapshot to …

---

## [ES 6.2.4 Coordinator node sudden OutOfMemory](https://discuss.elastic.co/t/es-6-2-4-coordinator-node-sudden-outofmemory/131488)

<div class="topic-metadata">

**Author:** [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 2:28pm UTC](https://discuss.elastic.co/t/es-6-2-4-coordinator-node-sudden-outofmemory/131488 "2018-05-11T14:28:51Z")

</div>

Hi Team, I'm trying to figure out the reason for the sudden death of one of my coordinator nodes. I did not change any JVM default settings and set -Xms4g -Xmx4g. The coordinator node has been working fine for months …

---

## [\#! Deprecation: Deprecated field \[template\] used, replaced by \[index\_patterns\]](https://discuss.elastic.co/t/deprecation-deprecated-field-template-used-replaced-by-index-patterns/129943)

<div class="topic-metadata">

**Author:** [@Yaasar\_Shaikh](https://discuss.elastic.co/u/Yaasar_Shaikh)\
**Replies:** 7\
**Last updated:** [May 11, 2018, 1:54pm UTC](https://discuss.elastic.co/t/deprecation-deprecated-field-template-used-replaced-by-index-patterns/129943 "2018-05-11T13:54:05Z")

</div>

iam trying to create a new index but this error occurs

---

## [Sharding in ES](https://discuss.elastic.co/t/sharding-in-es/131446)

<div class="topic-metadata">

**Author:** [@vaibhav\_gulati](https://discuss.elastic.co/u/vaibhav_gulati)\
**Replies:** 4\
**Last updated:** [May 11, 2018, 12:38pm UTC](https://discuss.elastic.co/t/sharding-in-es/131446 "2018-05-11T12:38:31Z")

</div>

"Each document in your index belongs to a single primary shard, so the number of primary shards that you have determines the maximum amount of data that your index can hold." can anyone help me understand this?

---

## [How to investigate why Elasticsearch required manual intervention after "failed to obtain in-memory shard lock"](https://discuss.elastic.co/t/how-to-investigate-why-elasticsearch-required-manual-intervention-after-failed-to-obtain-in-memory-shard-lock/131474)

<div class="topic-metadata">

**Author:** [@Dominik\_Stadler](https://discuss.elastic.co/u/Dominik_Stadler)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 12:18pm UTC](https://discuss.elastic.co/t/how-to-investigate-why-elasticsearch-required-manual-intervention-after-failed-to-obtain-in-memory-shard-lock/131474 "2018-05-11T12:18:16Z")

</div>

We had a case where one cluster had flaky network for a short time and thus nodes were lost form the cluster, started to rejoin, only to be disconnected again a few times. This seems to have left the cluster in a bad sh…

---

## [Using multiple filters in one filteredQuery in JAVA API](https://discuss.elastic.co/t/using-multiple-filters-in-one-filteredquery-in-java-api/131325)

<div class="topic-metadata">

**Author:** [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Replies:** 0\
**Last updated:** [May 10, 2018, 3:24pm UTC](https://discuss.elastic.co/t/using-multiple-filters-in-one-filteredquery-in-java-api/131325 "2018-05-10T15:24:44Z")

</div>

Hi, I am working on a project using Elasticsearch 1.7 and i would use a query containing a search query and add two filters typeFilter() and termFilter That's a part of my method in groovy code, i can not share the …

---

## [Error in wrapper query builder, java api, Highlevel client](https://discuss.elastic.co/t/error-in-wrapper-query-builder-java-api-highlevel-client/130984)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 5\
**Last updated:** [May 11, 2018, 12:15pm UTC](https://discuss.elastic.co/t/error-in-wrapper-query-builder-java-api-highlevel-client/130984 "2018-05-11T12:15:34Z")

</div>

I got a error when passing a json query in WrapperQueryBuilder() method in java api. code as below SearchResponse response = client.search(new SearchRequest(index) .source( new SearchSourceBuilder() .query(new Wrappe…

---

## [\[INFO \]\[o.e.m.j.JvmGcMonitorService\] \[node-1\] \[gc\]\[5414000\] overhead, spent \[296ms\] collecting in the last \[1s\]](https://discuss.elastic.co/t/info-o-e-m-j-jvmgcmonitorservice-node-1-gc-5414000-overhead-spent-296ms-collecting-in-the-last-1s/131464)

<div class="topic-metadata">

**Author:** [@suchand](https://discuss.elastic.co/u/suchand)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 11:26am UTC](https://discuss.elastic.co/t/info-o-e-m-j-jvmgcmonitorservice-node-1-gc-5414000-overhead-spent-296ms-collecting-in-the-last-1s/131464 "2018-05-11T11:26:11Z")

</div>

Hi, I am using Elsticsearch5.5.3 with 4 node cluster( one node is just a coordinating node). One of my node is showing 100% cpu usage always, and also i can see this below log message from elasticsearch. \[INFO \]\[o.e.m…

---

## [Alerting - % over XX Response Time](https://discuss.elastic.co/t/alerting-over-xx-response-time/130474)

<div class="topic-metadata">

**Author:** [@Kieron](https://discuss.elastic.co/u/Kieron)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 10:53am UTC](https://discuss.elastic.co/t/alerting-over-xx-response-time/130474 "2018-05-11T10:53:45Z")

</div>

Hi All!! Need some help/guidance really! we've just got our ELK stack running - hosted in the cloud which has removed the need for the heavy cost of hosting internally out of our data centre. I want to set-up an alert …

---

## [Elasticsearch start log error “failed to authenticate user \[kibana\]”](https://discuss.elastic.co/t/elasticsearch-start-log-error-failed-to-authenticate-user-kibana/131288)

<div class="topic-metadata">

**Author:** [@wuwenjie\_cn](https://discuss.elastic.co/u/wuwenjie_cn)\
**Replies:** 7\
**Last updated:** [May 11, 2018, 10:42am UTC](https://discuss.elastic.co/t/elasticsearch-start-log-error-failed-to-authenticate-user-kibana/131288 "2018-05-11T10:42:05Z")

</div>

My elasticsearch has been reporting the following error during startup, I hope professional personnel help solve it, thank you very much! \[2018-05-11T09:24:34,959\]\[INFO \]\[o.e.x.s.a.AuthenticationService\] \[elk-node2\] Aut…

---

## [Getting disconnecting "TimeoutTransportException" exception in java client API](https://discuss.elastic.co/t/getting-disconnecting-timeouttransportexception-exception-in-java-client-api/131451)

<div class="topic-metadata">

**Author:** [@Balamurali](https://discuss.elastic.co/u/Balamurali)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 9:47am UTC](https://discuss.elastic.co/t/getting-disconnecting-timeouttransportexception-exception-in-java-client-api/131451 "2018-05-11T09:47:06Z")

</div>

Hi All. Currently, we are using elasticsearch 1.3.7 version and working very hard on ES upgrade. Getting below exception in application logs due to java client API every frequently. 2018-05-11 02:31:34,739 INFO \[org.…

---

## [Does Java rest client support "Cross Cluster Search"](https://discuss.elastic.co/t/does-java-rest-client-support-cross-cluster-search/130978)

<div class="topic-metadata">

**Author:** [@luxiaoxun](https://discuss.elastic.co/u/luxiaoxun)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 9:49am UTC](https://discuss.elastic.co/t/does-java-rest-client-support-cross-cluster-search/130978 "2018-05-11T09:49:01Z")

</div>

Hi All We are using ES 2.4.6 now with "Tribe Node" and Java TransportClient, they are working fine, and we can search multiple indexes on different clusters. We are going to upgrade to ES 6.2.4 and use "Java rest clien…

---

## [How to develop clients for several versions](https://discuss.elastic.co/t/how-to-develop-clients-for-several-versions/131017)

<div class="topic-metadata">

**Author:** [@pablovb](https://discuss.elastic.co/u/pablovb)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 9:35am UTC](https://discuss.elastic.co/t/how-to-develop-clients-for-several-versions/131017 "2018-05-11T09:35:40Z")

</div>

Hi all, Currently, I have a product that has a client for Elastic 2, using the Transport API. Now, I want to develop another client for the Elastic server v 5.6 and on, and I would like to use the REST High Level Clien…

---

## [Elasticsearch mapping fields in python script gives error as "unsupported parameters"](https://discuss.elastic.co/t/elasticsearch-mapping-fields-in-python-script-gives-error-as-unsupported-parameters/130824)

<div class="topic-metadata">

**Author:** [@tushar\_raut](https://discuss.elastic.co/u/tushar_raut)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 9:31am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-fields-in-python-script-gives-error-as-unsupported-parameters/130824 "2018-05-11T09:31:51Z")

</div>

Mapping configuration are as follows: es\_mapping = { 'properties': { 'university': { 'type': 'object', 'properties': { 'name': …

---

## [ElasticSearch CircuitBreakingException](https://discuss.elastic.co/t/elasticsearch-circuitbreakingexception/131442)

<div class="topic-metadata">

**Author:** [@Dazith\_Kj](https://discuss.elastic.co/u/Dazith_Kj)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 9:06am UTC](https://discuss.elastic.co/t/elasticsearch-circuitbreakingexception/131442 "2018-05-11T09:06:33Z")

</div>

When querying date from dashboards I am getting the below exception in ES log. Any idea of how to resolving the issue? ES version : { "name": "Plunderer", "cluster\_name": "elasticsearch", "cluster\_uuid": "9LjKXnnbRD-de…

---

## [How to use "aggs" query on BigDecimal-type data?](https://discuss.elastic.co/t/how-to-use-aggs-query-on-bigdecimal-type-data/131441)

<div class="topic-metadata">

**Author:** [@Lee-Think](https://discuss.elastic.co/u/Lee-Think)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 9:01am UTC](https://discuss.elastic.co/t/how-to-use-aggs-query-on-bigdecimal-type-data/131441 "2018-05-11T09:01:24Z")

</div>

Hi there, i want to store bigdecimal in elastisearch, but i found it's not be supported except convert the data to string or float, but if i do so, string will lead to the data can't be used for aggs; and float will lead…

---

## [Setting up Security on my cluster](https://discuss.elastic.co/t/setting-up-security-on-my-cluster/131431)

<div class="topic-metadata">

**Author:** [@Hanen](https://discuss.elastic.co/u/Hanen)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 8:57am UTC](https://discuss.elastic.co/t/setting-up-security-on-my-cluster/131431 "2018-05-11T08:57:38Z")

</div>

Hello, I have a cluster with 6 nodes, I would like to encrypt traffic to, from, and within my Elasticsearch cluster. (ps: I have basic license) What config do I need to do to achieve this? version Elasticsearch:6.2.2 …

---

## [Like query in nested type without using wildcard](https://discuss.elastic.co/t/like-query-in-nested-type-without-using-wildcard/131305)

<div class="topic-metadata">

**Author:** [@veerabhadraiah](https://discuss.elastic.co/u/veerabhadraiah)\
**Replies:** 10\
**Last updated:** [May 11, 2018, 8:46am UTC](https://discuss.elastic.co/t/like-query-in-nested-type-without-using-wildcard/131305 "2018-05-11T08:46:52Z")

</div>

Hi, Am using nested data type for to create index POST \_my\_index1 { "mappings": { "\_doc": { "properties": { "user": { "type": "nested" …

---

## [Add New data node and rebalance in red status](https://discuss.elastic.co/t/add-new-data-node-and-rebalance-in-red-status/131433)

<div class="topic-metadata">

**Author:** [@76a99de1e92a429af5f9](https://discuss.elastic.co/u/76a99de1e92a429af5f9)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 8:35am UTC](https://discuss.elastic.co/t/add-new-data-node-and-rebalance-in-red-status/131433 "2018-05-11T08:35:09Z")

</div>

Hello, One of Data node was failed, And I lose my data(shard). So Cluster health is Red. But I checked I can search red status index exclude lost data, so i didn't delete red status indexes. And I add new data node, i…

---

## [Every minor upgrade breaks something](https://discuss.elastic.co/t/every-minor-upgrade-breaks-something/131428)

<div class="topic-metadata">

**Author:** [@markdaku](https://discuss.elastic.co/u/markdaku)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 8:26am UTC](https://discuss.elastic.co/t/every-minor-upgrade-breaks-something/131428 "2018-05-11T08:26:23Z")

</div>

I love Elasticsearch except for upgrades. Which generally fail miserably every single time. This means lost events which means Elastic search is not a system of record. Which is BAD. It's so fragile. The list of stu…

---

## [Automatic index creation stopped after upgrade from 5.6 to 6.2](https://discuss.elastic.co/t/automatic-index-creation-stopped-after-upgrade-from-5-6-to-6-2/131423)

<div class="topic-metadata">

**Author:** [@hpniemitube](https://discuss.elastic.co/u/hpniemitube)\
**Replies:** 0\
**Last updated:** [May 11, 2018, 7:28am UTC](https://discuss.elastic.co/t/automatic-index-creation-stopped-after-upgrade-from-5-6-to-6-2/131423 "2018-05-11T07:28:17Z")

</div>

Ok sorry, found the reason. Logstash template was too old. Deleted the old one and restartet logstash and ok. Hi, Just upgraded Elastic 5.6 --\> 6.2. Everything went fine and after the upgrade, indexing worked fine. Ho…

---

## [Function score - boost\_mode replace when functions are empty](https://discuss.elastic.co/t/function-score-boost-mode-replace-when-functions-are-empty/130937)

<div class="topic-metadata">

**Author:** [@giga811](https://discuss.elastic.co/u/giga811)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 7:44am UTC](https://discuss.elastic.co/t/function-score-boost-mode-replace-when-functions-are-empty/130937 "2018-05-11T07:44:45Z")

</div>

Hello, I have a question. Our search platform generates our query dynamically depending on the query. We use function\_score scoring to modify our search ordering. "boost\_mode" is "replace" in order to take only our "f…

---

## [Bulk Request Java API](https://discuss.elastic.co/t/bulk-request-java-api/131413)

<div class="topic-metadata">

**Author:** [@aarthinim](https://discuss.elastic.co/u/aarthinim)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 7:34am UTC](https://discuss.elastic.co/t/bulk-request-java-api/131413 "2018-05-11T07:34:02Z")

</div>

I m uploading 80,000 records in Elasticsearch through Bulk Request . It uploaded in 30 secs. My doubt is Whether request is send for every record or for whole 80k records single request is send ?

---

## [Dashboards are Failing Users for LDAP Users](https://discuss.elastic.co/t/dashboards-are-failing-users-for-ldap-users/131408)

<div class="topic-metadata">

**Author:** [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 7:15am UTC](https://discuss.elastic.co/t/dashboards-are-failing-users-for-ldap-users/131408 "2018-05-11T07:15:41Z")

</div>

Hi, I installed x-pack across all the nodes on my ELK cluster, and also enabled Security with LDAP, and provided Kibana dashboard only roles for all the users in LDAP. When I login thru elastic user Id, Am able to see …

---

## [Segment merging takes infinity time](https://discuss.elastic.co/t/segment-merging-takes-infinity-time/131311)

<div class="topic-metadata">

**Author:** [@timurn](https://discuss.elastic.co/u/timurn)\
**Replies:** 3\
**Last updated:** [May 11, 2018, 6:49am UTC](https://discuss.elastic.co/t/segment-merging-takes-infinity-time/131311 "2018-05-11T06:49:09Z")

</div>

In my cluster sometimes I see dramaticaly performance drops. I found interesting lines in a log file \[2018-05-10T12:19:32,563\]\[DEBUG\]\[o.e.i.e.InternalEngine$EngineMergeScheduler\] \[server-v1\] \[logs-space-2018w19\]\[1\] me…

---

## [Terms aggregation Java API with missing](https://discuss.elastic.co/t/terms-aggregation-java-api-with-missing/131293)

<div class="topic-metadata">

**Author:** [@amugofjava](https://discuss.elastic.co/u/amugofjava)\
**Replies:** 1\
**Last updated:** [May 11, 2018, 6:48am UTC](https://discuss.elastic.co/t/terms-aggregation-java-api-with-missing/131293 "2018-05-11T06:48:47Z")

</div>

Hi, I am trying to build a Terms bucket aggregation that also includes documents with the term missing. What I'm finding is, without adding a .missing(), as you would expect, any documents missing the term are not inclu…

---

## [Date histogram query; count values](https://discuss.elastic.co/t/date-histogram-query-count-values/131279)

<div class="topic-metadata">

**Author:** [@jfdsa](https://discuss.elastic.co/u/jfdsa)\
**Replies:** 2\
**Last updated:** [May 11, 2018, 6:44am UTC](https://discuss.elastic.co/t/date-histogram-query-count-values/131279 "2018-05-11T06:44:25Z")

</div>

Hello, I am new to elastic, I am having some problems with queries. I would like to do a date-histogram aggregation like query, where I can specify a time interval and get count values, but for specific values of a fie…

---

## [Curator 5.5.1 Problem](https://discuss.elastic.co/t/curator-5-5-1-problem/131150)

<div class="topic-metadata">

**Author:** [@hoff](https://discuss.elastic.co/u/hoff)\
**Replies:** 3\
**Last updated:** [May 11, 2018, 6:41am UTC](https://discuss.elastic.co/t/curator-5-5-1-problem/131150 "2018-05-11T06:41:01Z")

</div>

Hello, I have a question about the compatibility of curator 5.5.1 with elasticsearch 6.2.3. I created curator.yml and action.yml. When trying to run the curator with the command curator --config /home/rejnet/curator/cura…

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

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