# Elasticsearch

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

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

**Page:** 1539

---

## [Searches on our Elastic Cloud cluster are 100 times slower than on our self hosted instance!?](https://discuss.elastic.co/t/searches-on-our-elastic-cloud-cluster-are-100-times-slower-than-on-our-self-hosted-instance/149860)

<div class="topic-metadata">

**Author:** [@zacko](https://discuss.elastic.co/u/zacko)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 2:53pm UTC](https://discuss.elastic.co/t/searches-on-our-elastic-cloud-cluster-are-100-times-slower-than-on-our-self-hosted-instance/149860 "2018-09-25T14:53:09Z")

</div>

For development purposes we set up an elastic cluster on a virtual machine within our own data center consisting of two nodes with 4 GB RAM each, running on version 6.2.3. Our elastic cloud cluster (cloud.elastic.co) fo…

---

## [Looking for recommended timeouts for ES client](https://discuss.elastic.co/t/looking-for-recommended-timeouts-for-es-client/149843)

<div class="topic-metadata">

**Author:** [@ronsher](https://discuss.elastic.co/u/ronsher)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 1:56pm UTC](https://discuss.elastic.co/t/looking-for-recommended-timeouts-for-es-client/149843 "2018-09-25T13:56:54Z")

</div>

Hi, We're using ES 5.3. I'm looking for recommended timeout settings that will allow to quickly figure out if any of the client nodes isn't operational but will allow for very slow queries. I find it hard to distinguish…

---

## [How to add more masters to a cluster of one master whilst avoiding split-brain and downtime?](https://discuss.elastic.co/t/how-to-add-more-masters-to-a-cluster-of-one-master-whilst-avoiding-split-brain-and-downtime/149458)

<div class="topic-metadata">

**Author:** [@elastico](https://discuss.elastic.co/u/elastico)\
**Replies:** 2\
**Last updated:** [September 25, 2018, 12:57pm UTC](https://discuss.elastic.co/t/how-to-add-more-masters-to-a-cluster-of-one-master-whilst-avoiding-split-brain-and-downtime/149458 "2018-09-25T12:57:36Z")

</div>

I have a three node cluster with 1 master-data node and 2 data-only nodes. I want to make this into a 3 master-data node cluster without any downtime. To this effect, I planned to do the following: First, set discover…

---

## [Slave node failed to connect with master (ELasticsearch Clustering)](https://discuss.elastic.co/t/slave-node-failed-to-connect-with-master-elasticsearch-clustering/149817)

<div class="topic-metadata">

**Author:** [@CheshtaS](https://discuss.elastic.co/u/CheshtaS)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 12:19pm UTC](https://discuss.elastic.co/t/slave-node-failed-to-connect-with-master-elasticsearch-clustering/149817 "2018-09-25T12:19:00Z")

</div>

Master Node cluster.name: development node.name: master node.master: true node.data: false path.data: /usr/local/data/elasticsearch path.logs: /usr/local/logs/elasticsearch network.host: 0.0.0.0 discovery.zen.pin…

---

## [Couldn't getting result on number search while searching through edge n gram Tokenizers](https://discuss.elastic.co/t/couldnt-getting-result-on-number-search-while-searching-through-edge-n-gram-tokenizers/149811)

<div class="topic-metadata">

**Author:** [@vaibhav\_goel](https://discuss.elastic.co/u/vaibhav_goel)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 11:23am UTC](https://discuss.elastic.co/t/couldnt-getting-result-on-number-search-while-searching-through-edge-n-gram-tokenizers/149811 "2018-09-25T11:23:46Z")

</div>

My setting is { "entity": { "settings": { "index": { "number\_of\_shards": "5", "provided\_name": "entity", "creation\_date": "1537872061172", "analysis": { "analyzer": { "autocomplete": { "filter": \[ "lowercase" \], "tokeni…

---

## [Fastest way to reindex from 2.3 to 6.4](https://discuss.elastic.co/t/fastest-way-to-reindex-from-2-3-to-6-4/148930)

<div class="topic-metadata">

**Author:** [@hamid\_bayat](https://discuss.elastic.co/u/hamid_bayat)\
**Replies:** 2\
**Last updated:** [September 25, 2018, 11:34am UTC](https://discuss.elastic.co/t/fastest-way-to-reindex-from-2-3-to-6-4/148930 "2018-09-25T11:34:50Z")

</div>

Hi we have 300TB indices 2.3.5 and we want to upgrade to elasticsearch 6.3. we set refresh interval to -1 replica to 0 request\_per\_second to -1 and we run 10 remote reindex API on 3 coordinator node. our tests sho…

---

## [What is search thread\_pool?](https://discuss.elastic.co/t/what-is-search-thread-pool/149800)

<div class="topic-metadata">

**Author:** [@hamid\_bayat](https://discuss.elastic.co/u/hamid_bayat)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 10:27am UTC](https://discuss.elastic.co/t/what-is-search-thread-pool/149800 "2018-09-25T10:27:05Z")

</div>

hi I have some question about thread\_pool. on \_cat/thread\_pool , when there is some "search thread\_pool rejected" on a node, what exactly missing in the search? some shards? or some doc? or fetch phase? or request? wh…

---

## [Elasticsearch unreachable from Logstash](https://discuss.elastic.co/t/elasticsearch-unreachable-from-logstash/149698)

<div class="topic-metadata">

**Author:** [@raphael\_d](https://discuss.elastic.co/u/raphael_d)\
**Replies:** 2\
**Last updated:** [September 25, 2018, 8:21am UTC](https://discuss.elastic.co/t/elasticsearch-unreachable-from-logstash/149698 "2018-09-25T08:21:38Z")

</div>

Hello everyone, I have searched for a long time for a solutios, but found none yet. When I run Logstash to connect to Elasticsearch through the local network, it is not working. I get the following message: Sep 24 12:…

---

## [Migrating to ECS - A few newbie questions](https://discuss.elastic.co/t/migrating-to-ecs-a-few-newbie-questions/149593)

<div class="topic-metadata">

**Author:** [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 9:42am UTC](https://discuss.elastic.co/t/migrating-to-ecs-a-few-newbie-questions/149593 "2018-09-25T09:42:15Z")

</div>

Hello All : I have some basic questions that I hope will help me get a better understanding of migrating our EC2 based stack to ECS. Any Input will help feed my understanding! Please note, I am NOT using Fargate ECS. J …

---

## [Prometheus Elasticsearch exporter fails after enabling X-Pack](https://discuss.elastic.co/t/prometheus-elasticsearch-exporter-fails-after-enabling-x-pack/149788)

<div class="topic-metadata">

**Author:** [@hegdedarsh](https://discuss.elastic.co/u/hegdedarsh)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 9:28am UTC](https://discuss.elastic.co/t/prometheus-elasticsearch-exporter-fails-after-enabling-x-pack/149788 "2018-09-25T09:28:57Z")

</div>

Hi, I enabled X-pack and now i cannot connect to elasticsearch exporter(prometheus) or elasticsearch dashboard in grafana .Can someone please let me know if there is workaround for this.

---

## [GeoPoint](https://discuss.elastic.co/t/geopoint/149462)

<div class="topic-metadata">

**Author:** [@Mheni](https://discuss.elastic.co/u/Mheni)\
**Replies:** 8\
**Last updated:** [September 25, 2018, 9:14am UTC](https://discuss.elastic.co/t/geopoint/149462 "2018-09-25T09:14:07Z")

</div>

Hello; My csv File contain two seperated ( with pipe) columns longititude and latitude ... How can i put them to a single GeoPoint Location?? PUT /GeoLoc { "mappings": { "doc": { "properties": {…

---

## [How to connect Logstash to elastic search cloud on aws](https://discuss.elastic.co/t/how-to-connect-logstash-to-elastic-search-cloud-on-aws/149785)

<div class="topic-metadata">

**Author:** [@prakhara](https://discuss.elastic.co/u/prakhara)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 9:04am UTC](https://discuss.elastic.co/t/how-to-connect-logstash-to-elastic-search-cloud-on-aws/149785 "2018-09-25T09:04:05Z")

</div>

How to connect Logstash to elastic search cloud on aws ??

---

## [Problem with ElasticsearchRepository](https://discuss.elastic.co/t/problem-with-elasticsearchrepository/149436)

<div class="topic-metadata">

**Author:** [@ritwik1994](https://discuss.elastic.co/u/ritwik1994)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 8:47am UTC](https://discuss.elastic.co/t/problem-with-elasticsearchrepository/149436 "2018-09-25T08:47:53Z")

</div>

I have made an entity in spring boot using @Document and @Entity annotation. Code goes like :- // Code @Entity @Document(indexName = "content", type = "doc") public class Content implements Serializable{ /\*\* \* \*/ priva…

---

## [Expecting another result(scoring) on function\_score](https://discuss.elastic.co/t/expecting-another-result-scoring-on-function-score/149782)

<div class="topic-metadata">

**Author:** [@Kurzer\_Patrick](https://discuss.elastic.co/u/Kurzer_Patrick)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 8:38am UTC](https://discuss.elastic.co/t/expecting-another-result-scoring-on-function-score/149782 "2018-09-25T08:38:53Z")

</div>

Hi everybody, I am wondering about the scoring of my query. I am using a function\_score on the field weight of my documents. If I search for the term wien two documents are coming from two indices. Here my query: GET …

---

## [Filebeat, Logstash, Elasticsearch and Kibana Upgrade](https://discuss.elastic.co/t/filebeat-logstash-elasticsearch-and-kibana-upgrade/149780)

<div class="topic-metadata">

**Author:** [@abhinav.dwivedi](https://discuss.elastic.co/u/abhinav.dwivedi)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 8:06am UTC](https://discuss.elastic.co/t/filebeat-logstash-elasticsearch-and-kibana-upgrade/149780 "2018-09-25T08:06:56Z")

</div>

Currently, we are using the filebeat, logstash, Elasticsearch and Kibana in our ELK stack in containerize platform. Current version: - Filebeat- 5.3.0 , Logstash- 2.4.0 ,elatsicsearch- 5.3.0 and kibana-5.3.0 . We want …

---

## [Elasticsearch- Fast Vector Highlightling](https://discuss.elastic.co/t/elasticsearch-fast-vector-highlightling/149467)

<div class="topic-metadata">

**Author:** [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 7:25am UTC](https://discuss.elastic.co/t/elasticsearch-fast-vector-highlightling/149467 "2018-09-25T07:25:27Z")

</div>

I am using Elasticsearch's highlighting feature in one of my projects. I am using fast vector highlighting(fvh) which is faster than plain type. I wish to know the disadvantages of using fvh type in elasticsearch highlig…

---

## [How to specify language Analyzer on CreateIndex using C#](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714)

<div class="topic-metadata">

**Author:** [@gdelgiovine](https://discuss.elastic.co/u/gdelgiovine)\
**Replies:** 2\
**Last updated:** [September 25, 2018, 7:23am UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714 "2018-09-25T07:23:27Z")

</div>

Using the C# Nest client (6.2.0) i need to set the Analyzer property to use one of the native Analyzers (italian, english, french ....). This is my code for CreateIndex var response = this.mysource.ElasticClient.Create…

---

## [Xpack SQL queries and returning record count](https://discuss.elastic.co/t/xpack-sql-queries-and-returning-record-count/149470)

<div class="topic-metadata">

**Author:** [@David\_Palmer](https://discuss.elastic.co/u/David_Palmer)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 6:27am UTC](https://discuss.elastic.co/t/xpack-sql-queries-and-returning-record-count/149470 "2018-09-25T06:27:51Z")

</div>

In our application, our primary use case is to create dynamic queries based on a user's input. Because of the complexity of standard elasticsearch queries, creating a dynamic SQL query is a much better approach. However…

---

## [IN equivalent operator in painless inline scripts](https://discuss.elastic.co/t/in-equivalent-operator-in-painless-inline-scripts/149634)

<div class="topic-metadata">

**Author:** [@shobhana](https://discuss.elastic.co/u/shobhana)\
**Replies:** 7\
**Last updated:** [September 25, 2018, 6:24am UTC](https://discuss.elastic.co/t/in-equivalent-operator-in-painless-inline-scripts/149634 "2018-09-25T06:24:10Z")

</div>

I want to achieve the equivalent of the following SQL query using inline scripts of ES (painless language) : where userId in (1, 2, 3) ----\> Here userId is a long field I tried with the following : POST ride/ride/\_…

---

## [Can Active Master election priority be decided?](https://discuss.elastic.co/t/can-active-master-election-priority-be-decided/149669)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 5:22am UTC](https://discuss.elastic.co/t/can-active-master-election-priority-be-decided/149669 "2018-09-25T05:22:09Z")

</div>

My setup: 1 Master node: Low RAM and CPU machine 2 Coordinating nodes (also eligible masters): Highly configured machines 2 Data nodes (One Replica)(RAID-0) Issue: By the master election process, any of the Master o…

---

## [ElasticSearch Licensing/Subscription](https://discuss.elastic.co/t/elasticsearch-licensing-subscription/149762)

<div class="topic-metadata">

**Author:** [@vishnuduttpv](https://discuss.elastic.co/u/vishnuduttpv)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 5:01am UTC](https://discuss.elastic.co/t/elasticsearch-licensing-subscription/149762 "2018-09-25T05:01:41Z")

</div>

Hi, Planning to subscribe for a licensed version of ES to use the x-pack features. When I made a quick R&D about the licensing, the ES subscription is managed per ES nodes. The ES team is recommending a three node arch…

---

## [How does size in a scan and scroll work?](https://discuss.elastic.co/t/how-does-size-in-a-scan-and-scroll-work/149758)

<div class="topic-metadata">

**Author:** [@prabhath](https://discuss.elastic.co/u/prabhath)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 4:06am UTC](https://discuss.elastic.co/t/how-does-size-in-a-scan-and-scroll-work/149758 "2018-09-25T04:06:31Z")

</div>

I was wondering how size in a scan and scroll request works? In the latest documentation, it specifies The size parameter allows you to configure the maximum number of hits to be returned with each batch of results. L…

---

## [Sending Data to Nodes](https://discuss.elastic.co/t/sending-data-to-nodes/149573)

<div class="topic-metadata">

**Author:** [@lkenetadmin](https://discuss.elastic.co/u/lkenetadmin)\
**Replies:** 10\
**Last updated:** [September 25, 2018, 2:42am UTC](https://discuss.elastic.co/t/sending-data-to-nodes/149573 "2018-09-25T02:42:59Z")

</div>

We have 2 data nodes but we want to use first node-2 until the storage is full then send the data to node-3. Is there anyway to address the way we want to send data to elasticsearch? Thank you.

---

## [How to index types correctly to be prepared for the future updates](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740)

<div class="topic-metadata">

**Author:** [@clickstream](https://discuss.elastic.co/u/clickstream)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 2:01am UTC](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740 "2018-09-25T02:01:01Z")

</div>

Hey guys I am learning Elasticsearch and some old tutorials suggest I should use types, I see that multiple types are not allowed anymore and found this announcement here: Multiple mapping types are not supported in ind…

---

## [What does \_search api stats tag do?](https://discuss.elastic.co/t/what-does-search-api-stats-tag-do/149750)

<div class="topic-metadata">

**Author:** [@antonioG](https://discuss.elastic.co/u/antonioG)\
**Replies:** 1\
**Last updated:** [September 25, 2018, 1:39am UTC](https://discuss.elastic.co/t/what-does-search-api-stats-tag-do/149750 "2018-09-25T01:39:09Z")

</div>

I am trying to collect data while a user is using the \_search API and I stumbled into a tag that can be put into the search query that might simplify everything for me but I can't find enough information on it. Does the…

---

## [Remove duplicate recods and get the smallest record id](https://discuss.elastic.co/t/remove-duplicate-recods-and-get-the-smallest-record-id/149731)

<div class="topic-metadata">

**Author:** [@venkat\_venkat](https://discuss.elastic.co/u/venkat_venkat)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 9:29pm UTC](https://discuss.elastic.co/t/remove-duplicate-recods-and-get-the-smallest-record-id/149731 "2018-09-24T21:29:42Z")

</div>

Assuming I have data like: rowid\_xfef,city,postal,address,name 1,c1,p1,a1,n1 2,c1,p1,a1,n1 3,c2,p2,a2,n2 4,c3,p3,a3,n3 5,c3,p3,a3,n3 6,c3,p3,a3,n3 I should match city,postal,address,and name and the record with l…

---

## [Email won't set up for alert](https://discuss.elastic.co/t/email-wont-set-up-for-alert/149608)

<div class="topic-metadata">

**Author:** [@mlbphilly](https://discuss.elastic.co/u/mlbphilly)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 8:58pm UTC](https://discuss.elastic.co/t/email-wont-set-up-for-alert/149608 "2018-09-24T20:58:38Z")

</div>

This has been a big Pita. In Kibana I just want to set up each Index I have to send an alert to my email. I put my email in the gui set up options already. However, when I try to choose email as an option it will not…

---

## [ES starts up, queries slow down, cluster crashes](https://discuss.elastic.co/t/es-starts-up-queries-slow-down-cluster-crashes/149734)

<div class="topic-metadata">

**Author:** [@hokiegeek2](https://discuss.elastic.co/u/hokiegeek2)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 8:44pm UTC](https://discuss.elastic.co/t/es-starts-up-queries-slow-down-cluster-crashes/149734 "2018-09-24T20:44:46Z")

</div>

Hi Everyone, I have a 5.6.4 cluster that I previously had issues starting up, due possibly to a fusillade of dangling index errors combined with relocation shards. I set cluster.routing.allocation.enable=none and that's…

---

## [For a cluster with only one master-eligible node, what happens when you set the quorum setting to 2?](https://discuss.elastic.co/t/for-a-cluster-with-only-one-master-eligible-node-what-happens-when-you-set-the-quorum-setting-to-2/149693)

<div class="topic-metadata">

**Author:** [@elastico](https://discuss.elastic.co/u/elastico)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 5:27pm UTC](https://discuss.elastic.co/t/for-a-cluster-with-only-one-master-eligible-node-what-happens-when-you-set-the-quorum-setting-to-2/149693 "2018-09-24T17:27:51Z")

</div>

Elasticsearch docs state: The discovery.zen.minimum\_master\_nodes sets the minimum number of master eligible nodes a node should "see" in order to win a master election. So for a cluster with only one master-eligible …

---

## [Pipeline processor script error](https://discuss.elastic.co/t/pipeline-processor-script-error/149508)

<div class="topic-metadata">

**Author:** [@vvelichkovich](https://discuss.elastic.co/u/vvelichkovich)\
**Replies:** 2\
**Last updated:** [September 24, 2018, 4:33pm UTC](https://discuss.elastic.co/t/pipeline-processor-script-error/149508 "2018-09-24T16:33:14Z")

</div>

I have pipeline script that seams it works fine when I script it from Kibana, and it looks like this: PUT \_ingest/pipeline/vv\_test { "description": "changing NaN", "processors": \[ { "script": { "source": """ if(…

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

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