# Elasticsearch

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

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

**Page:** 1889

---

## [ES script code duplication](https://discuss.elastic.co/t/es-script-code-duplication/107567)

<div class="topic-metadata">

**Author:** [@samatha\_kankipati](https://discuss.elastic.co/u/samatha_kankipati)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 3:23pm UTC](https://discuss.elastic.co/t/es-script-code-duplication/107567 "2017-11-15T15:23:51Z")

</div>

We have two scripts with almost same code. Is there any way we can remove code duplication between the scripts? Like including / calling one script from other?

---

## [How to understand snapshot repositories on s3?](https://discuss.elastic.co/t/how-to-understand-snapshot-repositories-on-s3/107665)

<div class="topic-metadata">

**Author:** [@lhong1](https://discuss.elastic.co/u/lhong1)\
**Replies:** 5\
**Last updated:** [November 15, 2017, 3:19pm UTC](https://discuss.elastic.co/t/how-to-understand-snapshot-repositories-on-s3/107665 "2017-11-15T15:19:22Z")

</div>

Hello, We have our ES snapshot stored on S3 currently via repository-s3 plugin. Per this post: I'd like to copy repository data of certain indices to local disk. I see each snapshot has an UUID ( /\_snapshot/REPOSITO…

---

## [Docker host node Java opts](https://discuss.elastic.co/t/docker-host-node-java-opts/107448)

<div class="topic-metadata">

**Author:** [@Tyler\_Siemers](https://discuss.elastic.co/u/Tyler_Siemers)\
**Replies:** 3\
**Last updated:** [November 15, 2017, 2:50pm UTC](https://discuss.elastic.co/t/docker-host-node-java-opts/107448 "2017-11-15T14:50:05Z")

</div>

I am in the process of going from dev to a production model of the Elastic stack with docker compose. I have a few newbie questions about java mem and heap sizes. The docker host box has a total of 24gb of ram. In my …

---

## [How we can check replica is enable or not in elastic search version 1.3.x?](https://discuss.elastic.co/t/how-we-can-check-replica-is-enable-or-not-in-elastic-search-version-1-3-x/107758)

<div class="topic-metadata">

**Author:** [@amitshar04](https://discuss.elastic.co/u/amitshar04)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 2:08pm UTC](https://discuss.elastic.co/t/how-we-can-check-replica-is-enable-or-not-in-elastic-search-version-1-3-x/107758 "2017-11-15T14:08:06Z")

</div>

Hi, How we can check replica is enable or not in elastic search version 1.3.x ? if it is set to 1 then does it mean we have additional copy of data ? if it is not then what should i do for same ( need additional copy …

---

## [Upgrade Assistant - Default path settings are removed](https://discuss.elastic.co/t/upgrade-assistant-default-path-settings-are-removed/107110)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://discuss.elastic.co/u/Ryan_Groten)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 1:30pm UTC](https://discuss.elastic.co/t/upgrade-assistant-default-path-settings-are-removed/107110 "2017-11-15T13:30:58Z")

</div>

I ran Upgrade Assistant on my 5.6.3 ES cluster and I get an error that states: Default path settings are removed This issue must be resolved to upgrade. Read Documentation Details: nodes with settings: \[node1\_data\] How…

---

## [Join in Elasticsearch like in RDBMS](https://discuss.elastic.co/t/join-in-elasticsearch-like-in-rdbms/107738)

<div class="topic-metadata">

**Author:** [@g.barov](https://discuss.elastic.co/u/g.barov)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 1:01pm UTC](https://discuss.elastic.co/t/join-in-elasticsearch-like-in-rdbms/107738 "2017-11-15T13:01:19Z")

</div>

Hi all, I am trying to make a join like in RDBMS. I have a few .csv files that are included in the .config file and I want to use them for BI purposes. Is it possible to join by unique column a few tables like in sql …

---

## [Headers for the Java REST Client](https://discuss.elastic.co/t/headers-for-the-java-rest-client/107684)

<div class="topic-metadata">

**Author:** [@jettro](https://discuss.elastic.co/u/jettro)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 12:48pm UTC](https://discuss.elastic.co/t/headers-for-the-java-rest-client/107684 "2017-11-15T12:48:06Z")

</div>

I understand that in elasticsearch 6 the content type header is mandatory. I get a nice exception when omitting it when connecting using the low level rest client. {"error":"Content-Type header \[text/plain; charset=ISO-…

---

## [Lucene dependencies in ElasticSearch High Level Client](https://discuss.elastic.co/t/lucene-dependencies-in-elasticsearch-high-level-client/107606)

<div class="topic-metadata">

**Author:** [@Victor\_Luiz\_Guimarae](https://discuss.elastic.co/u/Victor_Luiz_Guimarae)\
**Replies:** 4\
**Last updated:** [November 15, 2017, 12:21pm UTC](https://discuss.elastic.co/t/lucene-dependencies-in-elasticsearch-high-level-client/107606 "2017-11-15T12:21:12Z")

</div>

Hello, We are migrating from Solr to ElasticSearch. I using the ElasticSearch High Level Client and ElasticSearch in the 5.6.2 version. The High Level Client are using Lucene 6.6.1 and my already exists projects are us…

---

## [How to not analyzed a field in elasticsearch](https://discuss.elastic.co/t/how-to-not-analyzed-a-field-in-elasticsearch/107718)

<div class="topic-metadata">

**Author:** [@sidra\_89](https://discuss.elastic.co/u/sidra_89)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 12:02pm UTC](https://discuss.elastic.co/t/how-to-not-analyzed-a-field-in-elasticsearch/107718 "2017-11-15T12:02:46Z")

</div>

Hi i have a brand\_name field and its values are like "Hello World" means have spaces in between i dont want to analyze it for exact matching currently my mapping is this "brand\_name" =\> \[ "t…

---

## [Javascript client munging up non-ascii characters](https://discuss.elastic.co/t/javascript-client-munging-up-non-ascii-characters/107724)

<div class="topic-metadata">

**Author:** [@aram535](https://discuss.elastic.co/u/aram535)\
**Replies:** 0\
**Last updated:** [November 15, 2017, 10:46am UTC](https://discuss.elastic.co/t/javascript-client-munging-up-non-ascii-characters/107724 "2017-11-15T10:46:37Z")

</div>

Hi, I have a json with some non-ascii characters stored in ES 5.6. Using the latest javascript client I'm doing a search but the result is replacing the non-ascii with non-printable characters. I have confirmed the re…

---

## [Shard relocation failed due to filesystem read-only](https://discuss.elastic.co/t/shard-relocation-failed-due-to-filesystem-read-only/107709)

<div class="topic-metadata">

**Author:** [@xlc](https://discuss.elastic.co/u/xlc)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 10:33am UTC](https://discuss.elastic.co/t/shard-relocation-failed-due-to-filesystem-read-only/107709 "2017-11-15T10:33:07Z")

</div>

Hi, I'm using elasticsearch2.3.2,many warning log detail appered start from yesterday，like \[track\_report\_idmonitor\_hour\_17\]\[29\] received shard failed for target shard \[\[track\_report\_idmonitor\_hour\_17\]\[29\], node\[77MLQRO…

---

## [Elasticsearch lucene query not working](https://discuss.elastic.co/t/elasticsearch-lucene-query-not-working/107721)

<div class="topic-metadata">

**Author:** [@Nishan\_Singh](https://discuss.elastic.co/u/Nishan_Singh)\
**Replies:** 0\
**Last updated:** [November 15, 2017, 10:32am UTC](https://discuss.elastic.co/t/elasticsearch-lucene-query-not-working/107721 "2017-11-15T10:32:48Z")

</div>

Hi, i have data as following in my elastic search: { "System":"sytem01", "user":"user$", "ipaddress":"192.168.1.1" } and i m trying to do lucene query like (user:"$" , user:($), use…

---

## [Delete by query with new Java Rest API](https://discuss.elastic.co/t/delete-by-query-with-new-java-rest-api/107578)

<div class="topic-metadata">

**Author:** [@Pingouin](https://discuss.elastic.co/u/Pingouin)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 10:20am UTC](https://discuss.elastic.co/t/delete-by-query-with-new-java-rest-api/107578 "2017-11-15T10:20:39Z")

</div>

Hy there, I am currently updating all my code written using Transport Java API to new Java Rest API. For search, delete, aggregagtions, etc... i had no problem but i wish i wanted to delete by query also. And i don't …

---

## [Upsert ELasticSearch documents with Spark](https://discuss.elastic.co/t/upsert-elasticsearch-documents-with-spark/107716)

<div class="topic-metadata">

**Author:** [@salvob41](https://discuss.elastic.co/u/salvob41)\
**Replies:** 0\
**Last updated:** [November 15, 2017, 10:10am UTC](https://discuss.elastic.co/t/upsert-elasticsearch-documents-with-spark/107716 "2017-11-15T10:10:31Z")

</div>

Is there an API with Spark, Spark Streaming or Structured Streaming Spark that I can use to upsert documents in ElasticSearch with a script? Elastic-Hadoop has the .saveToES function but I cannot understand which parame…

---

## [Multi-arch (non intel) docker images for ELK](https://discuss.elastic.co/t/multi-arch-non-intel-docker-images-for-elk/107713)

<div class="topic-metadata">

**Author:** [@vaibhavsood](https://discuss.elastic.co/u/vaibhavsood)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 10:02am UTC](https://discuss.elastic.co/t/multi-arch-non-intel-docker-images-for-elk/107713 "2017-11-15T10:02:08Z")

</div>

Hi, I want to check if non-intel (eg ppc64le, arm etc.) docker images will be made available? Dockerhub has a way to make images hosted there multi-arch, but since ELK docker images are now not under Dockerhub, would it…

---

## [ElasticSearch HEAD plugin compatibility with 6.0.0](https://discuss.elastic.co/t/elasticsearch-head-plugin-compatibility-with-6-0-0/107704)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 0\
**Last updated:** [November 15, 2017, 9:34am UTC](https://discuss.elastic.co/t/elasticsearch-head-plugin-compatibility-with-6-0-0/107704 "2017-11-15T09:34:44Z")

</div>

Hi, We use ElasticSearch HEAD plugin to view documents that are indexed. We have indexed some documents in ES 6.0.0 the latest. But after the upgrade to ES 6.0.0, unfortunately we are not able to view documents that a…

---

## [How to get data of 2 ES clusters in single Kibana?](https://discuss.elastic.co/t/how-to-get-data-of-2-es-clusters-in-single-kibana/107686)

<div class="topic-metadata">

**Author:** [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 9:26am UTC](https://discuss.elastic.co/t/how-to-get-data-of-2-es-clusters-in-single-kibana/107686 "2017-11-15T09:26:51Z")

</div>

Hi all, I have my ES cluster like below; \[arch\] All are master eligible nodes. I am keeping current 30 days of my logs in C1 and old 60 days of data in C2. I have 2 Kibanas for this. I export daily snapshots from C1 a…

---

## [Discrepancy in same data displayed from two index pattern values](https://discuss.elastic.co/t/discrepancy-in-same-data-displayed-from-two-index-pattern-values/107685)

<div class="topic-metadata">

**Author:** [@anomalyml](https://discuss.elastic.co/u/anomalyml)\
**Replies:** 0\
**Last updated:** [November 15, 2017, 8:23am UTC](https://discuss.elastic.co/t/discrepancy-in-same-data-displayed-from-two-index-pattern-values/107685 "2017-11-15T08:23:17Z")

</div>

Hi, I have a two data sources from which using a custom script I'm feeding data into Elasticsearch. I create two separate indexes say namely 'netdata' and 'netdata-tps'. I want to create a multi metric job analysis whic…

---

## [Painless list collect](https://discuss.elastic.co/t/painless-list-collect/107378)

<div class="topic-metadata">

**Author:** [@Conall\_Prendergast](https://discuss.elastic.co/u/Conall_Prendergast)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 7:26am UTC](https://discuss.elastic.co/t/painless-list-collect/107378 "2017-11-15T07:26:57Z")

</div>

Hi, I am trying to do a script transform in painless, and am following an example I found here regarding list.collect syntax. My painless script is: "transform" : { "script" : "return ctx.payload.hits.ag…

---

## [Am I install Rally in a wrong way?](https://discuss.elastic.co/t/am-i-install-rally-in-a-wrong-way/107651)

<div class="topic-metadata">

**Author:** [@f4ct0r](https://discuss.elastic.co/u/f4ct0r)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 6:46am UTC](https://discuss.elastic.co/t/am-i-install-rally-in-a-wrong-way/107651 "2017-11-15T06:46:51Z")

</div>

Hi all: I installed Rally based on https://esrally.readthedocs.io/en/latest/quickstart.html But after I configured Rally and run it, an kernal error occur every 4 second. The error is: igb 0000:05:00:0: exceed max 2 …

---

## [Naming Convention for fields](https://discuss.elastic.co/t/naming-convention-for-fields/107659)

<div class="topic-metadata">

**Author:** [@Mikhail\_Khludnev](https://discuss.elastic.co/u/Mikhail_Khludnev)\
**Replies:** 1\
**Last updated:** [November 15, 2017, 5:18am UTC](https://discuss.elastic.co/t/naming-convention-for-fields/107659 "2017-11-15T05:18:30Z")

</div>

Hello, Is there a regular practice how to name fields in mapping: cAmEl, hypen-sliced, or ruby\_snake? I've found one for Beats, but is there any recommendation or pitfalls (beside of the dots) ? Thank you

---

## [Query not reaching all shards from transport client?](https://discuss.elastic.co/t/query-not-reaching-all-shards-from-transport-client/107627)

<div class="topic-metadata">

**Author:** [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)\
**Replies:** 1\
**Last updated:** [November 14, 2017, 9:55pm UTC](https://discuss.elastic.co/t/query-not-reaching-all-shards-from-transport-client/107627 "2017-11-14T21:55:39Z")

</div>

Our application runs a query that has been returning inconsistent results. Using the \_preference query option, I was able to determine the number of documents on each shard, and by comparing the counts returned each time…

---

## [Cant able to connect SQL server in windows 7](https://discuss.elastic.co/t/cant-able-to-connect-sql-server-in-windows-7/107004)

<div class="topic-metadata">

**Author:** [@divik](https://discuss.elastic.co/u/divik)\
**Replies:** 4\
**Last updated:** [November 15, 2017, 3:45am UTC](https://discuss.elastic.co/t/cant-able-to-connect-sql-server-in-windows-7/107004 "2017-11-15T03:45:40Z")

</div>

I'm very new to elasticsearch and i configured and i got C:\\elasticsearch-5.6.3\\elasticsearch-jdbc-2.3.3.1\\bin\>mssql-simple-example.bat { "elasticsearch" : { "cluster" : "elasticsearch", "host" : " …

---

## [ElasticSearch Visual Editor](https://discuss.elastic.co/t/elasticsearch-visual-editor/107647)

<div class="topic-metadata">

**Author:** [@panda2004](https://discuss.elastic.co/u/panda2004)\
**Replies:** 2\
**Last updated:** [November 15, 2017, 1:52am UTC](https://discuss.elastic.co/t/elasticsearch-visual-editor/107647 "2017-11-15T01:52:41Z")

</div>

Hey there, We must admit that making any changes/updates to an existing document in ElasticSearch is really messy. Some reasons for that might be: Using scripts: even when you can merge existing fields built-in, using…

---

## [Getting the highligted text from query sent from .Net](https://discuss.elastic.co/t/getting-the-highligted-text-from-query-sent-from-net/107313)

<div class="topic-metadata">

**Author:** [@Akshay\_Deep\_Lamba](https://discuss.elastic.co/u/Akshay_Deep_Lamba)\
**Replies:** 3\
**Last updated:** [November 14, 2017, 11:21pm UTC](https://discuss.elastic.co/t/getting-the-highligted-text-from-query-sent-from-net/107313 "2017-11-14T23:21:27Z")

</div>

hi I am using the below code to get the output.. var node = new Uri("http://192.168.0.3"); var settings1 = new ConnectionSettings(node).RequestTimeout(TimeSpan.FromMinutes(2)) …

---

## [Change default replica factor for monitor\* index?](https://discuss.elastic.co/t/change-default-replica-factor-for-monitor-index/107468)

<div class="topic-metadata">

**Author:** [@suanmeiguo](https://discuss.elastic.co/u/suanmeiguo)\
**Replies:** 8\
**Last updated:** [November 14, 2017, 9:47pm UTC](https://discuss.elastic.co/t/change-default-replica-factor-for-monitor-index/107468 "2017-11-14T21:47:01Z")

</div>

I want to increase the number\_of\_replicas for all the .monitoring\* index created by x-pack. I realize they are using templates such as .monitoring-es-2. Do I just create another index /\_template/.monitoring-es-3 and tha…

---

## [Custom Realm with JWT token](https://discuss.elastic.co/t/custom-realm-with-jwt-token/107310)

<div class="topic-metadata">

**Author:** [@jvemugunta](https://discuss.elastic.co/u/jvemugunta)\
**Replies:** 13\
**Last updated:** [November 14, 2017, 9:37pm UTC](https://discuss.elastic.co/t/custom-realm-with-jwt-token/107310 "2017-11-14T21:37:44Z")

</div>

I am struggling to make it work. I have understood the sample code given in https://github.com/elastic/shield-custom-realm-example This is my use case. I want to enable SSO for my Kibana/Elastic Search instance through …

---

## [Multi\_match search appears to be using the index analyzer](https://discuss.elastic.co/t/multi-match-search-appears-to-be-using-the-index-analyzer/107626)

<div class="topic-metadata">

**Author:** [@Cara](https://discuss.elastic.co/u/Cara)\
**Replies:** 0\
**Last updated:** [November 14, 2017, 8:42pm UTC](https://discuss.elastic.co/t/multi-match-search-appears-to-be-using-the-index-analyzer/107626 "2017-11-14T20:42:34Z")

</div>

I'm using Elasticsearch 5.5 on AWS. With a type (with NEST mapping attributes) that looks like this: \[ElasticsearchType\] public class MyType { public const string AutocompleteAnalyzer = "autocomplete"; public co…

---

## [Path\_hierarchy sorting](https://discuss.elastic.co/t/path-hierarchy-sorting/107614)

<div class="topic-metadata">

**Author:** [@Omar\_Verduzco](https://discuss.elastic.co/u/Omar_Verduzco)\
**Replies:** 0\
**Last updated:** [November 14, 2017, 7:51pm UTC](https://discuss.elastic.co/t/path-hierarchy-sorting/107614 "2017-11-14T19:51:07Z")

</div>

Hi have a field that is analyzed using the path\_hierarchy tokenizer. My problem is that, if I have a path like this: parent/child1/child2 When I execute a search using this query: POST my\_index/\_search { "query": { …

---

## [Retrieving count values and checking threshold using watcher](https://discuss.elastic.co/t/retrieving-count-values-and-checking-threshold-using-watcher/107590)

<div class="topic-metadata">

**Author:** [@jessiepi](https://discuss.elastic.co/u/jessiepi)\
**Replies:** 0\
**Last updated:** [November 14, 2017, 4:39pm UTC](https://discuss.elastic.co/t/retrieving-count-values-and-checking-threshold-using-watcher/107590 "2017-11-14T16:39:52Z")

</div>

Hello, I am trying to use elastic search to monitor a connection every second and I am trying to set a condition in my watch JSON that takes the count value for each hit and checks to see if it is greater than a threshol…

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

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