# Elasticsearch

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

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

**Page:** 1534

---

## [Fixed: Phrase Query breaks with “Compound Word Token Filters”](https://discuss.elastic.co/t/fixed-phrase-query-breaks-with-compound-word-token-filters/150364)

<div class="topic-metadata">

**Author:** [@mos](https://discuss.elastic.co/u/mos)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 3:51pm UTC](https://discuss.elastic.co/t/fixed-phrase-query-breaks-with-compound-word-token-filters/150364 "2018-09-28T15:51:16Z")

</div>

Just for people using a decompound-filter during indexing. We fixed the problem with the "Phrase Query". Problem description here: Phrase Query breaks with "Compound Word Token Filters" . Solution here: . Credit…

---

## [How Rally will behave with Millions of operations in track.json?](https://discuss.elastic.co/t/how-rally-will-behave-with-millions-of-operations-in-track-json/149727)

<div class="topic-metadata">

**Author:** [@akhil-rane](https://discuss.elastic.co/u/akhil-rane)\
**Replies:** 3\
**Last updated:** [September 28, 2018, 2:27pm UTC](https://discuss.elastic.co/t/how-rally-will-behave-with-millions-of-operations-in-track-json/149727 "2018-09-28T14:27:13Z")

</div>

Hello all, I have a use case wherein I am generating millions of queries and putting them into track.json as search operations. This will create a huge track.json file. Each elastic query itself is very huge containing …

---

## [Update mappings on fly](https://discuss.elastic.co/t/update-mappings-on-fly/150320)

<div class="topic-metadata">

**Author:** [@thitami](https://discuss.elastic.co/u/thitami)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 2:19pm UTC](https://discuss.elastic.co/t/update-mappings-on-fly/150320 "2018-09-28T14:19:47Z")

</div>

We have experienced recently an issue when we released to production because our ES mappings needed to update. What's the normal process to update the mappings on fly (with zero downtime) on production? I'd like to see…

---

## [Migrate ElasticSearch 2.x groovy scripts straight to 6.x](https://discuss.elastic.co/t/migrate-elasticsearch-2-x-groovy-scripts-straight-to-6-x/149400)

<div class="topic-metadata">

**Author:** [@gskema](https://discuss.elastic.co/u/gskema)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 1:55pm UTC](https://discuss.elastic.co/t/migrate-elasticsearch-2-x-groovy-scripts-straight-to-6-x/149400 "2018-09-28T13:55:30Z")

</div>

We want to migrate straight from 2.x to 6.x. We cleaned up most of the deprecated queries based on (2.x -\> 5.x) migration plugin. We don't use search features that removed in 5.x -\> 6.x. The only thing remaining is our g…

---

## [Recreating Shard failures](https://discuss.elastic.co/t/recreating-shard-failures/150351)

<div class="topic-metadata">

**Author:** [@riscado](https://discuss.elastic.co/u/riscado)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 1:41pm UTC](https://discuss.elastic.co/t/recreating-shard-failures/150351 "2018-09-28T13:41:03Z")

</div>

Hi, when using the elasticsearch Java client, is there any easy way to recreate shard failures. Where either the primary or both primary and replicas fail to respond. I'm trying to validate a test where I need to chec…

---

## [Is There an easy way to validate/compile painless scripts](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091)

<div class="topic-metadata">

**Author:** [@Andres\_Benavides](https://discuss.elastic.co/u/Andres_Benavides)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 1:26pm UTC](https://discuss.elastic.co/t/is-there-an-easy-way-to-validate-compile-painless-scripts/150091 "2018-09-28T13:26:57Z")

</div>

I have a groovy script that I want to migrate to painless and after migrate was completed I want to validate/compile this script so is there an easy way to do this

---

## [org.codehaus.groovy.GroovyBugError: BUG! exception in phase 'semantic analysis' in elasticsearch 5.6.10 cluster log](https://discuss.elastic.co/t/org-codehaus-groovy-groovybugerror-bug-exception-in-phase-semantic-analysis-in-elasticsearch-5-6-10-cluster-log/149355)

<div class="topic-metadata">

**Author:** [@Andres\_Benavides](https://discuss.elastic.co/u/Andres_Benavides)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 1:24pm UTC](https://discuss.elastic.co/t/org-codehaus-groovy-groovybugerror-bug-exception-in-phase-semantic-analysis-in-elasticsearch-5-6-10-cluster-log/149355 "2018-09-28T13:24:30Z")

</div>

I am executing from my java application the following code using elasticsearch java api 5.6.10, I am execute an update using and use the groovy script inline bulkRequest.add( transportClient …

---

## [Reprocess documents](https://discuss.elastic.co/t/reprocess-documents/150256)

<div class="topic-metadata">

**Author:** [@Zachary\_Buckholz](https://discuss.elastic.co/u/Zachary_Buckholz)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 1:04pm UTC](https://discuss.elastic.co/t/reprocess-documents/150256 "2018-09-28T13:04:07Z")

</div>

I have documents that currently exist with a single \_message field containing raw json. I'd like to reprocess all these documents and run them through a json parser to update the document and add fields / values. What's…

---

## [Coordinating Nodes](https://discuss.elastic.co/t/coordinating-nodes/150239)

<div class="topic-metadata">

**Author:** [@bigdamhero](https://discuss.elastic.co/u/bigdamhero)\
**Replies:** 0\
**Last updated:** [September 27, 2018, 6:16pm UTC](https://discuss.elastic.co/t/coordinating-nodes/150239 "2018-09-27T18:16:33Z")

</div>

Learning more about coordinating nodes so a couple questions come up. If your cluster is secured with X-pack do I need to purchase another node licence for a coordinating node? If you have the coordinating node for Kib…

---

## [Anonymous user to access /\_cluster/health?](https://discuss.elastic.co/t/anonymous-user-to-access-cluster-health/150269)

<div class="topic-metadata">

**Author:** [@malte-behrendt](https://discuss.elastic.co/u/malte-behrendt)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 12:42pm UTC](https://discuss.elastic.co/t/anonymous-user-to-access-cluster-health/150269 "2018-09-28T12:42:59Z")

</div>

Hi everyone, I want to enable anonymous users to access /\_cluster/health. This would allow for automatic health checks without having to distribute a sensitive username/password. But giving anonymous users the privileg…

---

## [Slow aggregation no matter the size of the result set](https://discuss.elastic.co/t/slow-aggregation-no-matter-the-size-of-the-result-set/150331)

<div class="topic-metadata">

**Author:** [@Iliyan\_Tanev](https://discuss.elastic.co/u/Iliyan_Tanev)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 12:21pm UTC](https://discuss.elastic.co/t/slow-aggregation-no-matter-the-size-of-the-result-set/150331 "2018-09-28T12:21:12Z")

</div>

Hi, We're experiencing a strange behavior with an aggregation. The below query is taking 1 - 1.5 seconds to execute. GET index/type/\_search { "size": 0, "query": { "bool": { "must": \[ { "ter…

---

## [ElasticSearch does not start OS Mojave](https://discuss.elastic.co/t/elasticsearch-does-not-start-os-mojave/150335)

<div class="topic-metadata">

**Author:** [@sebasdigital](https://discuss.elastic.co/u/sebasdigital)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start-os-mojave/150335 "2018-09-28T12:16:05Z")

</div>

Describe the feature : ElasticSearch does not start Elasticsearch version ( bin/elasticsearch --version ): 6.4.1 Plugins installed : \[none\] JVM version ( java -version ): 18.9 OS version ( uname -a if on a Unix-l…

---

## [Overriding mapping from text to object](https://discuss.elastic.co/t/overriding-mapping-from-text-to-object/150329)

<div class="topic-metadata">

**Author:** [@aliok](https://discuss.elastic.co/u/aliok)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 11:22am UTC](https://discuss.elastic.co/t/overriding-mapping-from-text-to-object/150329 "2018-09-28T11:22:49Z")

</div>

I am trying to override a mapping for a field. There is a default index template (which I can't change) and I am overriding it with a custom one. The default index has a mapping for "message" field as text, but I need …

---

## [Unable to enable logging in Elastic search](https://discuss.elastic.co/t/unable-to-enable-logging-in-elastic-search/150328)

<div class="topic-metadata">

**Author:** [@iaskdoubt](https://discuss.elastic.co/u/iaskdoubt)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 11:18am UTC](https://discuss.elastic.co/t/unable-to-enable-logging-in-elastic-search/150328 "2018-09-28T11:18:32Z")

</div>

I tried to enable logging in elastic search 2.2 but was unable to make it work. Also tried adding path.logs in config

---

## [Convert cloudflare unix nanoseconds timestamp to elastic search date time field](https://discuss.elastic.co/t/convert-cloudflare-unix-nanoseconds-timestamp-to-elastic-search-date-time-field/149409)

<div class="topic-metadata">

**Author:** [@Palanikumark](https://discuss.elastic.co/u/Palanikumark)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 11:05am UTC](https://discuss.elastic.co/t/convert-cloudflare-unix-nanoseconds-timestamp-to-elastic-search-date-time-field/149409 "2018-09-28T11:05:03Z")

</div>

Hi Team, Im facing trouble in converting unix nanoseconds to elastic search date time field. Please let me know how to create indices and import this data. { "mappings": { "doc": { "properties": { "CacheCache…

---

## [What does Warm-node do after Curator running?](https://discuss.elastic.co/t/what-does-warm-node-do-after-curator-running/150275)

<div class="topic-metadata">

**Author:** [@af615dbd55cac2cacf32](https://discuss.elastic.co/u/af615dbd55cac2cacf32)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 11:01am UTC](https://discuss.elastic.co/t/what-does-warm-node-do-after-curator-running/150275 "2018-09-28T11:01:52Z")

</div>

Hello, I posted a similar post yesterday but nobody replied yet, so I am posting this topic as a simple question. What does Warm-node do after Curator running? Are they performing RE-Indexing? Warm-nodes keep ho…

---

## [Elastic Search JVM hung](https://discuss.elastic.co/t/elastic-search-jvm-hung/150323)

<div class="topic-metadata">

**Author:** [@iaskdoubt](https://discuss.elastic.co/u/iaskdoubt)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 11:01am UTC](https://discuss.elastic.co/t/elastic-search-jvm-hung/150323 "2018-09-28T11:01:48Z")

</div>

Hi, I am using elastic search to index fairly very high amount of logs nearly 20000 per second. I used Elastic search 2.2 and used the java client API for the purpose of indexing into the elastic search. We also regular…

---

## [How to create antother node via elasticsearch.yml](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319)

<div class="topic-metadata">

**Author:** [@johnrabi](https://discuss.elastic.co/u/johnrabi)\
**Replies:** 3\
**Last updated:** [September 28, 2018, 10:54am UTC](https://discuss.elastic.co/t/how-to-create-antother-node-via-elasticsearch-yml/150319 "2018-09-28T10:54:58Z")

</div>

Hi Team, how to configure another node in elasticsearch.yml { "cluster\_name": "elasticsearch", "status": "green", "timed\_out": false, "number\_of\_nodes": 1, "number\_of\_data\_nodes": 1, "active\_primary\_shards": 6, …

---

## [Why dont es use zero copy when sending files in recovery phase1](https://discuss.elastic.co/t/why-dont-es-use-zero-copy-when-sending-files-in-recovery-phase1/150325)

<div class="topic-metadata">

**Author:** [@vsop\_479](https://discuss.elastic.co/u/vsop_479)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 10:51am UTC](https://discuss.elastic.co/t/why-dont-es-use-zero-copy-when-sending-files-in-recovery-phase1/150325 "2018-09-28T10:51:20Z")

</div>

why dont es use zero copy when sending files in recovery phase1.

---

## [Elasticsearch warning](https://discuss.elastic.co/t/elasticsearch-warning/149302)

<div class="topic-metadata">

**Author:** [@saisimo02](https://discuss.elastic.co/u/saisimo02)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 9:26am UTC](https://discuss.elastic.co/t/elasticsearch-warning/149302 "2018-09-28T09:26:27Z")

</div>

Hello, I am using two instance of elasticsearch in the same machine; I have 94GO Ram, and 8 vCPUs. I used 22 GO memory for each instance and I had this error message: \[2018-09-20T14:11:39,342\]\[WARN \]\[o.e.i.f.SyncedFlu…

---

## [Highlighting is not working as expected with synonym wordnet filter in elasticsearch](https://discuss.elastic.co/t/highlighting-is-not-working-as-expected-with-synonym-wordnet-filter-in-elasticsearch/149455)

<div class="topic-metadata">

**Author:** [@ashwin\_rao](https://discuss.elastic.co/u/ashwin_rao)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 9:13am UTC](https://discuss.elastic.co/t/highlighting-is-not-working-as-expected-with-synonym-wordnet-filter-in-elasticsearch/149455 "2018-09-28T09:13:19Z")

</div>

Hi Guys, I am facing some issue in highlighting synonyms which are mapped from Wordnet. It is highlighting irrelevant words while searching. Here's my code below. { "settings" : { "index" : { "analysis" : { "analy…

---

## [Best connection settings for setup with 3 nodes (2 data, 1 master only)](https://discuss.elastic.co/t/best-connection-settings-for-setup-with-3-nodes-2-data-1-master-only/150312)

<div class="topic-metadata">

**Author:** [@anon99430464](https://discuss.elastic.co/u/anon99430464)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 8:58am UTC](https://discuss.elastic.co/t/best-connection-settings-for-setup-with-3-nodes-2-data-1-master-only/150312 "2018-09-28T08:58:24Z")

</div>

Hi there I while ago I asked a question here for a good setup for load balancing with 2 master nodes. I got an excellent answer and we have been using this setup for a while now. 2 master, data nodes 1 master only nod…

---

## [NumberFormatException For input string: \\"now-1d/d\\""](https://discuss.elastic.co/t/numberformatexception-for-input-string-now-1d-d/150148)

<div class="topic-metadata">

**Author:** [@dirri](https://discuss.elastic.co/u/dirri)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 8:54am UTC](https://discuss.elastic.co/t/numberformatexception-for-input-string-now-1d-d/150148 "2018-09-28T08:54:40Z")

</div>

I´m executing a query using range agg on a date field (includes millis since epoch) but this leads to a NumberFormatException: The mapping is: "mappings": { "\_doc": { "properties": { "~timestamp": { "type": "date" …

---

## [How to search aggregations in ES?](https://discuss.elastic.co/t/how-to-search-aggregations-in-es/149930)

<div class="topic-metadata">

**Author:** [@Redkin](https://discuss.elastic.co/u/Redkin)\
**Replies:** 7\
**Last updated:** [September 28, 2018, 8:23am UTC](https://discuss.elastic.co/t/how-to-search-aggregations-in-es/149930 "2018-09-28T08:23:52Z")

</div>

I have a books index which contains an array of tags (with both text/keyword types), i'd like to offer an autocomplete for tags so users type "ro" and it returns "romance" or "rock and roll". Here's my mapping: /books …

---

## [Filter results by aggregation value](https://discuss.elastic.co/t/filter-results-by-aggregation-value/150245)

<div class="topic-metadata">

**Author:** [@Aylan\_Devmedia](https://discuss.elastic.co/u/Aylan_Devmedia)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 8:17am UTC](https://discuss.elastic.co/t/filter-results-by-aggregation-value/150245 "2018-09-28T08:17:14Z")

</div>

Is there a way to use a value provided by an aggregation to make another layer of filtering? I'm making a standard query that search the incidence of terms in two fields, and wish to show only the docs whose \_score is a…

---

## [Using painless in watcher](https://discuss.elastic.co/t/using-painless-in-watcher/149063)

<div class="topic-metadata">

**Author:** [@nayun\_oh](https://discuss.elastic.co/u/nayun_oh)\
**Replies:** 19\
**Last updated:** [September 28, 2018, 7:58am UTC](https://discuss.elastic.co/t/using-painless-in-watcher/149063 "2018-09-28T07:58:35Z")

</div>

I want to use painless in watcher to add or change data of some fields. But when I added this code in this watcher, "transform": { "script": { "source": "ctx.\_source.period = ctx.\_source.duration/1000", "lang": "pai…

---

## [How to take the snaphsot in Es](https://discuss.elastic.co/t/how-to-take-the-snaphsot-in-es/150293)

<div class="topic-metadata">

**Author:** [@johnrabi](https://discuss.elastic.co/u/johnrabi)\
**Replies:** 12\
**Last updated:** [September 28, 2018, 7:51am UTC](https://discuss.elastic.co/t/how-to-take-the-snaphsot-in-es/150293 "2018-09-28T07:51:19Z")

</div>

Hi Team, I need to take the snapshot of one index , i have confgiured in elasticsearch.yml like this path.repo: \["/home/tf-java4/Desktop/esbackup"\] while creating repository facing this exception , can anyone help me …

---

## [Elasticsearch -Understanding Hot Threads](https://discuss.elastic.co/t/elasticsearch-understanding-hot-threads/150132)

<div class="topic-metadata">

**Author:** [@somnath.guthula](https://discuss.elastic.co/u/somnath.guthula)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 7:29am UTC](https://discuss.elastic.co/t/elasticsearch-understanding-hot-threads/150132 "2018-09-28T07:29:36Z")

</div>

Hi, We are running a 9 Node Cluster on which I am seeing very high CPU Utilisation. (nodes.process.cpu.percent). This metric sometimes reaches 200%. I am not sure If I am able to understand the underlying cause to fix it…

---

## [Multiple tokenizers inside one Custom Analyser in Elasticsearch](https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297)

<div class="topic-metadata">

**Author:** [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 6:37am UTC](https://discuss.elastic.co/t/multiple-tokenizers-inside-one-custom-analyser-in-elasticsearch/150297 "2018-09-28T06:37:15Z")

</div>

I am using Custom NGRAM Analyzer which has a ngram tokenizer. I have also used lowercase filter. The query is working fine for searches without characters. But when I am searching for certain symbols, it fails. Since I h…

---

## [Bad file descriptor when I do the snapshot](https://discuss.elastic.co/t/bad-file-descriptor-when-i-do-the-snapshot/150278)

<div class="topic-metadata">

**Author:** [@xF0rk](https://discuss.elastic.co/u/xF0rk)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 2:13am UTC](https://discuss.elastic.co/t/bad-file-descriptor-when-i-do-the-snapshot/150278 "2018-09-28T02:13:11Z")

</div>

Elasticsearch version is 6.3.0，when I do the snapshot，there was always an error. "reason": "IndexShardSnapshotFailedException\[Failed to perform snapshot (index files)\]; nested: IOException\[错误的文件描述符\]; " If I keep delete…

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

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