# Elasticsearch

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

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

**Page:** 1393

---

## [PainlessExtension Custom Plugin is not loading](https://discuss.elastic.co/t/painlessextension-custom-plugin-is-not-loading/168744)

<div class="topic-metadata">

**Author:** [@rajendra\_gj](https://discuss.elastic.co/u/rajendra_gj)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 6:01pm UTC](https://discuss.elastic.co/t/painlessextension-custom-plugin-is-not-loading/168744 "2019-02-17T18:01:48Z")

</div>

Hi Team, I am writing a custom painless plugin to perform few custom calculations. I have referred this example and created one (https://github.com/elastic/elasticsearch/tree/master/plugins/examples/painless-whitelist)…

---

## [Rollup Problem](https://discuss.elastic.co/t/rollup-problem/167794)

<div class="topic-metadata">

**Author:** [@darkwarrior](https://discuss.elastic.co/u/darkwarrior)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 5:57pm UTC](https://discuss.elastic.co/t/rollup-problem/167794 "2019-02-17T17:57:23Z")

</div>

Hello, I am having some problems in Rollup, We have daywise indices and in one index we are having millions of documents. So we are having such type of indices from june 2018 to current date. And I am trying to …

---

## [Parse error with CompositeAggregation](https://discuss.elastic.co/t/parse-error-with-compositeaggregation/168735)

<div class="topic-metadata">

**Author:** [@Vaishnavi\_Abirami](https://discuss.elastic.co/u/Vaishnavi_Abirami)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 2:42pm UTC](https://discuss.elastic.co/t/parse-error-with-compositeaggregation/168735 "2019-02-17T14:42:48Z")

</div>

I have tried to achieve composite aggregation in my elastic query and I'm successfully able to receive results with regular elastic search query. Just a FYI I use date histogram aggregation with composite aggregation al…

---

## [Exception in thread "main" java.nio.file.AccessDeniedException](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-accessdeniedexception/165497)

<div class="topic-metadata">

**Author:** [@sahil\_ahmed](https://discuss.elastic.co/u/sahil_ahmed)\
**Replies:** 17\
**Last updated:** [February 17, 2019, 2:40pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-accessdeniedexception/165497 "2019-02-17T14:40:57Z")

</div>

I get this error when i tried to run elasticsearch. Exception in thread "main" java.nio.file.AccessDeniedException: /home/supportdev/elasticsearch-6.5.4/config/jvm.options at sun.nio.fs.UnixException.translateToIOExcep…

---

## [Curator rpm offline installation](https://discuss.elastic.co/t/curator-rpm-offline-installation/166816)

<div class="topic-metadata">

**Author:** [@sahere37](https://discuss.elastic.co/u/sahere37)\
**Replies:** 11\
**Last updated:** [February 17, 2019, 2:36pm UTC](https://discuss.elastic.co/t/curator-rpm-offline-installation/166816 "2019-02-17T14:36:59Z")

</div>

hi all, I want to install rpm version of curator as offline, could you please advice me about this? Many thanks.

---

## [How the score is calculated in elasticsearch?](https://discuss.elastic.co/t/how-the-score-is-calculated-in-elasticsearch/168728)

<div class="topic-metadata">

**Author:** [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Replies:** 1\
**Last updated:** [February 17, 2019, 12:59pm UTC](https://discuss.elastic.co/t/how-the-score-is-calculated-in-elasticsearch/168728 "2019-02-17T12:59:16Z")

</div>

When I tries, GET /logstash-2019.02.17/doc/\_search { "query":{ "match":{ "response": "200" } } } The index logstash-2019.02.17 does have a field of "response" of type "text", "response" : { "type" : "text", "…

---

## [Safe restart of clustered](https://discuss.elastic.co/t/safe-restart-of-clustered/168726)

<div class="topic-metadata">

**Author:** [@mouli\_v](https://discuss.elastic.co/u/mouli_v)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 12:55pm UTC](https://discuss.elastic.co/t/safe-restart-of-clustered/168726 "2019-02-17T12:55:45Z")

</div>

I need some help for the safe restart of elasticsearch. I found this article in the forums https://www.elastic.co/guide/en/elasticsearch/guide/current/\_rolling\_restarts.html. I am looking for an alternative way to restar…

---

## [Alias and Write index](https://discuss.elastic.co/t/alias-and-write-index/167873)

<div class="topic-metadata">

**Author:** [@vasek](https://discuss.elastic.co/u/vasek)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 9:27am UTC](https://discuss.elastic.co/t/alias-and-write-index/167873 "2019-02-17T09:27:58Z")

</div>

Hello, I have problem with setting an write index within alias. Could you please tell me what am I doing wrong? I am using Elasticsearch version 6.3.2. I tried steps below on version 6.5.4 and it worked well. CREATING…

---

## [Create pipline](https://discuss.elastic.co/t/create-pipline/168718)

<div class="topic-metadata">

**Author:** [@fangfhm](https://discuss.elastic.co/u/fangfhm)\
**Replies:** 1\
**Last updated:** [February 17, 2019, 8:24am UTC](https://discuss.elastic.co/t/create-pipline/168718 "2019-02-17T08:24:50Z")

</div>

input data format { date:"1550391413", value:"1" } create pipline Automatically creates the day index, Can be guided under if written. Online reference,How to convert timestamp?,thank you curl -X PUT http://yo…

---

## [How to use term Run\_As in kibana](https://discuss.elastic.co/t/how-to-use-term-run-as-in-kibana/168708)

<div class="topic-metadata">

**Author:** [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 8:18am UTC](https://discuss.elastic.co/t/how-to-use-term-run-as-in-kibana/168708 "2019-02-17T08:18:36Z")

</div>

Hello Current Logined user is elastic, I want to query dsl run as another user named iamazy, How to write the dsl， I try to run this dsl but got exception POST test\_index/\_search { "query": { "match\_all": {} }…

---

## [Updating an index with Scripted Metrics results](https://discuss.elastic.co/t/updating-an-index-with-scripted-metrics-results/168711)

<div class="topic-metadata">

**Author:** [@faZhift](https://discuss.elastic.co/u/faZhift)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 5:51am UTC](https://discuss.elastic.co/t/updating-an-index-with-scripted-metrics-results/168711 "2019-02-17T05:51:41Z")

</div>

Hello, I'm performing a Scripted Metric aggregate around a hash value of Documents in order to generate a "Global Owner" result set. Basically, 'every person who owns this Document'. Upon getting the result set, I then…

---

## [Prefix on cross cluster search](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825)

<div class="topic-metadata">

**Author:** [@Amita](https://discuss.elastic.co/u/Amita)\
**Replies:** 2\
**Last updated:** [February 16, 2019, 9:09pm UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825 "2019-02-16T21:09:46Z")

</div>

Hi, I have a system that containe 5 clusters in 6.2.4. 4 clusters which containe data, and one cluster which have three coordinating nodes. I use the option of cross cluster search in order to search from the coordina…

---

## [Vega aggregation - clueless](https://discuss.elastic.co/t/vega-aggregation-clueless/168699)

<div class="topic-metadata">

**Author:** [@ipv6only](https://discuss.elastic.co/u/ipv6only)\
**Replies:** 0\
**Last updated:** [February 16, 2019, 4:57pm UTC](https://discuss.elastic.co/t/vega-aggregation-clueless/168699 "2019-02-16T16:57:56Z")

</div>

Hi, I have that default vega sankey visualization diagram which has one term shown on the left and one term shown on the right side. I played with that now half of the day to make another aggregation but failed ultimati…

---

## [Shard balancing questions](https://discuss.elastic.co/t/shard-balancing-questions/168604)

<div class="topic-metadata">

**Author:** [@Raimon\_Bosch](https://discuss.elastic.co/u/Raimon_Bosch)\
**Replies:** 7\
**Last updated:** [February 16, 2019, 12:22pm UTC](https://discuss.elastic.co/t/shard-balancing-questions/168604 "2019-02-16T12:22:27Z")

</div>

Hi, I am wondering what is the advantage of having primary shards spread amongst several nodes. Since you can use multithreading, it is not more effective to handle all the details of the same search query from the same…

---

## [Machine learning jobs on separate cluster - possible?](https://discuss.elastic.co/t/machine-learning-jobs-on-separate-cluster-possible/168679)

<div class="topic-metadata">

**Author:** [@tomr](https://discuss.elastic.co/u/tomr)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 11:13am UTC](https://discuss.elastic.co/t/machine-learning-jobs-on-separate-cluster-possible/168679 "2019-02-16T11:13:13Z")

</div>

Is it a strict requirement that all ML nodes must be members of the same cluster as the data nodes? I'm trying to figure out whether I can have eg 2 nodes with platinum x-pack licenses to run ML jobs from a basic licens…

---

## [Reindex API - Extremely Slow](https://discuss.elastic.co/t/reindex-api-extremely-slow/168670)

<div class="topic-metadata">

**Author:** [@myspacebarisbroken](https://discuss.elastic.co/u/myspacebarisbroken)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 8:19am UTC](https://discuss.elastic.co/t/reindex-api-extremely-slow/168670 "2019-02-16T08:19:44Z")

</div>

Hi! My ES Server has 1.4TB of data (6B documents). Reindex API (increasing shard count) is taking forever, in 12 hours it's only done 40GB. Is there anything i can do to speed things up? Things i've done: Set refresh …

---

## [How to bring down ES cluster with out loosing any primary shards](https://discuss.elastic.co/t/how-to-bring-down-es-cluster-with-out-loosing-any-primary-shards/168665)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 6:53am UTC](https://discuss.elastic.co/t/how-to-bring-down-es-cluster-with-out-loosing-any-primary-shards/168665 "2019-02-16T06:53:18Z")

</div>

Hi All, I need to bring down entire ES cluster to enable TLS, could any one suggest what is the best way to bring it down with out loosing any primary shards Thanks

---

## [Maximum number of requests part of Bulk API and Mget API](https://discuss.elastic.co/t/maximum-number-of-requests-part-of-bulk-api-and-mget-api/168650)

<div class="topic-metadata">

**Author:** [@RahulD](https://discuss.elastic.co/u/RahulD)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 6:26am UTC](https://discuss.elastic.co/t/maximum-number-of-requests-part-of-bulk-api-and-mget-api/168650 "2019-02-16T06:26:33Z")

</div>

Is there an upper limit on how many individual requests that can be bundled up together as part of the bulk and mget apis?

---

## [How to enable SSL/TLS on ES 5.6 version](https://discuss.elastic.co/t/how-to-enable-ssl-tls-on-es-5-6-version/168664)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 3\
**Last updated:** [February 16, 2019, 6:05am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-tls-on-es-5-6-version/168664 "2019-02-16T06:05:36Z")

</div>

Hi Team, Could any one suggest how to enable SSL/TLS on ES 5.6 version and gone through the documentation but confusion. If any one done already please provide steps to perform this. Thanks

---

## [Will the X-Pack be free in Es7.x?](https://discuss.elastic.co/t/will-the-x-pack-be-free-in-es7-x/168668)

<div class="topic-metadata">

**Author:** [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Replies:** 2\
**Last updated:** [February 16, 2019, 6:00am UTC](https://discuss.elastic.co/t/will-the-x-pack-be-free-in-es7-x/168668 "2019-02-16T06:00:19Z")

</div>

I see the source of elasticsearch contains the source of x-pack，Does Elastic Team are going to free the X-Pack commercial use in es7.0？

---

## [X-Pack tranport client exception for es6.6](https://discuss.elastic.co/t/x-pack-tranport-client-exception-for-es6-6/168358)

<div class="topic-metadata">

**Author:** [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Replies:** 2\
**Last updated:** [February 16, 2019, 2:54am UTC](https://discuss.elastic.co/t/x-pack-tranport-client-exception-for-es6-6/168358 "2019-02-16T02:54:26Z")

</div>

Hello PreBuiltXPackTransportClient configuration are as follow, if (client == null) { builder.put("client.transport.sniff", true) .put("cluster.name","DS\_Project\_v2") .put("xpack.security.user","elastic:321++nsw") …

---

## [Ingest Nodes Uses for ELK stack](https://discuss.elastic.co/t/ingest-nodes-uses-for-elk-stack/168563)

<div class="topic-metadata">

**Author:** [@eightnoteight](https://discuss.elastic.co/u/eightnoteight)\
**Replies:** 1\
**Last updated:** [February 16, 2019, 12:15am UTC](https://discuss.elastic.co/t/ingest-nodes-uses-for-elk-stack/168563 "2019-02-16T00:15:41Z")

</div>

Hi, we are exploring various optimization that we can do for our ELK stack to meet our next quarter scaling requirements, as of now we are able to do an ingestion rate of about 25k QPS on a vanilla elasticsearch stack (…

---

## [Renaming field during insert based on type](https://discuss.elastic.co/t/renaming-field-during-insert-based-on-type/168654)

<div class="topic-metadata">

**Author:** [@Erik\_Tribou](https://discuss.elastic.co/u/Erik_Tribou)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 11:24pm UTC](https://discuss.elastic.co/t/renaming-field-during-insert-based-on-type/168654 "2019-02-15T23:24:26Z")

</div>

Could I have some guidance on the correct way to append a suffix indicating type to a field name during the insertion process? So for example if inserting { "a": "2015-09-21"} we would create a document like {"a\_date" :…

---

## [Want to contribute to elasticsearch's Github](https://discuss.elastic.co/t/want-to-contribute-to-elasticsearchs-github/168394)

<div class="topic-metadata">

**Author:** [@srensamblador](https://discuss.elastic.co/u/srensamblador)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 10:30pm UTC](https://discuss.elastic.co/t/want-to-contribute-to-elasticsearchs-github/168394 "2019-02-15T22:30:28Z")

</div>

Hello, I want to send a pull request to the elasticsearch's repo but my PR is being rejected because of my CLA contract, despise having signed it (I have a copy available). What am I missing? Thanks

---

## [Boost text matches on presence of another field](https://discuss.elastic.co/t/boost-text-matches-on-presence-of-another-field/168641)

<div class="topic-metadata">

**Author:** [@sashaepstein](https://discuss.elastic.co/u/sashaepstein)\
**Replies:** 0\
**Last updated:** [February 15, 2019, 7:56pm UTC](https://discuss.elastic.co/t/boost-text-matches-on-presence-of-another-field/168641 "2019-02-15T19:56:55Z")

</div>

Hello, I have a few text fields in my index and an int array field. I request matches using text queries (like Simple String or Common Terms Query) with their corresponding weights, but I'd like them to be boosted (given…

---

## [Query needed for ensuring position of word](https://discuss.elastic.co/t/query-needed-for-ensuring-position-of-word/168229)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 9:59pm UTC](https://discuss.elastic.co/t/query-needed-for-ensuring-position-of-word/168229 "2019-02-15T21:59:53Z")

</div>

Is there a way to form the query which will ensure the position of the word while matching ? Example: Indexed phrase is "Dark of the moon" (Standard analyzed, no stopword filter) I should have a query where in i shoul…

---

## [Java code for Elasticsearch DSL](https://discuss.elastic.co/t/java-code-for-elasticsearch-dsl/167616)

<div class="topic-metadata">

**Author:** [@examin](https://discuss.elastic.co/u/examin)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 9:27pm UTC](https://discuss.elastic.co/t/java-code-for-elasticsearch-dsl/167616 "2019-02-15T21:27:59Z")

</div>

I have a elastic DSL query , Could you please guide me a bit how can i query elastic same from java code. I have read elasticsearch java api docs , and able to create client and get response for simple queries , but her…

---

## [Create geoip field in elasticsearch template](https://discuss.elastic.co/t/create-geoip-field-in-elasticsearch-template/167871)

<div class="topic-metadata">

**Author:** [@pkaramol](https://discuss.elastic.co/u/pkaramol)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 9:26pm UTC](https://discuss.elastic.co/t/create-geoip-field-in-elasticsearch-template/167871 "2019-02-15T21:26:48Z")

</div>

I am using the geoip plugin of logstash to get geographical information about hosts. I am using geoip { source =\> "dst" } which seems to work, but creates the following two fields in my…

---

## [Query to get all records with top score](https://discuss.elastic.co/t/query-to-get-all-records-with-top-score/167447)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 9:23pm UTC](https://discuss.elastic.co/t/query-to-get-all-records-with-top-score/167447 "2019-02-15T21:23:12Z")

</div>

I have a match query which returns 10 documents. 6 having score "10.0" and 4 having having score "8.0". Query: I want to have an ability in same match query that should return all documents with top score only i.e. "1…

---

## [Writing updateMapping method() - odd error returned by ES](https://discuss.elastic.co/t/writing-updatemapping-method-odd-error-returned-by-es/167924)

<div class="topic-metadata">

**Author:** [@Kendra\_Kuivenhoven](https://discuss.elastic.co/u/Kendra_Kuivenhoven)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 9:21pm UTC](https://discuss.elastic.co/t/writing-updatemapping-method-odd-error-returned-by-es/167924 "2019-02-15T21:21:57Z")

</div>

Hi all, I'm trying to write a method where I can update the mapping of an ElasticSearch index directly from visual studio. I have the mappings stored in json files in my project on visual studio. I import whatever parti…

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

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