# Elasticsearch

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

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

**Page:** 1392

---

## [Issues in migrating ES 1.4.4 to ES 6.4.2](https://discuss.elastic.co/t/issues-in-migrating-es-1-4-4-to-es-6-4-2/168852)

<div class="topic-metadata">

**Author:** [@Animesh\_Agarwal](https://discuss.elastic.co/u/Animesh_Agarwal)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 2:53pm UTC](https://discuss.elastic.co/t/issues-in-migrating-es-1-4-4-to-es-6-4-2/168852 "2019-02-18T14:53:17Z")

</div>

Hi Team, I am facing couple of issues when migrating data from 1.4 to 6.4.2. Made few changes to make the settings and mappings to make it compatible with 6.4.2 ( removal of mapping types and using text and keyword appr…

---

## [ElasticSearch Unit Testing - best practices and approach](https://discuss.elastic.co/t/elasticsearch-unit-testing-best-practices-and-approach/168851)

<div class="topic-metadata">

**Author:** [@Calvin-J-Scott](https://discuss.elastic.co/u/Calvin-J-Scott)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 2:46pm UTC](https://discuss.elastic.co/t/elasticsearch-unit-testing-best-practices-and-approach/168851 "2019-02-18T14:46:19Z")

</div>

Hi All, I am currently facing a issue when trying to unit test my elasticsearch search method. Here is my Service: @Service @Slf4j public class FullService { private final RestHighLevelClient client; private final Ob…

---

## [Ordering ES Document Fields like SQL](https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823)

<div class="topic-metadata">

**Author:** [@KashiPashoria\_Tonny](https://discuss.elastic.co/u/KashiPashoria_Tonny)\
**Replies:** 4\
**Last updated:** [February 18, 2019, 2:43pm UTC](https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823 "2019-02-18T14:43:55Z")

</div>

I'm using elasticsearch version 6.6. I'm upgraded from version 2.x to 6.6. I want to store my document fields in a specific order as it was in elasticsearch version 2.x that fields are saved in exact same order as they a…

---

## [Issue trying to make ponctuality test using watchers](https://discuss.elastic.co/t/issue-trying-to-make-ponctuality-test-using-watchers/168809)

<div class="topic-metadata">

**Author:** [@philippeE](https://discuss.elastic.co/u/philippeE)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 10:50am UTC](https://discuss.elastic.co/t/issue-trying-to-make-ponctuality-test-using-watchers/168809 "2019-02-18T10:50:12Z")

</div>

Hi all, I have an issue and I hope you can help me. Here is my code: PUT \_xpack/watcher/watch/test\_ponctuality { "trigger" : { "schedule" : { "interval" : "10s" } }, "…

---

## [Access elasticsearch server through application server](https://discuss.elastic.co/t/access-elasticsearch-server-through-application-server/168780)

<div class="topic-metadata">

**Author:** [@Amitittech](https://discuss.elastic.co/u/Amitittech)\
**Replies:** 5\
**Last updated:** [February 18, 2019, 2:11pm UTC](https://discuss.elastic.co/t/access-elasticsearch-server-through-application-server/168780 "2019-02-18T14:11:07Z")

</div>

Ho to access elasticsearch server through application server

---

## [\_script is not getting referred](https://discuss.elastic.co/t/script-is-not-getting-referred/168824)

<div class="topic-metadata">

**Author:** [@Binu\_Andrews](https://discuss.elastic.co/u/Binu_Andrews)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 12:23pm UTC](https://discuss.elastic.co/t/script-is-not-getting-referred/168824 "2019-02-18T12:23:37Z")

</div>

I am trying to access below script from an email action. The action is getting triggered, but the email subject is not getting fetched from the template. insted of that, what ever i mentioned as the id name is going as t…

---

## [Issues with UpdateByQueryAction](https://discuss.elastic.co/t/issues-with-updatebyqueryaction/168836)

<div class="topic-metadata">

**Author:** [@Nihad](https://discuss.elastic.co/u/Nihad)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 1:31pm UTC](https://discuss.elastic.co/t/issues-with-updatebyqueryaction/168836 "2019-02-18T13:31:19Z")

</div>

Hi Guys, I am probably not the first one with this issue or I am just doing something wrong and I am not seeing it. Basically, I am pushing array field into an existing document using UpdateByQueryAction API everything…

---

## [How to create multiple context field in elastic search verion 6.2.3 so that i can do and operation with the content](https://discuss.elastic.co/t/how-to-create-multiple-context-field-in-elastic-search-verion-6-2-3-so-that-i-can-do-and-operation-with-the-content/168831)

<div class="topic-metadata">

**Author:** [@akshay\_singh1](https://discuss.elastic.co/u/akshay_singh1)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 1:10pm UTC](https://discuss.elastic.co/t/how-to-create-multiple-context-field-in-elastic-search-verion-6-2-3-so-that-i-can-do-and-operation-with-the-content/168831 "2019-02-18T13:10:18Z")

</div>

"suggest": { "type": "completion", "analyzer": "my\_custom\_analyzer", "preserve\_separators": true, "preserve\_position\_increments": true, "max\_input\_length": 50, "conte…

---

## [Update initially fast, but then crawls](https://discuss.elastic.co/t/update-initially-fast-but-then-crawls/168754)

<div class="topic-metadata">

**Author:** [@faZhift](https://discuss.elastic.co/u/faZhift)\
**Replies:** 9\
**Last updated:** [February 18, 2019, 12:17pm UTC](https://discuss.elastic.co/t/update-initially-fast-but-then-crawls/168754 "2019-02-18T12:17:59Z")

</div>

I am noticing that performing many "update\_by\_query" calls is very fast initially, handling several thousand a second. As time progresses though, this crawls to only a few per second. Looking at memory/CPU usage, it does…

---

## [Indices don't have primary shards while trying to take a snapshot](https://discuss.elastic.co/t/indices-dont-have-primary-shards-while-trying-to-take-a-snapshot/168812)

<div class="topic-metadata">

**Author:** [@muthualagappan](https://discuss.elastic.co/u/muthualagappan)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 12:00pm UTC](https://discuss.elastic.co/t/indices-dont-have-primary-shards-while-trying-to-take-a-snapshot/168812 "2019-02-18T12:00:45Z")

</div>

Hi Team, We have a old elasticsearch cluster running on 1.4.5. We wanted to take a snapshot of the data and delete the cluster. But we have some issues. While taking the snapshot, we get the status as FAILED. "state" …

---

## [How to store product data](https://discuss.elastic.co/t/how-to-store-product-data/168653)

<div class="topic-metadata">

**Author:** [@kluvi](https://discuss.elastic.co/u/kluvi)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 11:41am UTC](https://discuss.elastic.co/t/how-to-store-product-data/168653 "2019-02-18T11:41:11Z")

</div>

Hi. We have following requirements: store some product-related data (for milions of products) data are downloaded from different sources (like google analytics,...) we need to make some "cross-source" searches - somet…

---

## [How to stop elastic search v6.6.0 and start v6.0.1](https://discuss.elastic.co/t/how-to-stop-elastic-search-v6-6-0-and-start-v6-0-1/168797)

<div class="topic-metadata">

**Author:** [@PRUDHVI\_CHOWDHARY\_NE](https://discuss.elastic.co/u/PRUDHVI_CHOWDHARY_NE)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 11:19am UTC](https://discuss.elastic.co/t/how-to-stop-elastic-search-v6-6-0-and-start-v6-0-1/168797 "2019-02-18T11:19:26Z")

</div>

I downloaded elastic search version 6.6.0 and using in local host port 9200 and now i downloaded elastic search version 6.0.1 and now i want to use it in port 9200. how should i stop elastic search v 6.6.0 running in p…

---

## [Index integer type took more time to search, confused](https://discuss.elastic.co/t/index-integer-type-took-more-time-to-search-confused/168363)

<div class="topic-metadata">

**Author:** [@yaoqijun](https://discuss.elastic.co/u/yaoqijun)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 10:37am UTC](https://discuss.elastic.co/t/index-integer-type-took-more-time-to-search-confused/168363 "2019-02-18T10:37:12Z")

</div>

this is my index mapping , { "myIndex":{ "mappings":{ "discovery":{ "properties":{ "create\_time":{ "type":"long", "index":false }, "delete\_tag":{ "type":"integer" }, "desc":{ "type":"text", "analyzer":"ik\_…

---

## [How to make PreBuiltXPackTransportClient reusable？](https://discuss.elastic.co/t/how-to-make-prebuiltxpacktransportclient-reusable/168767)

<div class="topic-metadata">

**Author:** [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 10:27am UTC](https://discuss.elastic.co/t/how-to-make-prebuiltxpacktransportclient-reusable/168767 "2019-02-18T10:27:44Z")

</div>

Hello Create a PreBuiltXPackTransportClient object need username and password,so every logined person will has their own PreBuiltXPackTransportClient object， In order to make PreBuiltXPackTransportClient object reusabl…

---

## [Elasticsearch node does not starts](https://discuss.elastic.co/t/elasticsearch-node-does-not-starts/168421)

<div class="topic-metadata">

**Author:** [@pszemesy](https://discuss.elastic.co/u/pszemesy)\
**Replies:** 5\
**Last updated:** [February 18, 2019, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-node-does-not-starts/168421 "2019-02-18T08:50:30Z")

</div>

Hi All, I have a problem with starting one of my nodes. The ES runs on a cluster of 3 nodes (version 6.6). The node2 dosen't want to start up. When I start it from systemctl it seems to be running: ● elasticsearch.…

---

## [Install elasticsearch on the EBS attached volume](https://discuss.elastic.co/t/install-elasticsearch-on-the-ebs-attached-volume/168779)

<div class="topic-metadata">

**Author:** [@amitnegi6190](https://discuss.elastic.co/u/amitnegi6190)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 8:47am UTC](https://discuss.elastic.co/t/install-elasticsearch-on-the-ebs-attached-volume/168779 "2019-02-18T08:47:03Z")

</div>

Hi, I am trying to install elasticsearch on a fresh aws instance. My instance has an attached EBS volume along with the root drive. I would like to install elasticsearch on the EBS volume and also store all the data on …

---

## [Cluster advice when scaling](https://discuss.elastic.co/t/cluster-advice-when-scaling/168752)

<div class="topic-metadata">

**Author:** [@Jasper\_Nygaard](https://discuss.elastic.co/u/Jasper_Nygaard)\
**Replies:** 6\
**Last updated:** [February 18, 2019, 8:33am UTC](https://discuss.elastic.co/t/cluster-advice-when-scaling/168752 "2019-02-18T08:33:19Z")

</div>

Got a log cluster with 3 nodes (all data, ingest, master nodes) with 64GB ram, 1TB SSD and E5-26xxvx's. The load is between 30 and 70% depending on the version of the CPU. All running Windows Server. Some specs of the c…

---

## [Elastic user not able to authenticate after full cluster restart](https://discuss.elastic.co/t/elastic-user-not-able-to-authenticate-after-full-cluster-restart/168684)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 8:28am UTC](https://discuss.elastic.co/t/elastic-user-not-able-to-authenticate-after-full-cluster-restart/168684 "2019-02-18T08:28:52Z")

</div>

All, We have enabled TLS and restarted full cluster. but elastic user is not able to authenticate with cluster getting below error { "error" : { "root\_cause" : \[ { "type" : "security\_exception", "reason" : "failed…

---

## [Will frequent mapping exceptions slowdown my ingestion rate?](https://discuss.elastic.co/t/will-frequent-mapping-exceptions-slowdown-my-ingestion-rate/168730)

<div class="topic-metadata">

**Author:** [@eightnoteight](https://discuss.elastic.co/u/eightnoteight)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 8:09am UTC](https://discuss.elastic.co/t/will-frequent-mapping-exceptions-slowdown-my-ingestion-rate/168730 "2019-02-18T08:09:10Z")

</div>

Some times we have noticed that the consumer lag for certain logstash ingestion index is constantly growing, upon investigating we found that there are a few mapping exceptions on elasticsearch side for that particular i…

---

## [Measure Elasticsearch's load on the filesystem](https://discuss.elastic.co/t/measure-elasticsearchs-load-on-the-filesystem/168739)

<div class="topic-metadata">

**Author:** [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 8:07am UTC](https://discuss.elastic.co/t/measure-elasticsearchs-load-on-the-filesystem/168739 "2019-02-18T08:07:11Z")

</div>

I am interested in measuring how many calls Elasticsearch is making to the filesystem. The following will be the categories I am looking for: write calls with the size of payload read calls with the size of payload Pl…

---

## [How to create the perfect \_id by my own?](https://discuss.elastic.co/t/how-to-create-the-perfect-id-by-my-own/168757)

<div class="topic-metadata">

**Author:** [@tpraizler](https://discuss.elastic.co/u/tpraizler)\
**Replies:** 4\
**Last updated:** [February 18, 2019, 7:26am UTC](https://discuss.elastic.co/t/how-to-create-the-perfect-id-by-my-own/168757 "2019-02-18T07:26:29Z")

</div>

Hey, I must create my own \_id field. This id is basically a combination of 5 other fields of a document, so for example: { "a": 100, "b": "CUSTOM\_TYPE", "c": 300, "d": "bla" "e": …

---

## [Multi-Tenant custom pre-defined fields and unknown filters](https://discuss.elastic.co/t/multi-tenant-custom-pre-defined-fields-and-unknown-filters/168761)

<div class="topic-metadata">

**Author:** [@mehrdd](https://discuss.elastic.co/u/mehrdd)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 1:39am UTC](https://discuss.elastic.co/t/multi-tenant-custom-pre-defined-fields-and-unknown-filters/168761 "2019-02-18T01:39:29Z")

</div>

Hi, My index: "mappings": { "properties": { "namespace": { "type": "text" }, "uid": { "type": "long" }, "id": { "type": "long" }, "flags": { "type": "text" }, "s01": { "type": "text" }, "s02": { …

---

## [Can not get data](https://discuss.elastic.co/t/can-not-get-data/168765)

<div class="topic-metadata">

**Author:** [@aabababba](https://discuss.elastic.co/u/aabababba)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 5:59am UTC](https://discuss.elastic.co/t/can-not-get-data/168765 "2019-02-18T05:59:23Z")

</div>

my-elasticsearch.log \[2019-02-18T13:51:52,126\]\[WARN \]\[o.e.t.TransportService \] \[node-1\] Received response for a request that has timed out, sent \[20748ms\] ago, timed out \[5748ms\] ago, action \[cluster:monitor/nodes/sta…

---

## [How to avoid X-pack from getting compiled while compiling elasticsearch source code](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555)

<div class="topic-metadata">

**Author:** [@MKU](https://discuss.elastic.co/u/MKU)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 4:13am UTC](https://discuss.elastic.co/t/how-to-avoid-x-pack-from-getting-compiled-while-compiling-elasticsearch-source-code/168555 "2019-02-18T04:13:40Z")

</div>

I am trying to run elasticsearch source code in eclipse. But I want to exclude x-pack in the compilation process. I am just getting started with elasticsearch open source, so any help from you guys will be appreciated. …

---

## [User name and realm information in audit logs (user.name user.realm authentication\_success user.run\_by.name)](https://discuss.elastic.co/t/user-name-and-realm-information-in-audit-logs-user-name-user-realm-authentication-success-user-run-by-name/168606)

<div class="topic-metadata">

**Author:** [@Ryan\_Downey](https://discuss.elastic.co/u/Ryan_Downey)\
**Replies:** 0\
**Last updated:** [February 15, 2019, 2:31pm UTC](https://discuss.elastic.co/t/user-name-and-realm-information-in-audit-logs-user-name-user-realm-authentication-success-user-run-by-name/168606 "2019-02-15T14:31:18Z")

</div>

Elasticsearch 6.5.4 Linux I'm trying to fine tune our audit logs a bit and after logging our first audit logs I noticed that they dont provide us with some of the information we'd like. So we have two realms, native a…

---

## [\\Java\\jre1.8.0\_201\\bin\\java.exe was unexpected at this time](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105)

<div class="topic-metadata">

**Author:** [@bob28](https://discuss.elastic.co/u/bob28)\
**Replies:** 1\
**Last updated:** [February 17, 2019, 11:50pm UTC](https://discuss.elastic.co/t/java-jre1-8-0-201-bin-java-exe-was-unexpected-at-this-time/168105 "2019-02-17T23:50:52Z")

</div>

Hi, I am trying to start the elasticsearch and getting below message. I have upgraded my java version to jre1.8.0\_201 and then when I start it, I am facing this issue. \\Java\\jre1.8.0\_201\\bin\\java.exe was unexpected at …

---

## [Create a role with dynamic "run\_as" field](https://discuss.elastic.co/t/create-a-role-with-dynamic-run-as-field/168047)

<div class="topic-metadata">

**Author:** [@Uiidoi12](https://discuss.elastic.co/u/Uiidoi12)\
**Replies:** 1\
**Last updated:** [February 17, 2019, 11:48pm UTC](https://discuss.elastic.co/t/create-a-role-with-dynamic-run-as-field/168047 "2019-02-17T23:48:42Z")

</div>

Hi, I would like to create a role like this: POST /\_xpack/security/role/my\_dynamic\_role { "run\_as" : \[ $user \], ... } so that, e.g., when a user1 is assigned to my\_dynamic\_role that role will be rendered as: { …

---

## [Not able to install elastic search plugin](https://discuss.elastic.co/t/not-able-to-install-elastic-search-plugin/168746)

<div class="topic-metadata">

**Author:** [@rajendra\_gj](https://discuss.elastic.co/u/rajendra_gj)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 11:40pm UTC](https://discuss.elastic.co/t/not-able-to-install-elastic-search-plugin/168746 "2019-02-17T23:40:05Z")

</div>

When i try to install plugin i get the below erro. ./elasticsearch-plugin /Users/rmodadu/Rajendra/Projects/eclipse-workspace/whitelist-maven/target/releases/whitelist-maven-0.0.1-SNAPSHOT.zip A tool for managing instal…

---

## [Doc values are unmodifiable while using scripted metric](https://discuss.elastic.co/t/doc-values-are-unmodifiable-while-using-scripted-metric/168756)

<div class="topic-metadata">

**Author:** [@nmeaux](https://discuss.elastic.co/u/nmeaux)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 10:00pm UTC](https://discuss.elastic.co/t/doc-values-are-unmodifiable-while-using-scripted-metric/168756 "2019-02-17T22:00:59Z")

</div>

Hello, I am using a scripted metric, which is : "scripted\_metric": { "init\_script": "state.nodes = new HashMap();", "map\_script": "int jtime = 1538438400 ; for (int i = jtime; i \< jtime+2; ++i) {if (doc.time\_start.va…

---

## [Why doesn't simple\_query\_string accept a type parameter?](https://discuss.elastic.co/t/why-doesnt-simple-query-string-accept-a-type-parameter/168745)

<div class="topic-metadata">

**Author:** [@sschick](https://discuss.elastic.co/u/sschick)\
**Replies:** 0\
**Last updated:** [February 17, 2019, 6:03pm UTC](https://discuss.elastic.co/t/why-doesnt-simple-query-string-accept-a-type-parameter/168745 "2019-02-17T18:03:25Z")

</div>

Why does the query\_string query allow use with cross\_fields while the simple\_query\_string query does not? I need either to have access to cross\_fields in simple\_query\_string or access to something like flags in query\_str…

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

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