# Elasticsearch

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

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

**Page:** 1170

---

## [Passing external variables to a painless script](https://discuss.elastic.co/t/passing-external-variables-to-a-painless-script/198014)

<div class="topic-metadata">

**Author:** [@manish\_kakoti](https://discuss.elastic.co/u/manish_kakoti)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 9:09am UTC](https://discuss.elastic.co/t/passing-external-variables-to-a-painless-script/198014 "2019-09-04T09:09:00Z")

</div>

In painless script, i tried passing a variable which stringifies a json object, like this: let sourcedData = JSON.stringify(body) body: { lang: 'painless', script: 'if (ctx.\_source.files == null) { ctx.\_so…

---

## [Replace \<script\> tag on indexation](https://discuss.elastic.co/t/replace-script-tag-on-indexation/197866)

<div class="topic-metadata">

**Author:** [@Maxime\_Kuil](https://discuss.elastic.co/u/Maxime_Kuil)\
**Replies:** 4\
**Last updated:** [September 4, 2019, 8:49am UTC](https://discuss.elastic.co/t/replace-script-tag-on-indexation/197866 "2019-09-04T08:49:44Z")

</div>

Hello, i want to replace \<script\>....\</script\> on index time. I tried : POST \_analyze { "tokenizer" : "icu\_tokenizer", "filter": \[ { "type": "pattern\_replace", …

---

## [Session Expired immediately after login](https://discuss.elastic.co/t/session-expired-immediately-after-login/198010)

<div class="topic-metadata">

**Author:** [@esther4](https://discuss.elastic.co/u/esther4)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 8:43am UTC](https://discuss.elastic.co/t/session-expired-immediately-after-login/198010 "2019-09-04T08:43:13Z")

</div>

Hi, I am using Elasticsearch 7.1 and Kibana 7.1 along with XPack. I have also configured a Apache HTTPD to do reverse proxy to Kibana UI. whenever I login (using the BASIC), I will immediately got kick out with a SESSION…

---

## [What's scoring theory for elasticsearch6.8.0](https://discuss.elastic.co/t/whats-scoring-theory-for-elasticsearch6-8-0/198008)

<div class="topic-metadata">

**Author:** [@sunweiconfidence](https://discuss.elastic.co/u/sunweiconfidence)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 8:38am UTC](https://discuss.elastic.co/t/whats-scoring-theory-for-elasticsearch6-8-0/198008 "2019-09-04T08:38:20Z")

</div>

hi, i want to find a scoring theory for elasticsearch latest scoring theory, previously in old elasticsearch i find a article to introduce it, but new version i don't find it, please tell me the link if have, thanks. ol…

---

## [Elasticseach maximum tested write speed](https://discuss.elastic.co/t/elasticseach-maximum-tested-write-speed/197828)

<div class="topic-metadata">

**Author:** [@Prashant\_Kumar2](https://discuss.elastic.co/u/Prashant_Kumar2)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 8:30am UTC](https://discuss.elastic.co/t/elasticseach-maximum-tested-write-speed/197828 "2019-09-04T08:30:31Z")

</div>

Hi Team, I would like to know the maximum tested write per second speed. I have a use case of 15 million documents events generated per second where each document size is approx 3.5kb.

---

## [java.io.StreamCorruptedException](https://discuss.elastic.co/t/java-io-streamcorruptedexception/197485)

<div class="topic-metadata">

**Author:** [@Prafull](https://discuss.elastic.co/u/Prafull)\
**Replies:** 7\
**Last updated:** [September 4, 2019, 8:13am UTC](https://discuss.elastic.co/t/java-io-streamcorruptedexception/197485 "2019-09-04T08:13:30Z")

</div>

Hi , When I am trying to connect DataNode with Master Node Getting error below as written below: {"type": "server", "timestamp": "2019-08-30T12:08:21,959+0000", "level": "WARN", "component": "o.e.c.c.ClusterFormationFa…

---

## [How to update multiple nested objects?](https://discuss.elastic.co/t/how-to-update-multiple-nested-objects/197837)

<div class="topic-metadata">

**Author:** [@Bidzina\_Goginashvili](https://discuss.elastic.co/u/Bidzina_Goginashvili)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 8:02am UTC](https://discuss.elastic.co/t/how-to-update-multiple-nested-objects/197837 "2019-09-04T08:02:12Z")

</div>

My Mapping looks like this..What i want to do is that when i delete category with Id 9 this element should be deleted from every products... { "\_index" : "onoff-products-main2", "\_type" : "\_doc", "\_id" : …

---

## [Using Scripted Conditionals](https://discuss.elastic.co/t/using-scripted-conditionals/197861)

<div class="topic-metadata">

**Author:** [@spupapi](https://discuss.elastic.co/u/spupapi)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 7:49am UTC](https://discuss.elastic.co/t/using-scripted-conditionals/197861 "2019-09-04T07:49:51Z")

</div>

Hello, so I've got an index called Hamlet. And in Hamlet there is a field "Speaker" with value of the name of the speaker. So it looks like this: { "speaker": "Hamlet" } Now I want to make script which will: Create a…

---

## [New OpenSource Project on Elastic](https://discuss.elastic.co/t/new-opensource-project-on-elastic/197991)

<div class="topic-metadata">

**Author:** [@AndyS](https://discuss.elastic.co/u/AndyS)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 7:48am UTC](https://discuss.elastic.co/t/new-opensource-project-on-elastic/197991 "2019-09-04T07:48:32Z")

</div>

I wrote an OpenSource project that sits on top of Elastic, am I allowed to mention it here? Project is on GitHub right now, would love to see people use it, give feedback, etc Thanks Andy

---

## [Replace cluster with agent hostname which already indexed 150 GB of data](https://discuss.elastic.co/t/replace-cluster-with-agent-hostname-which-already-indexed-150-gb-of-data/197990)

<div class="topic-metadata">

**Author:** [@yestoprince](https://discuss.elastic.co/u/yestoprince)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 7:13am UTC](https://discuss.elastic.co/t/replace-cluster-with-agent-hostname-which-already-indexed-150-gb-of-data/197990 "2019-09-04T07:13:57Z")

</div>

Can any one help ? What could be the steps to achieve

---

## [Can't delete certain Indicies](https://discuss.elastic.co/t/cant-delete-certain-indicies/197986)

<div class="topic-metadata">

**Author:** [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 7:01am UTC](https://discuss.elastic.co/t/cant-delete-certain-indicies/197986 "2019-09-04T07:01:27Z")

</div>

Hello, so we had a crash on our elk cluster while i was on holiday. They rebooted it, and shit went crazy. The services could not bind to certain ports etc. etc. I Fixed all Issues now, but one is left which i just cann…

---

## ["index\_options"="docs" option and its relation with disk space](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 6:37am UTC](https://discuss.elastic.co/t/index-options-docs-option-and-its-relation-with-disk-space/197566 "2019-09-04T06:37:05Z")

</div>

Inside Tuning for Disk Space i have read something about index\_options parameter. For my use case i currently have the default set. I have tried setting this parameter to "docs", which is not supposed to generate term f…

---

## [Difference between enabled and index parameters](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 6:36am UTC](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564 "2019-09-04T06:36:30Z")

</div>

I wanted to know some differences between the working of enabled and index parameters. Ver: 7.1.1 Case A: "myfield": { "enabled": false, "properties": { "value": { "type": "keyword" }, "ke…

---

## [Need help logstash stop indexing to elasitc search](https://discuss.elastic.co/t/need-help-logstash-stop-indexing-to-elasitc-search/197964)

<div class="topic-metadata">

**Author:** [@callmejon](https://discuss.elastic.co/u/callmejon)\
**Replies:** 5\
**Last updated:** [September 4, 2019, 3:00am UTC](https://discuss.elastic.co/t/need-help-logstash-stop-indexing-to-elasitc-search/197964 "2019-09-04T03:00:34Z")

</div>

hi we have been using elastic search for call manger CDR record for few yrs now. been working great. its stoped working on 12aug2019 for unknow reason. i see log file stay in the FTP directory not clearning up. and no…

---

## [Must\_not usage](https://discuss.elastic.co/t/must-not-usage/197883)

<div class="topic-metadata">

**Author:** [@dbonnin](https://discuss.elastic.co/u/dbonnin)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 1:54am UTC](https://discuss.elastic.co/t/must-not-usage/197883 "2019-09-04T01:54:29Z")

</div>

I have this query: { "query": { "bool" : { "filter" : { "term" : { "status" : "404" } }, "must\_not":{ "term": {"url": "/server-status?auto="} } } } } I want to retrieve all documents with status = 404, but n…

---

## [Storage full possible to reset data](https://discuss.elastic.co/t/storage-full-possible-to-reset-data/197965)

<div class="topic-metadata">

**Author:** [@Abel\_Chun\_Qhai](https://discuss.elastic.co/u/Abel_Chun_Qhai)\
**Replies:** 0\
**Last updated:** [September 4, 2019, 1:35am UTC](https://discuss.elastic.co/t/storage-full-possible-to-reset-data/197965 "2019-09-04T01:35:14Z")

</div>

Hi, I'm having issue on ElasticSearch storage. My total index store size was 140mb, I had used almost 48GB, left 1GB. Used 47GB/48GB on my index. I had 28k rows. How can I free up the size with 28k row updated informat…

---

## [Question on Compile Elasticsearch into a JAR like how it was done in the Maven repository](https://discuss.elastic.co/t/question-on-compile-elasticsearch-into-a-jar-like-how-it-was-done-in-the-maven-repository/196439)

<div class="topic-metadata">

**Author:** [@Extended\_Range](https://discuss.elastic.co/u/Extended_Range)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 1:04am UTC](https://discuss.elastic.co/t/question-on-compile-elasticsearch-into-a-jar-like-how-it-was-done-in-the-maven-repository/196439 "2019-09-04T01:04:23Z")

</div>

Greetings there I have a Maven project where I have utilized a lot of functionalities from Elasticsearch. More specifically, it was imported in this way: \<dependency\> \<groupId\>org.elasticsearch\</gro…

---

## [\[Resolved\]\[ES7.0.1\]\[WARN \]\[o.e.d.FileBasedSeedHostsProvider\] \[node-1\] expected, but did not find, a dynamic hosts list at](https://discuss.elastic.co/t/resolved-es7-0-1-warn-o-e-d-filebasedseedhostsprovider-node-1-expected-but-did-not-find-a-dynamic-hosts-list-at/197747)

<div class="topic-metadata">

**Author:** [@cheriemilk](https://discuss.elastic.co/u/cheriemilk)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 12:42am UTC](https://discuss.elastic.co/t/resolved-es7-0-1-warn-o-e-d-filebasedseedhostsprovider-node-1-expected-but-did-not-find-a-dynamic-hosts-list-at/197747 "2019-09-04T00:42:05Z")

</div>

Hi team, When I starting elasticsearch7.0.1 today, I got below warning, what does it mean and how to correct it? I can't find file unicast\_hosts.txt in the directory the waning message gives me. \[2019-09-03T09:42:22,…

---

## [Analysis - When does it happens?](https://discuss.elastic.co/t/analysis-when-does-it-happens/197628)

<div class="topic-metadata">

**Author:** [@mateusforgiarini](https://discuss.elastic.co/u/mateusforgiarini)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 12:32am UTC](https://discuss.elastic.co/t/analysis-when-does-it-happens/197628 "2019-09-04T00:32:20Z")

</div>

Can someone explain to me when the analysis process takes place? I know that when we index a document it first goes to the translog and to an in-memory buffer (until here the document is not searchable, but we can retrie…

---

## [ElasticSearch on Azure](https://discuss.elastic.co/t/elasticsearch-on-azure/197013)

<div class="topic-metadata">

**Author:** [@Vikas\_Mestry](https://discuss.elastic.co/u/Vikas_Mestry)\
**Replies:** 2\
**Last updated:** [September 3, 2019, 11:55pm UTC](https://discuss.elastic.co/t/elasticsearch-on-azure/197013 "2019-09-03T23:55:07Z")

</div>

Hello, Not sure if this is the appropriate place to ask this, but are there any plans to have an SAAS offering of ElasticSearch on Azure Cloud, similar to GCP & AWS ? Asking this as I just bumped across this If this i…

---

## [\_forcemerge on ES 7.3 issue](https://discuss.elastic.co/t/forcemerge-on-es-7-3-issue/197571)

<div class="topic-metadata">

**Author:** [@jeroen1](https://discuss.elastic.co/u/jeroen1)\
**Replies:** 12\
**Last updated:** [September 3, 2019, 8:46pm UTC](https://discuss.elastic.co/t/forcemerge-on-es-7-3-issue/197571 "2019-09-03T20:46:57Z")

</div>

I've upgraded hardware. Clean install of ES 7.3. Importing the same static dataset I was using on my old ES 6 box. Importing on 7 is faster BUT... after completing the import I'm running a \_forcemerge on the ~1.1TB datas…

---

## [Elastic search for storing and querying](https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945)

<div class="topic-metadata">

**Author:** [@Yogeshsingh](https://discuss.elastic.co/u/Yogeshsingh)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 8:44pm UTC](https://discuss.elastic.co/t/elastic-search-for-storing-and-querying/197945 "2019-09-03T20:44:05Z")

</div>

Hi, I am new to elastic search. Just came across it today while exploring database's to store my data. I want to store mapping of test and sour ce files/ methods which are covered by the test. For eg.Test1 : { source …

---

## [Maximize read/write throughput](https://discuss.elastic.co/t/maximize-read-write-throughput/194932)

<div class="topic-metadata">

**Author:** [@surilshah](https://discuss.elastic.co/u/surilshah)\
**Replies:** 10\
**Last updated:** [September 3, 2019, 8:14pm UTC](https://discuss.elastic.co/t/maximize-read-write-throughput/194932 "2019-09-03T20:14:04Z")

</div>

We are performing load test on elasticsearch cluster and trying to maximize read/write throughput. Here are the details of our elasticsearch cluster: Master nodes : 3 Data nodes : 6 Indexes : 1 Primary Shards : 2 No o…

---

## [Aggragate with a script yields different results](https://discuss.elastic.co/t/aggragate-with-a-script-yields-different-results/196890)

<div class="topic-metadata">

**Author:** [@yavidor](https://discuss.elastic.co/u/yavidor)\
**Replies:** 18\
**Last updated:** [September 3, 2019, 7:29pm UTC](https://discuss.elastic.co/t/aggragate-with-a-script-yields-different-results/196890 "2019-09-03T19:29:35Z")

</div>

Hi, im trying to get the average of the time difference between 2 time fields with the following query: GET x/\_search { "\_source": \["ts", "@timestamp"\], "query": { "match\_all": {} }, "sort": \[ { …

---

## [Elastic master nodes storage](https://discuss.elastic.co/t/elastic-master-nodes-storage/197914)

<div class="topic-metadata">

**Author:** [@NewmazN24](https://discuss.elastic.co/u/NewmazN24)\
**Replies:** 2\
**Last updated:** [September 3, 2019, 6:35pm UTC](https://discuss.elastic.co/t/elastic-master-nodes-storage/197914 "2019-09-03T18:35:39Z")

</div>

Hello folks, Does master cluster share their Logs even though paths are pointing to local storage on each one ? I mean by that when I do a request from Kibana GUI to my logs. Thanks, Steven

---

## [Frozen index node license](https://discuss.elastic.co/t/frozen-index-node-license/197924)

<div class="topic-metadata">

**Author:** [@vini](https://discuss.elastic.co/u/vini)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 6:11pm UTC](https://discuss.elastic.co/t/frozen-index-node-license/197924 "2019-09-03T18:11:35Z")

</div>

Hi all, I have been looking for a clear answer on this but haven’t been able to find anything clear enough. Do nodes that only hold frozen indices count against my license?

---

## [Bag of words query within a certain proximity](https://discuss.elastic.co/t/bag-of-words-query-within-a-certain-proximity/197920)

<div class="topic-metadata">

**Author:** [@philv](https://discuss.elastic.co/u/philv)\
**Replies:** 0\
**Last updated:** [September 3, 2019, 5:34pm UTC](https://discuss.elastic.co/t/bag-of-words-query-within-a-certain-proximity/197920 "2019-09-03T17:34:56Z")

</div>

I was wondering whether there's a way other than a span near query where I can specify a bag of words to be searched against a document but where the words can be in any order and have a defined slop? I was thinking of…

---

## [APM set up](https://discuss.elastic.co/t/apm-set-up/197900)

<div class="topic-metadata">

**Author:** [@Jude\_Jerome](https://discuss.elastic.co/u/Jude_Jerome)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 4:40pm UTC](https://discuss.elastic.co/t/apm-set-up/197900 "2019-09-03T16:40:26Z")

</div>

Hello Team, I have created cluster and enabled APM , Could you please let me know how to use this APM to monitor my application

---

## [Scan through result in ES-DSL aggregation](https://discuss.elastic.co/t/scan-through-result-in-es-dsl-aggregation/197677)

<div class="topic-metadata">

**Author:** [@minhtriet](https://discuss.elastic.co/u/minhtriet)\
**Replies:** 3\
**Last updated:** [September 3, 2019, 2:18pm UTC](https://discuss.elastic.co/t/scan-through-result-in-es-dsl-aggregation/197677 "2019-09-03T14:18:28Z")

</div>

I wanted to see how many unique link that a user has posted for every user and save something likeuser\_id, number\_of\_post to a csv. Here is what I have come up so far s.aggs.bucket('user\_term', A('terms', field='user\_\_i…

---

## [Sort results by page views](https://discuss.elastic.co/t/sort-results-by-page-views/197859)

<div class="topic-metadata">

**Author:** [@dojutsu-user](https://discuss.elastic.co/u/dojutsu-user)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 2:03pm UTC](https://discuss.elastic.co/t/sort-results-by-page-views/197859 "2019-09-03T14:03:34Z")

</div>

I have an Elasticsearch cluster with lots of pages indexed. I am using Elasticsearch to provide best results to the users currently. Each page is viewed many times in a day. I want to store the page view count and take t…

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

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