# Elasticsearch

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

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

**Page:** 1766

---

## [Periods in environment variables](https://discuss.elastic.co/t/periods-in-environment-variables/122603)

<div class="topic-metadata">

**Author:** [@gpthome](https://discuss.elastic.co/u/gpthome)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 10:16pm UTC](https://discuss.elastic.co/t/periods-in-environment-variables/122603 "2018-03-05T22:16:28Z")

</div>

The documentation here https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docker.html says to use an environment var named "discovery.type". It caught my attention when RedHat's OpenShift does not support that …

---

## [Elasticsearch multiple instances on 6.X](https://discuss.elastic.co/t/elasticsearch-multiple-instances-on-6-x/122597)

<div class="topic-metadata">

**Author:** [@JJerpseth](https://discuss.elastic.co/u/JJerpseth)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 8:52pm UTC](https://discuss.elastic.co/t/elasticsearch-multiple-instances-on-6-x/122597 "2018-03-05T20:52:37Z")

</div>

I want to run multiple instances of 6.X on my elasticsearch cluster. All of the suggestions on how to do this involve version 5.X or earlier where the Epath.conf could be used to start two instances. With 6.X the optio…

---

## [Will \_cluster/health, Indices still be available after license expire](https://discuss.elastic.co/t/will-cluster-health-indices-still-be-available-after-license-expire/122582)

<div class="topic-metadata">

**Author:** [@lee891031](https://discuss.elastic.co/u/lee891031)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 7:27pm UTC](https://discuss.elastic.co/t/will-cluster-health-indices-still-be-available-after-license-expire/122582 "2018-03-05T19:27:58Z")

</div>

Hi I am wondering if I can still call \_cluster/health and \_indices endpoint if my x-pack license got expired? In my elasticsearch.yml, I have the following configuration: xpack.monitoring.enabled: true Will this be im…

---

## [Java application disconnects from Elasticsearch cluster](https://discuss.elastic.co/t/java-application-disconnects-from-elasticsearch-cluster/122317)

<div class="topic-metadata">

**Author:** [@Affan\_Malik](https://discuss.elastic.co/u/Affan_Malik)\
**Replies:** 4\
**Last updated:** [March 5, 2018, 7:25pm UTC](https://discuss.elastic.co/t/java-application-disconnects-from-elasticsearch-cluster/122317 "2018-03-05T19:25:22Z")

</div>

We have a 3 node Elasticsearch cluster behind a AWS ELB. Our Java application communicates to the cluster using the Elasticsearch Java client pointing to the ELB. We have been noticing that the application intermittentl…

---

## [ClasscastException when using SearchTemplateRequestBuilder from within a plugin](https://discuss.elastic.co/t/classcastexception-when-using-searchtemplaterequestbuilder-from-within-a-plugin/122572)

<div class="topic-metadata">

**Author:** [@ng.software.dev](https://discuss.elastic.co/u/ng.software.dev)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 5:58pm UTC](https://discuss.elastic.co/t/classcastexception-when-using-searchtemplaterequestbuilder-from-within-a-plugin/122572 "2018-03-05T17:58:56Z")

</div>

Hi, I have written an action plugin in which I need to call a search template. The code is quite straightforward: SearchResponse sr = new SearchTemplateRequestBuilder(client) .setScript("myTemplate") …

---

## [Completion suggester across multiple indices](https://discuss.elastic.co/t/completion-suggester-across-multiple-indices/122403)

<div class="topic-metadata">

**Author:** [@neshta](https://discuss.elastic.co/u/neshta)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 5:57pm UTC](https://discuss.elastic.co/t/completion-suggester-across-multiple-indices/122403 "2018-03-05T17:57:24Z")

</div>

ElasticSearch 6.x does not support multiple type mappings in a single index. So I have for example 2 indices: location postcode I want to have autocomplete functionality (I use completion suggester) using both indices…

---

## [Template Date filter](https://discuss.elastic.co/t/template-date-filter/122506)

<div class="topic-metadata">

**Author:** [@tgdesrochers](https://discuss.elastic.co/u/tgdesrochers)\
**Replies:** 2\
**Last updated:** [March 5, 2018, 5:09pm UTC](https://discuss.elastic.co/t/template-date-filter/122506 "2018-03-05T17:09:19Z")

</div>

Elastic 6.2 Warning: \[2018-03-05T12:14:44,717\]\[WARN \]\[logstash.outputs.elasticsearch\] Could not index event to Elasticsearch. {:status=\>400, :action=\>\["index", {:\_id=\>nil, :\_index=\>"index-2018.02.13", :\_type=\>"doc", :\_…

---

## [How to remove fields from response](https://discuss.elastic.co/t/how-to-remove-fields-from-response/122518)

<div class="topic-metadata">

**Author:** [@pazikkamil](https://discuss.elastic.co/u/pazikkamil)\
**Replies:** 3\
**Last updated:** [March 5, 2018, 4:31pm UTC](https://discuss.elastic.co/t/how-to-remove-fields-from-response/122518 "2018-03-05T16:31:46Z")

</div>

search\_month = model.search().query(q\_objects) search\_month.aggs.bucket( source\_month, 'date\_histogram', field='date', interval=date\_ranges\[source\_month\].interval, ) response\_month = search\_month.exec…

---

## [Nested Query and cross referencing](https://discuss.elastic.co/t/nested-query-and-cross-referencing/122560)

<div class="topic-metadata">

**Author:** [@animageofmine](https://discuss.elastic.co/u/animageofmine)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 4:10pm UTC](https://discuss.elastic.co/t/nested-query-and-cross-referencing/122560 "2018-03-05T16:10:53Z")

</div>

Same question as the one posted here by @David\_Fox : Nested queries and cross referencing. Posting it again since the thread is closed and there wasn't any reply. Basically, I am trying to understand the following: La…

---

## [Can a watcher action send mail without authentication?](https://discuss.elastic.co/t/can-a-watcher-action-send-mail-without-authentication/122558)

<div class="topic-metadata">

**Author:** [@Badger](https://discuss.elastic.co/u/Badger)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 4:09pm UTC](https://discuss.elastic.co/t/can-a-watcher-action-send-mail-without-authentication/122558 "2018-03-05T16:09:45Z")

</div>

The email action documentation talks about how to authenticate to gmail, outlook etc. I have sendmail bound to localhost on port 25. Can I configure an action that sends mail using that without authentication?

---

## [Tribe node crash: full of old stats](https://discuss.elastic.co/t/tribe-node-crash-full-of-old-stats/122557)

<div class="topic-metadata">

**Author:** [@ebillaud](https://discuss.elastic.co/u/ebillaud)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 3:36pm UTC](https://discuss.elastic.co/t/tribe-node-crash-full-of-old-stats/122557 "2018-03-05T15:36:32Z")

</div>

Hello, We have our Tribe node (v5.3.0) that crashed recently. The hprof analysis showed that it was full of old statistics. It is connected to 3 clusters. For two of them, there were statistics 10 minutes old. In the f…

---

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

<div class="topic-metadata">

**Author:** [@amalel](https://discuss.elastic.co/u/amalel)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 3:51pm UTC](https://discuss.elastic.co/t/elasticsearch-head/122454 "2018-03-05T15:51:30Z")

</div>

Hi everyone, Plz i have a question, I need to know if its possible to do "join query" between 2 index ? Thank you

---

## [Join two json in elastic search](https://discuss.elastic.co/t/join-two-json-in-elastic-search/122460)

<div class="topic-metadata">

**Author:** [@Somok\_Sarkar\_IN](https://discuss.elastic.co/u/Somok_Sarkar_IN)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 3:50pm UTC](https://discuss.elastic.co/t/join-two-json-in-elastic-search/122460 "2018-03-05T15:50:20Z")

</div>

I have a specific requirement where two json files are in elastic and having a common attribute called "code\_type". Like in table we do inner join " where a.code\_type=b.code\_type" is there any way we can achieve that in …

---

## [Cardinality: optimisation and memory footpring](https://discuss.elastic.co/t/cardinality-optimisation-and-memory-footpring/120019)

<div class="topic-metadata">

**Author:** [@ebillaud](https://discuss.elastic.co/u/ebillaud)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 3:44pm UTC](https://discuss.elastic.co/t/cardinality-optimisation-and-memory-footpring/120019 "2018-03-05T15:44:24Z")

</div>

Hello, Basically, there are two points I would like to share with you: one on useless cardinality aggregation computation, and one on the way to measure the impact of the precision\_threshold value. 1. Cardinality aggre…

---

## [How to write a Elasticsearch query](https://discuss.elastic.co/t/how-to-write-a-elasticsearch-query/122523)

<div class="topic-metadata">

**Author:** [@Achuth](https://discuss.elastic.co/u/Achuth)\
**Replies:** 2\
**Last updated:** [March 5, 2018, 3:38pm UTC](https://discuss.elastic.co/t/how-to-write-a-elasticsearch-query/122523 "2018-03-05T15:38:24Z")

</div>

Select all Messages(Posts & Comments) created between date1-date2(inclusive) by Persons located in country1 or country2, Select the creators (Persons) and the Tags of these Messages. Split these Persons,Tags and Message…

---

## [Update api missing \_parent in response](https://discuss.elastic.co/t/update-api-missing-parent-in-response/122555)

<div class="topic-metadata">

**Author:** [@Gleb\_Kozyryatskyy](https://discuss.elastic.co/u/Gleb_Kozyryatskyy)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 3:30pm UTC](https://discuss.elastic.co/t/update-api-missing-parent-in-response/122555 "2018-03-05T15:30:06Z")

</div>

Dear group, Im using the update api and seems like there is no "\_parent" field in response. Steps to reproduce: #create index curl -XPUT localhost:9200/testindex -d '{ "mappings": { "perenttype": {}, "childtype": { "\_…

---

## [Remote replication](https://discuss.elastic.co/t/remote-replication/122510)

<div class="topic-metadata">

**Author:** [@Balamurali](https://discuss.elastic.co/u/Balamurali)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 3:27pm UTC](https://discuss.elastic.co/t/remote-replication/122510 "2018-03-05T15:27:50Z")

</div>

Hi all, I need to ensure data available at any time, So please suggest methods which can provide Can we keep 5 nodes in one DC and another 5 nodes for the same cluster in another DC, which helps to fast recovery in…

---

## [Last N documents aggregation](https://discuss.elastic.co/t/last-n-documents-aggregation/122553)

<div class="topic-metadata">

**Author:** [@mPanasiewicz](https://discuss.elastic.co/u/mPanasiewicz)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 3:26pm UTC](https://discuss.elastic.co/t/last-n-documents-aggregation/122553 "2018-03-05T15:26:40Z")

</div>

Hello, I want to make aggregation of last N documents(for example 100) for watcher alerts. Is this possible to use count of documents, not time?? "body": { "size": 0, "query": { "bool": { …

---

## [Http Bulk Index Endpoint Error](https://discuss.elastic.co/t/http-bulk-index-endpoint-error/122550)

<div class="topic-metadata">

**Author:** [@wpearson4](https://discuss.elastic.co/u/wpearson4)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 3:22pm UTC](https://discuss.elastic.co/t/http-bulk-index-endpoint-error/122550 "2018-03-05T15:22:12Z")

</div>

I am receiving the following error as soon as I attempt to post using multiple threads. Should I only post to a single endpoint with a single thread? I have a 4 node cluser. 1 Client Node: VPS 16gb Ram and 4 core, 1 Ma…

---

## [Illegal\_argument\_exception - setup of analyzer](https://discuss.elastic.co/t/illegal-argument-exception-setup-of-analyzer/122546)

<div class="topic-metadata">

**Author:** [@mfoldbjerg](https://discuss.elastic.co/u/mfoldbjerg)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 3:13pm UTC](https://discuss.elastic.co/t/illegal-argument-exception-setup-of-analyzer/122546 "2018-03-05T15:13:25Z")

</div>

Hi, We'we been using the following analyzer setup for ages: "analysis": { "char\_filter": { "danish\_char\_mapping": { "type": "mapping", "mappings": \[ "\\u00C0 =\> A", "\\u00C1 =\> A", "\\u00C2 =\> A", "\\u00C3 =\> A", …

---

## [Install x-pack 622](https://discuss.elastic.co/t/install-x-pack-622/122242)

<div class="topic-metadata">

**Author:** [@diegovelasco](https://discuss.elastic.co/u/diegovelasco)\
**Replies:** 3\
**Last updated:** [March 5, 2018, 3:07pm UTC](https://discuss.elastic.co/t/install-x-pack-622/122242 "2018-03-05T15:07:41Z")

</div>

Hello, I am new with es, kibana and x-pack. I have tried to do a complete installation with these steps: ES elasticsearch-6.2.2 (1) .msi. if I tried to install x-pack I was always error with the proxy settings. I ins…

---

## [Is its possible to restore a FAILED snapshot (only 2 shards failed) on elasticsearch@5.0.0?](https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539)

<div class="topic-metadata">

**Author:** [@Nuno\_Rodrigues](https://discuss.elastic.co/u/Nuno_Rodrigues)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 2:52pm UTC](https://discuss.elastic.co/t/is-its-possible-to-restore-a-failed-snapshot-only-2-shards-failed-on-elasticsearch-5-0-0/122539 "2018-03-05T14:52:06Z")

</div>

I have a snapshot that failed due to "Indices don't have primary shards \[idx-2018-02, idx-2017-12\]". According to the docs i should be able to restore the successfully snapshotted shards by setting partial to true. But…

---

## [How to disable \_source from dsl when creating mappings](https://discuss.elastic.co/t/how-to-disable-source-from-dsl-when-creating-mappings/122495)

<div class="topic-metadata">

**Author:** [@carlosvega](https://discuss.elastic.co/u/carlosvega)\
**Replies:** 1\
**Last updated:** [March 5, 2018, 2:43pm UTC](https://discuss.elastic.co/t/how-to-disable-source-from-dsl-when-creating-mappings/122495 "2018-03-05T14:43:32Z")

</div>

I can't find how should I proceed to disable \_source field when using the Python elasticsearch-dsl API. Thanks :slight\_smile:

---

## [How to use completion suggester and edge NGram Tokenizer function together?](https://discuss.elastic.co/t/how-to-use-completion-suggester-and-edge-ngram-tokenizer-function-together/122534)

<div class="topic-metadata">

**Author:** [@Kurzer\_Patrick](https://discuss.elastic.co/u/Kurzer_Patrick)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 2:38pm UTC](https://discuss.elastic.co/t/how-to-use-completion-suggester-and-edge-ngram-tokenizer-function-together/122534 "2018-03-05T14:38:48Z")

</div>

I am trying to get my autocomplete search the best as possible. So I started with the completion suggester functions where I can define some weights on my documents suggest fields. This allows me to give some pre ranking…

---

## [Scale\_interval in timelion in elasticsearch query](https://discuss.elastic.co/t/scale-interval-in-timelion-in-elasticsearch-query/122529)

<div class="topic-metadata">

**Author:** [@Jibin\_Mathews](https://discuss.elastic.co/u/Jibin_Mathews)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 2:18pm UTC](https://discuss.elastic.co/t/scale-interval-in-timelion-in-elasticsearch-query/122529 "2018-03-05T14:18:56Z")

</div>

Here we are introduced to scale\_interval in timelion can we have the same functionality in an Elasticsearch query? here is the synopsis, But what if you want to see a bytes per second chart? No matter what interval is…

---

## [Missing HeadDumpPath?](https://discuss.elastic.co/t/missing-headdumppath/122522)

<div class="topic-metadata">

**Author:** [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 1:39pm UTC](https://discuss.elastic.co/t/missing-headdumppath/122522 "2018-03-05T13:39:05Z")

</div>

Elasticsearch 6.2.2 running from Docker OSS image: /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xs…

---

## [Occasionally missing fields in custom plugin](https://discuss.elastic.co/t/occasionally-missing-fields-in-custom-plugin/122217)

<div class="topic-metadata">

**Author:** [@batenburg](https://discuss.elastic.co/u/batenburg)\
**Replies:** 2\
**Last updated:** [March 5, 2018, 11:56am UTC](https://discuss.elastic.co/t/occasionally-missing-fields-in-custom-plugin/122217 "2018-03-05T11:56:31Z")

</div>

I'm running into a nasty bug where the params HashMap provided to the newScript function is somewhat incomplete. I can't find any issue like this and considered filing a bug, but I don't know how to reproduce it. Elasti…

---

## [SumBucket on \_bucket\_count returns zero](https://discuss.elastic.co/t/sumbucket-on-bucket-count-returns-zero/122483)

<div class="topic-metadata">

**Author:** [@shemmer](https://discuss.elastic.co/u/shemmer)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 10:38am UTC](https://discuss.elastic.co/t/sumbucket-on-bucket-count-returns-zero/122483 "2018-03-05T10:38:11Z")

</div>

I want to count the number of buckets in an aggregation using ElasticSearch 5.6.2. My documents look like this: "caseId": "123456", "timestamp": "2018-02-26T12:28:30Z", "status": "0" The state of the last document entr…

---

## [Elastic 6.1 Internode communication error: SSL handshake exception](https://discuss.elastic.co/t/elastic-6-1-internode-communication-error-ssl-handshake-exception/121910)

<div class="topic-metadata">

**Author:** [@Aby](https://discuss.elastic.co/u/Aby)\
**Replies:** 5\
**Last updated:** [March 5, 2018, 10:01am UTC](https://discuss.elastic.co/t/elastic-6-1-internode-communication-error-ssl-handshake-exception/121910 "2018-03-05T10:01:52Z")

</div>

I have a 3 node cluster with 1 master and 2 data nodes. SSL/TSL has been setup by getting organization signed certificate. When i seperate the nodes within the cluster by assigning different cluster names and starting …

---

## [Inconsistent results with the same query elastic 6.0.1](https://discuss.elastic.co/t/inconsistent-results-with-the-same-query-elastic-6-0-1/122472)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Costa](https://discuss.elastic.co/u/Rodrigo_Costa)\
**Replies:** 0\
**Last updated:** [March 5, 2018, 10:01am UTC](https://discuss.elastic.co/t/inconsistent-results-with-the-same-query-elastic-6-0-1/122472 "2018-03-05T10:01:05Z")

</div>

i'm getting inconsistent results each time i create the same index and index the same data.This only happen when i have 5 or less shards, With more shards the results are consistent.the indexed data has the total size of…

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

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