# Elasticsearch

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

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

**Page:** 1667

---

## [Timeline for Elastic 6.3 Release?](https://discuss.elastic.co/t/timeline-for-elastic-6-3-release/133702)

<div class="topic-metadata">

**Author:** [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Replies:** 3\
**Last updated:** [June 4, 2018, 1:37pm UTC](https://discuss.elastic.co/t/timeline-for-elastic-6-3-release/133702 "2018-06-04T13:37:28Z")

</div>

Hello - is there a suggested timeline when 6.3 release would go live ?

---

## [Watcher syskeygen for basic authentication](https://discuss.elastic.co/t/watcher-syskeygen-for-basic-authentication/133848)

<div class="topic-metadata">

**Author:** [@delly.set](https://discuss.elastic.co/u/delly.set)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 12:55pm UTC](https://discuss.elastic.co/t/watcher-syskeygen-for-basic-authentication/133848 "2018-06-04T12:55:01Z")

</div>

hi I need Watcher to run Elasticsearch API, pass the request.auth.basic.username and request.auth.basic.password. Reading this url https://www.elastic.co/guide/en/x-pack/current/encrypting-data.html , we can secure the …

---

## [Add a json in webhook body for teams](https://discuss.elastic.co/t/add-a-json-in-webhook-body-for-teams/132536)

<div class="topic-metadata">

**Author:** [@Sebastian\_Herrera](https://discuss.elastic.co/u/Sebastian_Herrera)\
**Replies:** 3\
**Last updated:** [June 4, 2018, 12:48pm UTC](https://discuss.elastic.co/t/add-a-json-in-webhook-body-for-teams/132536 "2018-06-04T12:48:54Z")

</div>

Hello guys, i am trying to send alerts to a webhook that i have on my microsoft teams account. for that i need to add this on the webhook body { "@context": "http://schema.org/extensions", "@type": "MessageCard", "th…

---

## [How to get the count of total non-zero documents from an index?](https://discuss.elastic.co/t/how-to-get-the-count-of-total-non-zero-documents-from-an-index/132523)

<div class="topic-metadata">

**Author:** [@saikrishnagaddipati](https://discuss.elastic.co/u/saikrishnagaddipati)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 12:46pm UTC](https://discuss.elastic.co/t/how-to-get-the-count-of-total-non-zero-documents-from-an-index/132523 "2018-06-04T12:46:32Z")

</div>

I am retrieving data from an index "dummyindex" and send the total count of non-zero documents in the field downtime\_depth to another index. I am not able to get the value using value\_count using below script. any sugge…

---

## [Query string used search](https://discuss.elastic.co/t/query-string-used-search/134422)

<div class="topic-metadata">

**Author:** [@Boney\_Jacob](https://discuss.elastic.co/u/Boney_Jacob)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 12:34pm UTC](https://discuss.elastic.co/t/query-string-used-search/134422 "2018-06-04T12:34:28Z")

</div>

Hi, We are using elasticsearch 6.2 with kuromoji tokenizer. How to use default\_operator in query\_string with phrase\_prefix? Now we are using phrase\_prefix with query\_string and default operator as "AND", but now space…

---

## [Autocomplete search with Completion Suggester](https://discuss.elastic.co/t/autocomplete-search-with-completion-suggester/134417)

<div class="topic-metadata">

**Author:** [@rs123](https://discuss.elastic.co/u/rs123)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 12:06pm UTC](https://discuss.elastic.co/t/autocomplete-search-with-completion-suggester/134417 "2018-06-04T12:06:33Z")

</div>

We are building a search engine for our app and we want to show suggestion while searching. We want to show suggestion to every user based on their profile (personalised). So the problem is Completion Suggester do not su…

---

## [Ranking short vs. long documents vs nested docs](https://discuss.elastic.co/t/ranking-short-vs-long-documents-vs-nested-docs/134318)

<div class="topic-metadata">

**Author:** [@randel\_2](https://discuss.elastic.co/u/randel_2)\
**Replies:** 0\
**Last updated:** [June 3, 2018, 4:01pm UTC](https://discuss.elastic.co/t/ranking-short-vs-long-documents-vs-nested-docs/134318 "2018-06-03T16:01:34Z")

</div>

A search with standard settings ranks hits in documents with fewer words higher than longer texts. The word count seems to also take all nested documents into consideration. Lets say I have: PUT /books/\_doc/1 { "edit…

---

## [I'm trying to setup a cluster with 2 nodes. one master node and other data node](https://discuss.elastic.co/t/im-trying-to-setup-a-cluster-with-2-nodes-one-master-node-and-other-data-node/133870)

<div class="topic-metadata">

**Author:** [@komal\_mittal](https://discuss.elastic.co/u/komal_mittal)\
**Replies:** 20\
**Last updated:** [June 4, 2018, 11:14am UTC](https://discuss.elastic.co/t/im-trying-to-setup-a-cluster-with-2-nodes-one-master-node-and-other-data-node/133870 "2018-06-04T11:14:53Z")

</div>

Continuing the discussion from Elasticsearch: Not enough master nodes discovered during pinging:

---

## [404 Response](https://discuss.elastic.co/t/404-response/134405)

<div class="topic-metadata">

**Author:** [@Harsh\_Katiyar](https://discuss.elastic.co/u/Harsh_Katiyar)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 11:07am UTC](https://discuss.elastic.co/t/404-response/134405 "2018-06-04T11:07:07Z")

</div>

If I run http://localhost:9200/ response : { "name" : "Harold H. Harold", "cluster\_name" : "elasticsearch", "cluster\_uuid" : "VJw5noi8Qoq0Ahtfzjqx-w", "version" : { "number" : "2.4.6", "build\_hash" : "5376dca9f70…

---

## [Nested location object and mapping in elasticsearch](https://discuss.elastic.co/t/nested-location-object-and-mapping-in-elasticsearch/133826)

<div class="topic-metadata">

**Author:** [@Rahul\_Lao](https://discuss.elastic.co/u/Rahul_Lao)\
**Replies:** 0\
**Last updated:** [May 30, 2018, 8:41am UTC](https://discuss.elastic.co/t/nested-location-object-and-mapping-in-elasticsearch/133826 "2018-05-30T08:41:11Z")

</div>

Hi, Suppose i have a custom wrapper class which has many fields in it. Some of which are simple primitive fields like strings, integers while other are highly nested fields. Along with these fields say i have latitude …

---

## [Trying to install X-Pack in my linux machine having a java based error](https://discuss.elastic.co/t/trying-to-install-x-pack-in-my-linux-machine-having-a-java-based-error/134397)

<div class="topic-metadata">

**Author:** [@ashan1991](https://discuss.elastic.co/u/ashan1991)\
**Replies:** 3\
**Last updated:** [June 4, 2018, 10:31am UTC](https://discuss.elastic.co/t/trying-to-install-x-pack-in-my-linux-machine-having-a-java-based-error/134397 "2018-06-04T10:31:32Z")

</div>

Hello everyone. I'm trying to install X-Pack on my machine, but seem like I'm having this Java-based issue. Any help would be much appreciated. /elasticsearch-plugin install x-packException in thread "main" javax.net.s…

---

## [Indexation problem](https://discuss.elastic.co/t/indexation-problem/133652)

<div class="topic-metadata">

**Author:** [@Hamza\_Dhahri](https://discuss.elastic.co/u/Hamza_Dhahri)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 10:20am UTC](https://discuss.elastic.co/t/indexation-problem/133652 "2018-06-04T10:20:32Z")

</div>

hello i am facing a big problem in fact i am filtring logs and index them in elasticsearch (for each log they have the same index 7 index) and then i visualize them in angular \[image\] the problem when i add anoth…

---

## [ES 6.2.4 How to find out which nodes are offline](https://discuss.elastic.co/t/es-6-2-4-how-to-find-out-which-nodes-are-offline/134339)

<div class="topic-metadata">

**Author:** [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Replies:** 5\
**Last updated:** [June 4, 2018, 10:11am UTC](https://discuss.elastic.co/t/es-6-2-4-how-to-find-out-which-nodes-are-offline/134339 "2018-06-04T10:11:14Z")

</div>

Hi Team, What is the recommended way to find out which nodes in the cluster are offline using the rest API? In Kibana monitoring I can see which nodes are offline but I am not sure how Kibana actually determines that -…

---

## [Ability to stop and start a cluster without shard movement](https://discuss.elastic.co/t/ability-to-stop-and-start-a-cluster-without-shard-movement/134375)

<div class="topic-metadata">

**Author:** [@antonpious](https://discuss.elastic.co/u/antonpious)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 8:22am UTC](https://discuss.elastic.co/t/ability-to-stop-and-start-a-cluster-without-shard-movement/134375 "2018-06-04T08:22:17Z")

</div>

Continuing the discussion on why the shard movement happens though the design is correct to not to have movement and to pick local shards. Original Issue that was closed till the discussion is over: Ability to stop and…

---

## [Price of subscription X-PACK](https://discuss.elastic.co/t/price-of-subscription-x-pack/134369)

<div class="topic-metadata">

**Author:** [@br14nb0](https://discuss.elastic.co/u/br14nb0)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 8:07am UTC](https://discuss.elastic.co/t/price-of-subscription-x-pack/134369 "2018-06-04T08:07:06Z")

</div>

How much does it cost the GOLD subscription X-pack ? Thanks, I have 2 elasticsearch node

---

## [Phrase prefix search](https://discuss.elastic.co/t/phrase-prefix-search/134373)

<div class="topic-metadata">

**Author:** [@Boney\_Jacob](https://discuss.elastic.co/u/Boney_Jacob)\
**Replies:** 0\
**Last updated:** [June 4, 2018, 7:26am UTC](https://discuss.elastic.co/t/phrase-prefix-search/134373 "2018-06-04T07:26:26Z")

</div>

hi, Now I am using elasticsearch6.2 with kuromoji tokenizer. In my application, elasticsearch result is different for same keywords. My search conditions are, "keyword1 keyword2" "keyword1 AND keyword2" Search type…

---

## [BindTransportException\[Failed to bind to \[9300-9400\]\]; nested: BindException\[Cannot assign requested address](https://discuss.elastic.co/t/bindtransportexception-failed-to-bind-to-9300-9400-nested-bindexception-cannot-assign-requested-address/132048)

<div class="topic-metadata">

**Author:** [@sahara](https://discuss.elastic.co/u/sahara)\
**Replies:** 3\
**Last updated:** [June 4, 2018, 7:15am UTC](https://discuss.elastic.co/t/bindtransportexception-failed-to-bind-to-9300-9400-nested-bindexception-cannot-assign-requested-address/132048 "2018-06-04T07:15:55Z")

</div>

elasticsearch.yml network.host: 10.42.0.204 http.port: 9200 my host has address 10.1.1.209 my stack trace \[2018-05-16T12:44:35,056\]\[INFO \]\[o.e.n.Node \] \[2VhkBLX\] starting ... \[2018-05-16T12:44:35,216\]…

---

## [Possible to 'flatten' nested mapping with reindex?](https://discuss.elastic.co/t/possible-to-flatten-nested-mapping-with-reindex/134313)

<div class="topic-metadata">

**Author:** [@PaulieMac](https://discuss.elastic.co/u/PaulieMac)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 6:49am UTC](https://discuss.elastic.co/t/possible-to-flatten-nested-mapping-with-reindex/134313 "2018-06-04T06:49:29Z")

</div>

Hi... I have a nested mapping, which I'd like to reindex into a non-nested structure - i.e. each nested object + the 'parent' document becomes a new document. Is this possible by reindexing? I'd like to avoid reloading f…

---

## [Migration to rest client ,NoSuchFieldError: Lucene\_5\_5\_4 error](https://discuss.elastic.co/t/migration-to-rest-client-nosuchfielderror-lucene-5-5-4-error/134217)

<div class="topic-metadata">

**Author:** [@Neha\_goswami](https://discuss.elastic.co/u/Neha_goswami)\
**Replies:** 9\
**Last updated:** [June 4, 2018, 5:56am UTC](https://discuss.elastic.co/t/migration-to-rest-client-nosuchfielderror-lucene-5-5-4-error/134217 "2018-06-04T05:56:04Z")

</div>

Hi , I am migrating to Elastic rest client version 5.6.9 When i try to instantiate RestHighLevelClient, i get this error: RestHighLevelClient client = new RestHighLevelClient(restlowLevelClient); Exception in thread …

---

## [Log users and query in audit log](https://discuss.elastic.co/t/log-users-and-query-in-audit-log/132446)

<div class="topic-metadata">

**Author:** [@ol3k](https://discuss.elastic.co/u/ol3k)\
**Replies:** 7\
**Last updated:** [June 4, 2018, 5:49am UTC](https://discuss.elastic.co/t/log-users-and-query-in-audit-log/132446 "2018-06-04T05:49:31Z")

</div>

Hi, we set up a new ELK Cluster and enabled audit logging: Is there any possibility to log the username and all queries done by the user? In the audit log we just see successful / failed logins etc. but never any quer…

---

## [Javascript API for ES 6.2.4](https://discuss.elastic.co/t/javascript-api-for-es-6-2-4/134327)

<div class="topic-metadata">

**Author:** [@rr\_silicon](https://discuss.elastic.co/u/rr_silicon)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 4:01am UTC](https://discuss.elastic.co/t/javascript-api-for-es-6-2-4/134327 "2018-06-04T04:01:35Z")

</div>

I was running Graylog with ES5.x and used aggregations and d3 to cre3ate visualization. I uninstalled Graylog (and ES) and installed ES 6.2.4. (no Graylog) What do I need to do with elasticsearch.js that I was using on…

---

## [Synonym analysis before or after Stemmer?](https://discuss.elastic.co/t/synonym-analysis-before-or-after-stemmer/134347)

<div class="topic-metadata">

**Author:** [@foobarbaz](https://discuss.elastic.co/u/foobarbaz)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 2:08am UTC](https://discuss.elastic.co/t/synonym-analysis-before-or-after-stemmer/134347 "2018-06-04T02:08:16Z")

</div>

Hi! Could someone clear up if synonym analysis should happen before or after a stemmer? Use wordnet style as noted in docs: { "settings": { "index" : { "analysis" : { "filter" :…

---

## [NoNodeAvailableException\[None of the configured nodes are available: \[\]\]](https://discuss.elastic.co/t/nonodeavailableexception-none-of-the-configured-nodes-are-available/134178)

<div class="topic-metadata">

**Author:** [@wangjiajia1](https://discuss.elastic.co/u/wangjiajia1)\
**Replies:** 2\
**Last updated:** [June 4, 2018, 1:34am UTC](https://discuss.elastic.co/t/nonodeavailableexception-none-of-the-configured-nodes-are-available/134178 "2018-06-04T01:34:21Z")

</div>

I am using es6.2.4 and appeared this problem when I try to connect es server by transportClient;

---

## [ElasticSearch Upgrade issues](https://discuss.elastic.co/t/elasticsearch-upgrade-issues/134239)

<div class="topic-metadata">

**Author:** [@anandvamsiv](https://discuss.elastic.co/u/anandvamsiv)\
**Replies:** 1\
**Last updated:** [June 4, 2018, 1:11am UTC](https://discuss.elastic.co/t/elasticsearch-upgrade-issues/134239 "2018-06-04T01:11:42Z")

</div>

Hell team - I'm in a situation where i need to upgrade ES1.x to ES6.2, I have installed ES6.2 nodes equal no of number as OLD ES cluster ( 3 Data nodes and 3 Master nodes) My question: 1.How can i include the re…

---

## [ES 6.2.4 Impact of a higher concurrent recovery settings](https://discuss.elastic.co/t/es-6-2-4-impact-of-a-higher-concurrent-recovery-settings/134340)

<div class="topic-metadata">

**Author:** [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Replies:** 0\
**Last updated:** [June 3, 2018, 10:13pm UTC](https://discuss.elastic.co/t/es-6-2-4-impact-of-a-higher-concurrent-recovery-settings/134340 "2018-06-03T22:13:47Z")

</div>

Hi Team, What is the impact of setting a higher value for concurrent recoveries such as cluster.routing.allocation.node\_concurrent\_recoveries and cluster.routing.allocation.node\_initial\_primaries\_recoveries for the clu…

---

## [Periodic CPU Spikes on all nodes](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716)

<div class="topic-metadata">

**Author:** [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Replies:** 3\
**Last updated:** [June 3, 2018, 9:55pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716 "2018-06-03T21:55:57Z")

</div>

I’ve gotten some periodic CPU spikes on servers when there are no significant load. Restarting the servers doesn’t help. I have 4 nodes with 3 set to master-capable and one data node. When it spikes, all 4 servers run a…

---

## [Shard allocation / cluster design](https://discuss.elastic.co/t/shard-allocation-cluster-design/134333)

<div class="topic-metadata">

**Author:** [@zermoth](https://discuss.elastic.co/u/zermoth)\
**Replies:** 3\
**Last updated:** [June 3, 2018, 9:46pm UTC](https://discuss.elastic.co/t/shard-allocation-cluster-design/134333 "2018-06-03T21:46:35Z")

</div>

Is there a way to select what nodes/cluster group gets what shard and what replica. I am using a hot/warm setup. I place about 1.1Bil rows an hour though my index's at peak times. I am thinking of modifying my setup t…

---

## [Add Scripted fields through curl](https://discuss.elastic.co/t/add-scripted-fields-through-curl/134335)

<div class="topic-metadata">

**Author:** [@Karanushah.1992](https://discuss.elastic.co/u/Karanushah.1992)\
**Replies:** 0\
**Last updated:** [June 3, 2018, 7:31pm UTC](https://discuss.elastic.co/t/add-scripted-fields-through-curl/134335 "2018-06-03T19:31:20Z")

</div>

Hi, I want to add scripted field through curl. I know I have to update .kibana index specifically the doc of that index pattern. Below is the code that I am executing to add scripted field test in the index pattern pa…

---

## [Is it possible to exclude empty values at the index settings?](https://discuss.elastic.co/t/is-it-possible-to-exclude-empty-values-at-the-index-settings/134302)

<div class="topic-metadata">

**Author:** [@yeikel](https://discuss.elastic.co/u/yeikel)\
**Replies:** 3\
**Last updated:** [June 3, 2018, 5:06pm UTC](https://discuss.elastic.co/t/is-it-possible-to-exclude-empty-values-at-the-index-settings/134302 "2018-06-03T17:06:25Z")

</div>

Sometimes, I receive data to be indexed where some fields can be empty. I would like to exclude those properties at index time rather than process them myself before sending the request to index it. Is it possible to co…

---

## [Reindex from remote api](https://discuss.elastic.co/t/reindex-from-remote-api/134325)

<div class="topic-metadata">

**Author:** [@sharongur](https://discuss.elastic.co/u/sharongur)\
**Replies:** 0\
**Last updated:** [June 3, 2018, 4:31pm UTC](https://discuss.elastic.co/t/reindex-from-remote-api/134325 "2018-06-03T16:31:39Z")

</div>

I used the reindex api like so POST \_reindex?wait\_for\_completion=false { "source": { "remote": { "host": "http://remote:9200", "socket\_timeout": "10m", "connect\_timeout": "10m" }, "index": "new\_widget", "type"…

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

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