# Elasticsearch

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

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

**Page:** 1621

---

## [Using "not\_analyzed" in Java API TransportClient](https://discuss.elastic.co/t/using-not-analyzed-in-java-api-transportclient/139696)

<div class="topic-metadata">

**Author:** [@Zhengda\_Wu](https://discuss.elastic.co/u/Zhengda_Wu)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 8:36am UTC](https://discuss.elastic.co/t/using-not-analyzed-in-java-api-transportclient/139696 "2018-07-12T08:36:35Z")

</div>

Hi everyone, I am using elasticsearch 6.3.1 with JAVA HIGH LEVEL API, and I am trying to connect to a cluster and insert data items(TransportClient used). Among the fields of a singal data, there's some fields that I don…

---

## [Xpack setting password for build-in user](https://discuss.elastic.co/t/xpack-setting-password-for-build-in-user/138574)

<div class="topic-metadata">

**Author:** [@rkparkar](https://discuss.elastic.co/u/rkparkar)\
**Replies:** 2\
**Last updated:** [July 12, 2018, 8:29am UTC](https://discuss.elastic.co/t/xpack-setting-password-for-build-in-user/138574 "2018-07-12T08:29:03Z")

</div>

Is setting the password for all built-in users compulsory during the installation of xpack ? i am not able to understand the advantages and disadvantages of setting up this password since we already have a default boot…

---

## [ES doesn't start](https://discuss.elastic.co/t/es-doesnt-start/139573)

<div class="topic-metadata">

**Author:** [@master1](https://discuss.elastic.co/u/master1)\
**Replies:** 3\
**Last updated:** [July 12, 2018, 8:27am UTC](https://discuss.elastic.co/t/es-doesnt-start/139573 "2018-07-12T08:27:29Z")

</div>

Hello i'am a new user of ES, i installed it few days ago and it was runnig very well untill i tried to do this command that i've found on the ES website. ./bin/elasticsearch -d -Ecluster.name=my\_cluster -Enode.name=nod…

---

## [Elasticsearch Roles (Ingest)](https://discuss.elastic.co/t/elasticsearch-roles-ingest/139671)

<div class="topic-metadata">

**Author:** [@lazam](https://discuss.elastic.co/u/lazam)\
**Replies:** 2\
**Last updated:** [July 12, 2018, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-roles-ingest/139671 "2018-07-12T07:48:23Z")

</div>

Hello! I just have some questions in regards with the different roles of Elasticsearch (v5.6). We currently separate all the roles of the servers to Ingest, Data and Master. I have some confusion in regards with how Ing…

---

## [Stored fields for which types?](https://discuss.elastic.co/t/stored-fields-for-which-types/137641)

<div class="topic-metadata">

**Author:** [@cabane77](https://discuss.elastic.co/u/cabane77)\
**Replies:** 2\
**Last updated:** [July 12, 2018, 7:26am UTC](https://discuss.elastic.co/t/stored-fields-for-which-types/137641 "2018-07-12T07:26:03Z")

</div>

Hi, With regards to stored fields in elasticsearch (https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html), does anyone has more documentation or info about which field types these stored fi…

---

## [Converty query result's datetime accroding to timezone in Elasticsearch](https://discuss.elastic.co/t/converty-query-results-datetime-accroding-to-timezone-in-elasticsearch/139689)

<div class="topic-metadata">

**Author:** [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 7:25am UTC](https://discuss.elastic.co/t/converty-query-results-datetime-accroding-to-timezone-in-elasticsearch/139689 "2018-07-12T07:25:15Z")

</div>

I have situation, I am having field "time" with format "2018-07-12:00:00". I am hitting below query according to timezone: curl -X GET "localhost:9200/myindex/\_search" -H 'Content-Type: application/json' -d' { "query": …

---

## [Finding optimum number of shards for custom routing](https://discuss.elastic.co/t/finding-optimum-number-of-shards-for-custom-routing/139606)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 5\
**Last updated:** [July 12, 2018, 7:16am UTC](https://discuss.elastic.co/t/finding-optimum-number-of-shards-for-custom-routing/139606 "2018-07-12T07:16:54Z")

</div>

Hi, I am trying to find optimum number of shards for my data. I have custom routing value in my application. I know the formula: hash(routing) % num of primary shards. Question: Can anyone point me to the hashing fu…

---

## [Questions about caching and AbstractSearchScript - elasticsearch 2.4.6](https://discuss.elastic.co/t/questions-about-caching-and-abstractsearchscript-elasticsearch-2-4-6/139567)

<div class="topic-metadata">

**Author:** [@rmartins](https://discuss.elastic.co/u/rmartins)\
**Replies:** 1\
**Last updated:** [July 12, 2018, 6:00am UTC](https://discuss.elastic.co/t/questions-about-caching-and-abstractsearchscript-elasticsearch-2-4-6/139567 "2018-07-12T06:00:28Z")

</div>

Hi everyone, i'm trying to implement a plugin that exposes a native script in elasticsearch 2.4.6, however the behaviour i'm seeing is confusing. My environment: Elasticsearch 2.4.6 Single shard Index Doc count 5081…

---

## [Can we specify highligts specific to index when doing multi indices search](https://discuss.elastic.co/t/can-we-specify-highligts-specific-to-index-when-doing-multi-indices-search/139673)

<div class="topic-metadata">

**Author:** [@ivar](https://discuss.elastic.co/u/ivar)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 5:31am UTC](https://discuss.elastic.co/t/can-we-specify-highligts-specific-to-index-when-doing-multi-indices-search/139673 "2018-07-12T05:31:13Z")

</div>

I'm using elastic search 5.6 version when we use search using multiple indices can we specify different fields per index in highlights tag to skip field matching ?

---

## [How to find snapshot size](https://discuss.elastic.co/t/how-to-find-snapshot-size/139670)

<div class="topic-metadata">

**Author:** [@roshni](https://discuss.elastic.co/u/roshni)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 5:18am UTC](https://discuss.elastic.co/t/how-to-find-snapshot-size/139670 "2018-07-12T05:18:40Z")

</div>

How to find snapshot size ??? v5.4.3

---

## [Elasticsearch complete suggestion is showing only half sentence, why?](https://discuss.elastic.co/t/elasticsearch-complete-suggestion-is-showing-only-half-sentence-why/136297)

<div class="topic-metadata">

**Author:** [@rs123](https://discuss.elastic.co/u/rs123)\
**Replies:** 5\
**Last updated:** [July 12, 2018, 4:53am UTC](https://discuss.elastic.co/t/elasticsearch-complete-suggestion-is-showing-only-half-sentence-why/136297 "2018-07-12T04:53:54Z")

</div>

Mapping: PUT movies { "mappings": { "marvels": { "properties": { "name": { "type": "completion" }, "year": { "type": "keyword" } } } } } Indexing data: POST movies/marvels { "name": { "input": \[ "…

---

## [Keeping referance of a doc in another doc](https://discuss.elastic.co/t/keeping-referance-of-a-doc-in-another-doc/139665)

<div class="topic-metadata">

**Author:** [@vadiraj\_bidarahalli](https://discuss.elastic.co/u/vadiraj_bidarahalli)\
**Replies:** 0\
**Last updated:** [July 12, 2018, 4:20am UTC](https://discuss.elastic.co/t/keeping-referance-of-a-doc-in-another-doc/139665 "2018-07-12T04:20:57Z")

</div>

I have a list of candidates which belong to a listId which are present in emailListItems document type. we can add any of these candidates for reference check processing from the ui. when he is added I am creating anoth…

---

## [Help with the grok processor](https://discuss.elastic.co/t/help-with-the-grok-processor/139661)

<div class="topic-metadata">

**Author:** [@vsk](https://discuss.elastic.co/u/vsk)\
**Replies:** 4\
**Last updated:** [July 12, 2018, 4:20am UTC](https://discuss.elastic.co/t/help-with-the-grok-processor/139661 "2018-07-12T04:20:19Z")

</div>

The below code works well with grok debugger.. However when adding via., pipeline it fails.. what is the issue here ? { "description": "Extract information", "processors":\[ { "grok": { "field":"descr", "index\_name…

---

## [\[Solved\] Elastic all shards failed after unclean shutdown](https://discuss.elastic.co/t/solved-elastic-all-shards-failed-after-unclean-shutdown/139659)

<div class="topic-metadata">

**Author:** [@safhw91](https://discuss.elastic.co/u/safhw91)\
**Replies:** 3\
**Last updated:** [July 12, 2018, 3:52am UTC](https://discuss.elastic.co/t/solved-elastic-all-shards-failed-after-unclean-shutdown/139659 "2018-07-12T03:52:27Z")

</div>

Due to an unexpected unclean shutdown, my Elastic stack was restarted as well and it did not have high availability. Now I am getting an "All shards failed" error. From what I've heard, Elastic would be able to recover a…

---

## [Default number of shards clusterwide](https://discuss.elastic.co/t/default-number-of-shards-clusterwide/139558)

<div class="topic-metadata">

**Author:** [@akhalaiashota](https://discuss.elastic.co/u/akhalaiashota)\
**Replies:** 4\
**Last updated:** [July 12, 2018, 1:50am UTC](https://discuss.elastic.co/t/default-number-of-shards-clusterwide/139558 "2018-07-12T01:50:28Z")

</div>

hello I am googling almost 5 hrs and cant find information about how to change default number of shards (which is 5) clusterwide I know how to set number of shards during index creation or using template or set the num…

---

## [Cannot convert lambda expression to type 'PostData' because it is not a delegate type](https://discuss.elastic.co/t/cannot-convert-lambda-expression-to-type-postdata-because-it-is-not-a-delegate-type/138724)

<div class="topic-metadata">

**Author:** [@StephM](https://discuss.elastic.co/u/StephM)\
**Replies:** 6\
**Last updated:** [July 12, 2018, 1:18am UTC](https://discuss.elastic.co/t/cannot-convert-lambda-expression-to-type-postdata-because-it-is-not-a-delegate-type/138724 "2018-07-12T01:18:44Z")

</div>

I have this code in my .net core app var searchResponse = client.Search\<Person\>(s =\> s .From(0) .Size(10) .Query(q =\> q .Match(m =\> m .Field(f =\> f.FirstName) .Query("Martijn") ) ) ); which I…

---

## [Configure X-Pack.Security on ELK V6.2.4](https://discuss.elastic.co/t/configure-x-pack-security-on-elk-v6-2-4/139502)

<div class="topic-metadata">

**Author:** [@sreejiths](https://discuss.elastic.co/u/sreejiths)\
**Replies:** 2\
**Last updated:** [July 12, 2018, 1:07am UTC](https://discuss.elastic.co/t/configure-x-pack-security-on-elk-v6-2-4/139502 "2018-07-12T01:07:28Z")

</div>

As part of testing X-Pack.Security on Elasticsearch V6.2.4 in our UAT infra , Was trting to set passwords for build in users i am getting below error . Can anyone please help/advise on this issue \[root@elasticsearch-ua…

---

## [Index creation throws notFound error](https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650)

<div class="topic-metadata">

**Author:** [@pungent](https://discuss.elastic.co/u/pungent)\
**Replies:** 0\
**Last updated:** [July 11, 2018, 11:58pm UTC](https://discuss.elastic.co/t/index-creation-throws-notfound-error/139650 "2018-07-11T23:58:11Z")

</div>

I am using ES 6.2 on ElasticCloud with python ES package and trying to create an index, but keeps getting weird not Found error es\_connection.indices.exists(index="test\_index") \>\> False try: result = es\_connection.…

---

## [Kibana/Logstash search performance degradation after migration to 6.3.0 from 5.1.1](https://discuss.elastic.co/t/kibana-logstash-search-performance-degradation-after-migration-to-6-3-0-from-5-1-1/139636)

<div class="topic-metadata">

**Author:** [@stopchiy](https://discuss.elastic.co/u/stopchiy)\
**Replies:** 0\
**Last updated:** [July 11, 2018, 7:39pm UTC](https://discuss.elastic.co/t/kibana-logstash-search-performance-degradation-after-migration-to-6-3-0-from-5-1-1/139636 "2018-07-11T19:39:05Z")

</div>

Recently we migrated some of our test environments from ELK 5.1.1 to Elasticsearch 6.3.0, Kibana 6.3.0 and keep Logstash v 5.1.1. Now we have significant search performance degradation in comparing to ELK5.1.1. Especia…

---

## [How to remove the duplicate fields in the index patter with the .Keyword](https://discuss.elastic.co/t/how-to-remove-the-duplicate-fields-in-the-index-patter-with-the-keyword/139608)

<div class="topic-metadata">

**Author:** [@vebabu](https://discuss.elastic.co/u/vebabu)\
**Replies:** 1\
**Last updated:** [July 11, 2018, 7:26pm UTC](https://discuss.elastic.co/t/how-to-remove-the-duplicate-fields-in-the-index-patter-with-the-keyword/139608 "2018-07-11T19:26:30Z")

</div>

Also I can see duplicate fields in the index patter with the .Keyword . How to remove the .keyword field. AWS Elastic search : Kibana Index pattern Mapping in kIbana:

---

## [Two subaggregation in datafeed](https://discuss.elastic.co/t/two-subaggregation-in-datafeed/138217)

<div class="topic-metadata">

**Author:** [@Akaren](https://discuss.elastic.co/u/Akaren)\
**Replies:** 18\
**Last updated:** [July 11, 2018, 6:22pm UTC](https://discuss.elastic.co/t/two-subaggregation-in-datafeed/138217 "2018-07-11T18:22:38Z")

</div>

Hi, I am trying to do ratio in my data feed. First I created date\_histogram with max agg (couse I got an error that it's needed) and then I am doing subaggregation by attrs.src\_ca\_name and want to count ratio of success…

---

## [Size of results on bucket for aggs](https://discuss.elastic.co/t/size-of-results-on-bucket-for-aggs/139620)

<div class="topic-metadata">

**Author:** [@Omar\_Verduzco](https://discuss.elastic.co/u/Omar_Verduzco)\
**Replies:** 1\
**Last updated:** [July 11, 2018, 5:02pm UTC](https://discuss.elastic.co/t/size-of-results-on-bucket-for-aggs/139620 "2018-07-11T17:02:24Z")

</div>

Hi, I'm trying to get a simple aggregation, but looks like the size of the results in the bucket is always limited to 10, I haven't found a way to increase this, I'd like to have all the distinct elements returned. Here'…

---

## [Help me increase index.max\_result\_window level](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610)

<div class="topic-metadata">

**Author:** [@marklcfc](https://discuss.elastic.co/u/marklcfc)\
**Replies:** 1\
**Last updated:** [July 11, 2018, 3:53pm UTC](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610 "2018-07-11T15:53:58Z")

</div>

I am trying to use ElasticSearch on Invision forum software, it works generally but there is an error and its causing tasks to crash. This is the error Result window is too large, from + size must be less than or equal …

---

## [How to update the default datatype of the field from text to date?](https://discuss.elastic.co/t/how-to-update-the-default-datatype-of-the-field-from-text-to-date/139604)

<div class="topic-metadata">

**Author:** [@vebabu](https://discuss.elastic.co/u/vebabu)\
**Replies:** 0\
**Last updated:** [July 11, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-update-the-default-datatype-of-the-field-from-text-to-date/139604 "2018-07-11T15:07:30Z")

</div>

I am using AWS IoT CORE and transferring the data to Elastics search service. Then i am creating the Index pattern in the Kibana. My IoT device gives the date in standard UTC format "2018-07-01 01:01:01:44567" OR "YYYY-…

---

## [Upgrade assistant re-index helper writes off cluster](https://discuss.elastic.co/t/upgrade-assistant-re-index-helper-writes-off-cluster/139601)

<div class="topic-metadata">

**Author:** [@Ant](https://discuss.elastic.co/u/Ant)\
**Replies:** 0\
**Last updated:** [July 11, 2018, 2:59pm UTC](https://discuss.elastic.co/t/upgrade-assistant-re-index-helper-writes-off-cluster/139601 "2018-07-11T14:59:57Z")

</div>

When I use the re-index helper on my 5.6.6 cluster for either the kibana or watcher index elastic will not start on nodes any more. in the logs I get Error injecting constructor, java.lang.IllegalStateException: index …

---

## [One cluster with different provionces indexes or different clusters with different provionces region](https://discuss.elastic.co/t/one-cluster-with-different-provionces-indexes-or-different-clusters-with-different-provionces-region/139598)

<div class="topic-metadata">

**Author:** [@fdb58704a2c5cc6a3286](https://discuss.elastic.co/u/fdb58704a2c5cc6a3286)\
**Replies:** 0\
**Last updated:** [July 11, 2018, 2:50pm UTC](https://discuss.elastic.co/t/one-cluster-with-different-provionces-indexes-or-different-clusters-with-different-provionces-region/139598 "2018-07-11T14:50:18Z")

</div>

i use es store different region data,such beijing,shanghai,chongqing and other provinces. should i use provionces name as index name ,and unique cluster.name: all\_data for example cluster all\_data with 9 nodes elast…

---

## [Discovery-ec2 endpoint setting?](https://discuss.elastic.co/t/discovery-ec2-endpoint-setting/139577)

<div class="topic-metadata">

**Author:** [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Replies:** 1\
**Last updated:** [July 11, 2018, 2:51pm UTC](https://discuss.elastic.co/t/discovery-ec2-endpoint-setting/139577 "2018-07-11T14:51:19Z")

</div>

Hi - could someone please provide an example on how to use the "endpoint" setting in discovery-ec2? was following this : https://www.elastic.co/guide/en/elasticsearch/plugins/6.2/\_settings.html and trying to set us-wes…

---

## ["not enough master nodes discovered during pinging" Error in AWS WEST only East comes up fine!](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436)

<div class="topic-metadata">

**Author:** [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Replies:** 4\
**Last updated:** [July 11, 2018, 2:48pm UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging-error-in-aws-west-only-east-comes-up-fine/139436 "2018-07-11T14:48:48Z")

</div>

I understand this has been asked before. Our situation is a bit odd where this USED to work a few days ago and does work on our AWS EAST stack. However, we get this error on our WEST region stack. The security groups hav…

---

## [None of the configured nodes are available - but only sometimes](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-but-only-sometimes/138666)

<div class="topic-metadata">

**Author:** [@Applesauce](https://discuss.elastic.co/u/Applesauce)\
**Replies:** 10\
**Last updated:** [July 11, 2018, 2:11pm UTC](https://discuss.elastic.co/t/none-of-the-configured-nodes-are-available-but-only-sometimes/138666 "2018-07-11T14:11:16Z")

</div>

Hello, in our Elasticsearch 2.3.4 implementation we've been experiencing the dreaded "No nodes available, transport -1" issue. After looking at varius topics regarding the issue, the issues I've checked is NOT the proble…

---

## [Missing x-pack filebeat monitors](https://discuss.elastic.co/t/missing-x-pack-filebeat-monitors/138364)

<div class="topic-metadata">

**Author:** [@JensVanDeynse](https://discuss.elastic.co/u/JensVanDeynse)\
**Replies:** 3\
**Last updated:** [July 11, 2018, 2:10pm UTC](https://discuss.elastic.co/t/missing-x-pack-filebeat-monitors/138364 "2018-07-11T14:10:19Z")

</div>

Hello In the beginning our ELK stack filebeat monitoring worked perfectly with X-Pack but recently I tried adding some new hosts to it and although the data is correctly parsed by Logstash the monitoring data that get's…

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

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