# Elasticsearch

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

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

**Page:** 1970

---

## [ES Cluster State Red - cannot allocate because allocation is not permitted to any of the nodes that hold an in-sync shard copy](https://discuss.elastic.co/t/es-cluster-state-red-cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes-that-hold-an-in-sync-shard-copy/98219)

<div class="topic-metadata">

**Author:** [@akshaymaniyar](https://discuss.elastic.co/u/akshaymaniyar)\
**Replies:** 4\
**Last updated:** [August 24, 2017, 5:13pm UTC](https://discuss.elastic.co/t/es-cluster-state-red-cannot-allocate-because-allocation-is-not-permitted-to-any-of-the-nodes-that-hold-an-in-sync-shard-copy/98219 "2017-08-24T17:13:07Z")

</div>

JVM version: java version “1.8.0\_05” ES version :5.5.1 Plugins installed: \[repository-gcs, repository-s3, x-pack, repository-azure\] I have a cluster of 106 nodes. One of the shards suddenly went to red state. Master…

---

## [How to use minimum should match](https://discuss.elastic.co/t/how-to-use-minimum-should-match/98223)

<div class="topic-metadata">

**Author:** [@amitkumar](https://discuss.elastic.co/u/amitkumar)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 4:41pm UTC](https://discuss.elastic.co/t/how-to-use-minimum-should-match/98223 "2017-08-24T16:41:17Z")

</div>

Hi, I am using minimum\_should\_match for searching in percent.but every percent value like 20% or 50% or 90% it is giving same number of records. Please anyone can explain how it is working.

---

## [Enable scripting](https://discuss.elastic.co/t/enable-scripting/98252)

<div class="topic-metadata">

**Author:** [@Ben3](https://discuss.elastic.co/u/Ben3)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 2:49pm UTC](https://discuss.elastic.co/t/enable-scripting/98252 "2017-08-24T14:49:37Z")

</div>

Hi there, In order to enable inline scripting… I updated the conifguration, and then restarted my cluster (ca0c0d37806dbc…). But it seems like the configuration has not been picked up. I still get a 400 error (“script…

---

## [Calculate result count with selectable filters](https://discuss.elastic.co/t/calculate-result-count-with-selectable-filters/98208)

<div class="topic-metadata">

**Author:** [@habtim](https://discuss.elastic.co/u/habtim)\
**Replies:** 3\
**Last updated:** [August 24, 2017, 2:43pm UTC](https://discuss.elastic.co/t/calculate-result-count-with-selectable-filters/98208 "2017-08-24T14:43:57Z")

</div>

Hi everyone, What im currently trying to get to work is the following: We have an results page with on the left some areas with selectable terms for filtering, for example: search query = test total results = 80 Cit…

---

## [How to improve query speed](https://discuss.elastic.co/t/how-to-improve-query-speed/98118)

<div class="topic-metadata">

**Author:** [@adyjayex](https://discuss.elastic.co/u/adyjayex)\
**Replies:** 6\
**Last updated:** [August 24, 2017, 2:37pm UTC](https://discuss.elastic.co/t/how-to-improve-query-speed/98118 "2017-08-24T14:37:24Z")

</div>

Greetings, Any advice into how to improve query speed for a specific use case would be greatly appreciated! We currently have a cluster of 2 nodes (1 master and data, 1 data only), both running on AWS machines with the…

---

## [Index using Elasticsearch.py](https://discuss.elastic.co/t/index-using-elasticsearch-py/98174)

<div class="topic-metadata">

**Author:** [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 1:44pm UTC](https://discuss.elastic.co/t/index-using-elasticsearch-py/98174 "2017-08-24T13:44:00Z")

</div>

I want to reindex some data from other server to my new server. I want to use python script for this. I use the elasticsearch.py plugin. Does anyone here tried this? I have a defficulty with regards to the body of the…

---

## [ElasticSearch using SSIS](https://discuss.elastic.co/t/elasticsearch-using-ssis/98202)

<div class="topic-metadata">

**Author:** [@David\_Thomas](https://discuss.elastic.co/u/David_Thomas)\
**Replies:** 1\
**Last updated:** [August 24, 2017, 1:38pm UTC](https://discuss.elastic.co/t/elasticsearch-using-ssis/98202 "2017-08-24T13:38:14Z")

</div>

I am new to elasticsearch, I don’t know how can I load data from SQL Server with elasticsearch? its urgent to me so please recommend me the tutorial to explain how? Thank a lot in advance …

---

## [NEST search -\> String was not recognized as a valid DateTime](https://discuss.elastic.co/t/nest-search-string-was-not-recognized-as-a-valid-datetime/98237)

<div class="topic-metadata">

**Author:** [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 1:09pm UTC](https://discuss.elastic.co/t/nest-search-string-was-not-recognized-as-a-valid-datetime/98237 "2017-08-24T13:09:57Z")

</div>

i have been using this NEST search for months and has been working great, but now i am getting this error and doesnt return any document. I guess some new document has a invalid timestamp value but why one corrupt docume…

---

## [Problem understanding phrase matching with stop words](https://discuss.elastic.co/t/problem-understanding-phrase-matching-with-stop-words/97847)

<div class="topic-metadata">

**Author:** [@wmjb](https://discuss.elastic.co/u/wmjb)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 11:48am UTC](https://discuss.elastic.co/t/problem-understanding-phrase-matching-with-stop-words/97847 "2017-08-24T11:48:46Z")

</div>

Hi, I have mapped an index as follows PUT test { "settings": { "index": { "number\_of\_shards": 1, "analysis": { "analyzer": { "english": { "tokenizer": "standard", …

---

## [Elasticsearch Java Mapping Builder](https://discuss.elastic.co/t/elasticsearch-java-mapping-builder/98216)

<div class="topic-metadata">

**Author:** [@frekele](https://discuss.elastic.co/u/frekele)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 11:06am UTC](https://discuss.elastic.co/t/elasticsearch-java-mapping-builder/98216 "2017-08-24T11:06:59Z")

</div>

Hello guys, I come here to try to contribute to the open source community. I looked for a way to generate the mappings to use before indexing without typing json files. I wanted something I do not need to worry about t…

---

## [Query for all logs that term X is "" (empty String)](https://discuss.elastic.co/t/query-for-all-logs-that-term-x-is-empty-string/98210)

<div class="topic-metadata">

**Author:** [@tomer](https://discuss.elastic.co/u/tomer)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 10:35am UTC](https://discuss.elastic.co/t/query-for-all-logs-that-term-x-is-empty-string/98210 "2017-08-24T10:35:19Z")

</div>

Hi, How can I make a query that will show me the logs that have a term called X and the value inside is “” (a String who’s length is 0 but not null)?

---

## [Sale Amount Per Second in a Five Minute Window](https://discuss.elastic.co/t/sale-amount-per-second-in-a-five-minute-window/98199)

<div class="topic-metadata">

**Author:** [@gringo](https://discuss.elastic.co/u/gringo)\
**Replies:** 5\
**Last updated:** [August 24, 2017, 10:30am UTC](https://discuss.elastic.co/t/sale-amount-per-second-in-a-five-minute-window/98199 "2017-08-24T10:30:21Z")

</div>

I am trying to get the total amount of sale divide by 300 secs to get the sale amount per second in a five minute window I am so far only able to construct the query until here. There seems to be no way to do a division…

---

## [Elasticsearch results per page](https://discuss.elastic.co/t/elasticsearch-results-per-page/98155)

<div class="topic-metadata">

**Author:** [@Akhil\_Prashar](https://discuss.elastic.co/u/Akhil_Prashar)\
**Replies:** 7\
**Last updated:** [August 24, 2017, 9:58am UTC](https://discuss.elastic.co/t/elasticsearch-results-per-page/98155 "2017-08-24T09:58:14Z")

</div>

Hi guys, I want to display 20 results in a single page and then I want a next page option for next 20 results and so on. I shall be really thankful to you if you can help me with this.

---

## [How to create alert when some component stopped to send data](https://discuss.elastic.co/t/how-to-create-alert-when-some-component-stopped-to-send-data/98048)

<div class="topic-metadata">

**Author:** [@Vitaly\_il](https://discuss.elastic.co/u/Vitaly_il)\
**Replies:** 3\
**Last updated:** [August 24, 2017, 9:54am UTC](https://discuss.elastic.co/t/how-to-create-alert-when-some-component-stopped-to-send-data/98048 "2017-08-24T09:54:56Z")

</div>

I’m thinking about using X-Pack Watcher for alerting when some of our components stopped to send data to ELK. I.e. there is no new data from certain source recently. There is quick&dirty solution by just create indivi…

---

## [MoreLikeThis and unified highlighter](https://discuss.elastic.co/t/morelikethis-and-unified-highlighter/97792)

<div class="topic-metadata">

**Author:** [@philv](https://discuss.elastic.co/u/philv)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 9:43am UTC](https://discuss.elastic.co/t/morelikethis-and-unified-highlighter/97792 "2017-08-24T09:43:26Z")

</div>

When I use an MLT query and the unified highlighter I don’t get highlighting. It works with the plain highlighter. I was just wondering whether the unified highlighter isn’t yet meant to work with specialised queries s…

---

## [Problem With ES Upgrade(2.x to 5.x)](https://discuss.elastic.co/t/problem-with-es-upgrade-2-x-to-5-x/98065)

<div class="topic-metadata">

**Author:** [@abhiCR7](https://discuss.elastic.co/u/abhiCR7)\
**Replies:** 4\
**Last updated:** [August 24, 2017, 9:30am UTC](https://discuss.elastic.co/t/problem-with-es-upgrade-2-x-to-5-x/98065 "2017-08-24T09:30:27Z")

</div>

I have currently v2.4 Elasticsearch in production and in process to upgrade it to v5.5. I’m facing problem with index.mapping.total\_fields.limit: 1000 index.mapping.nested\_fields.limit: 50 My current total fields is …

---

## [Update of ELK stack](https://discuss.elastic.co/t/update-of-elk-stack/98156)

<div class="topic-metadata">

**Author:** [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)\
**Replies:** 5\
**Last updated:** [August 24, 2017, 9:06am UTC](https://discuss.elastic.co/t/update-of-elk-stack/98156 "2017-08-24T09:06:58Z")

</div>

Hi, I am using below versions of ELK Elasticsearch 1.5 Logstash 1.5.3 Kibana 4.0.0 filebeat 1.2.1 I am planning to upgrade ELK and FB versions . Please suggest me which one should I go for now? What new features I…

---

## [What is the alternatives to NodeClient(NodeBuilder)](https://discuss.elastic.co/t/what-is-the-alternatives-to-nodeclient-nodebuilder/95926)

<div class="topic-metadata">

**Author:** [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Replies:** 5\
**Last updated:** [August 24, 2017, 7:44am UTC](https://discuss.elastic.co/t/what-is-the-alternatives-to-nodeclient-nodebuilder/95926 "2017-08-24T07:44:39Z")

</div>

We try to move our ES from 1.7 to 5.4 and I found this article https://www.elastic.co/blog/elasticsearch-the-server It seems to me we cannot use Embedded Elasticsearch anymore like what we used to start our application…

---

## [Enabling TLS on 5.5.2, how to verify](https://discuss.elastic.co/t/enabling-tls-on-5-5-2-how-to-verify/97999)

<div class="topic-metadata">

**Author:** [@Kim-Kruse-Hansen](https://discuss.elastic.co/u/Kim-Kruse-Hansen)\
**Replies:** 5\
**Last updated:** [August 24, 2017, 7:33am UTC](https://discuss.elastic.co/t/enabling-tls-on-5-5-2-how-to-verify/97999 "2017-08-24T07:33:41Z")

</div>

Hi I wanted to try out enabling TLS on a 3 node ELK 5.5.2 cluster. So I created a CSR with certgen and issued a certificate from our PKI. All good so far,. I have these settings in my elasticsearch.yml xpack.security.…

---

## [X-pack-env.bat is missing?](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033)

<div class="topic-metadata">

**Author:** [@MartinBr](https://discuss.elastic.co/u/MartinBr)\
**Replies:** 2\
**Last updated:** [August 24, 2017, 6:07am UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033 "2017-08-24T06:07:46Z")

</div>

Hello, While trying to setup an environment with Elastic 6.0.0 beta1. I am struggling with the new command setup-passwords that on my windows server seems to be missing a x-pack-env.bat file… Am I doing something wron…

---

## [Elasticsearch and angular js](https://discuss.elastic.co/t/elasticsearch-and-angular-js/98142)

<div class="topic-metadata">

**Author:** [@pgw5540](https://discuss.elastic.co/u/pgw5540)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 1:35am UTC](https://discuss.elastic.co/t/elasticsearch-and-angular-js/98142 "2017-08-24T01:35:19Z")

</div>

Hi i wondering that ploblem so i want ask somebody so please give me solution? I make html file like that photo but when i open this html file this file not working.... any data not diplay what is the ploblem in …

---

## [Code python Elastalert get data from Elasticsearch](https://discuss.elastic.co/t/code-python-elastalert-get-data-from-elasticsearch/98148)

<div class="topic-metadata">

**Author:** [@VuThaiBao](https://discuss.elastic.co/u/VuThaiBao)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 3:22am UTC](https://discuss.elastic.co/t/code-python-elastalert-get-data-from-elasticsearch/98148 "2017-08-24T03:22:50Z")

</div>

I want to edit some code python in Elastalert to do something I expect, but I can find where is the code python Elastalert get data from Elasticsearch. Can you help me! Thanks

---

## [Accessing TopDocs from a LeafScoreFunction](https://discuss.elastic.co/t/accessing-topdocs-from-a-leafscorefunction/96336)

<div class="topic-metadata">

**Author:** [@ethanroseman](https://discuss.elastic.co/u/ethanroseman)\
**Replies:** 12\
**Last updated:** [August 11, 2017, 7:49pm UTC](https://discuss.elastic.co/t/accessing-topdocs-from-a-leafscorefunction/96336 "2017-08-11T19:49:39Z")

</div>

My name is Ethan Roseman, and I’m a developer at Basis Technology. We work on an Elasticsearch plugin that integrates our product, RNI (https://www.basistech.com/text-analytics/rosette/name-indexer/). With our plugin, w…

---

## [Elasticsearch 5.3, how to make keyword type not analyzed](https://discuss.elastic.co/t/elasticsearch-5-3-how-to-make-keyword-type-not-analyzed/98132)

<div class="topic-metadata">

**Author:** [@sharon.c](https://discuss.elastic.co/u/sharon.c)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 9:23pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-how-to-make-keyword-type-not-analyzed/98132 "2017-08-23T21:23:54Z")

</div>

I am using elasticsearch 5.3, here is my definition of index template: PUT /\_template/mytemplate { "template": "myindex\_\*", "order" : 1, "settings": { "number\_of\_shards" : 1, "numb…

---

## [Longest match in string/array](https://discuss.elastic.co/t/longest-match-in-string-array/98121)

<div class="topic-metadata">

**Author:** [@prarabdh9909](https://discuss.elastic.co/u/prarabdh9909)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 9:22pm UTC](https://discuss.elastic.co/t/longest-match-in-string-array/98121 "2017-08-23T21:22:58Z")

</div>

I am planning to use ES for storing tracebacks of exceptions such as: \[a/b/c/d/func/line, e/f/g/h/func/line, i/j/k/l/func/line\] Now, for any incoming tracebacks, I want to rank the results based on which document match…

---

## [Elastic search disk usage](https://discuss.elastic.co/t/elastic-search-disk-usage/98119)

<div class="topic-metadata">

**Author:** [@fhalde](https://discuss.elastic.co/u/fhalde)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 9:10pm UTC](https://discuss.elastic.co/t/elastic-search-disk-usage/98119 "2017-08-23T21:10:47Z")

</div>

Hi Just wanted to know how elastic search calculates nodes disk usage when the following query is hit a.b.c.d:9200/\_nodes/stats "fs": { "timestamp": 1503512623603, "total": { …

---

## [Order of \_bulk request operations](https://discuss.elastic.co/t/order-of--bulk-request-operations/98124)

<div class="topic-metadata">

**Author:** [@ndev](https://discuss.elastic.co/u/ndev)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 9:09pm UTC](https://discuss.elastic.co/t/order-of--bulk-request-operations/98124 "2017-08-23T21:09:26Z")

</div>

Is the order a bulk request guaranteed? I am making Nest calls from C# by using the BulkDescriptor to perform both inserts, updates, and deletes against a 2 node cluster. I wrote a simple application testing whether or n…

---

## [Setting up elastic search master and data node configuration in two different servers](https://discuss.elastic.co/t/setting-up-elastic-search-master-and-data-node-configuration-in-two-different-servers/98012)

<div class="topic-metadata">

**Author:** [@virat](https://discuss.elastic.co/u/virat)\
**Replies:** 1\
**Last updated:** [August 23, 2017, 5:33pm UTC](https://discuss.elastic.co/t/setting-up-elastic-search-master-and-data-node-configuration-in-two-different-servers/98012 "2017-08-23T17:33:20Z")

</div>

I have two elasticsearch running on two different servers, I have same indexes on both servers. I want to have a master and data node configuration, for that below are the configuration changes which I did so far: Maste…

---

## [ES 1.7.5 Heap filling up, Leaves cluster due to long GC](https://discuss.elastic.co/t/es-1-7-5-heap-filling-up-leaves-cluster-due-to-long-gc/97315)

<div class="topic-metadata">

**Author:** [@dendle](https://discuss.elastic.co/u/dendle)\
**Replies:** 2\
**Last updated:** [August 23, 2017, 4:01pm UTC](https://discuss.elastic.co/t/es-1-7-5-heap-filling-up-leaves-cluster-due-to-long-gc/97315 "2017-08-23T16:01:20Z")

</div>

Hello All! I have been using ES 1.7.5 in production for a while now, and have been struggling with a problem. (13 nodes, 508 indices, 3,072 shards, 487,592,574 docs 498.01GB) It appears to go like this: Heap normally…

---

## [Elasticsearch 6.0-beta1 - Boosting](https://discuss.elastic.co/t/elasticsearch-6-0-beta1-boosting/97049)

<div class="topic-metadata">

**Author:** [@p365labs](https://discuss.elastic.co/u/p365labs)\
**Replies:** 14\
**Last updated:** [August 23, 2017, 4:01pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-beta1-boosting/97049 "2017-08-23T16:01:09Z")

</div>

Hi All ! I found some different behaviours between ES 5 and ES 6 on query Boosting but I did not find anything in the documentation about this change. Can someone help me ? The RESULTS are the SAME but the \_score value…

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

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