# Elasticsearch

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

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

**Page:** 1975

---

## [Keep running into file permission problems when running elasticsearch automated tests on Windows](https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692)

<div class="topic-metadata">

**Author:** [@saralor](https://discuss.elastic.co/u/saralor)\
**Replies:** 0\
**Last updated:** [August 20, 2017, 4:07pm UTC](https://discuss.elastic.co/t/keep-running-into-file-permission-problems-when-running-elasticsearch-automated-tests-on-windows/97692 "2017-08-20T16:07:44Z")

</div>

After cloning the repo from Github, I’ve tried running the tests several times with gradle check, but every time, sooner or later I run into some kind of file permission problem: Caused by: java.nio.file.AccessDeniedExc…

---

## [How to remove old data without losing kibana dashboard?](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676)

<div class="topic-metadata">

**Author:** [@elhamsadat](https://discuss.elastic.co/u/elhamsadat)\
**Replies:** 1\
**Last updated:** [August 20, 2017, 3:57pm UTC](https://discuss.elastic.co/t/how-to-remove-old-data-without-losing-kibana-dashboard/97676 "2017-08-20T15:57:42Z")

</div>

Hi my elasticsearch server have limit storage and i had to remove ot archive old data from it. I removed some old data in path var/data/elasticsearch/node0/ but after restart kibana i had losed all of my dashboards and …

---

## [Elasticsearch 6.0.0-beta-1 -- forcing header feels like a regression](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672)

<div class="topic-metadata">

**Author:** [@pushshift](https://discuss.elastic.co/u/pushshift)\
**Replies:** 1\
**Last updated:** [August 20, 2017, 2:44pm UTC](https://discuss.elastic.co/t/elasticsearch-6-0-0-beta-1-forcing-header-feels-like-a-regression/97672 "2017-08-20T14:44:27Z")

</div>

I’ve been playing with the new Elasticsearch version and do a lot of commands via curl on the command line. However, I must now add ‘-H “Content-Type: application/json”’ to every curl command or else Elasticsearch will …

---

## [Search for specific symbols like %](https://discuss.elastic.co/t/search-for-specific-symbols-like/97350)

<div class="topic-metadata">

**Author:** [@Arthur\_Kushman](https://discuss.elastic.co/u/Arthur_Kushman)\
**Replies:** 8\
**Last updated:** [August 20, 2017, 12:40pm UTC](https://discuss.elastic.co/t/search-for-specific-symbols-like/97350 "2017-08-20T12:40:11Z")

</div>

We are using an ES in our project and can not find the answer or an example, how to search for ints with percent character, ex.: we place in query match “50%” ES found the 50 and 50%, as we thought it would be a special…

---

## [Elasticsearch url is redirecting after installing X-Pack](https://discuss.elastic.co/t/elasticsearch-url-is-redirecting-after-installing-x-pack/97663)

<div class="topic-metadata">

**Author:** [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Replies:** 5\
**Last updated:** [August 20, 2017, 2:32am UTC](https://discuss.elastic.co/t/elasticsearch-url-is-redirecting-after-installing-x-pack/97663 "2017-08-20T02:32:40Z")

</div>

After installing X-Pack http://elasticserver:9200/ prompts for Basic authentication and after providing elastic/changeme as username and password again it prompts for the credentials. Elasticsearch version: 5.4.3 X-Pa…

---

## [updateByQuery cluster state red](https://discuss.elastic.co/t/updatebyquery-cluster-state-red/97555)

<div class="topic-metadata">

**Author:** [@prigornitskiy](https://discuss.elastic.co/u/prigornitskiy)\
**Replies:** 3\
**Last updated:** [August 19, 2017, 1:45pm UTC](https://discuss.elastic.co/t/updatebyquery-cluster-state-red/97555 "2017-08-19T13:45:37Z")

</div>

Steps to reproduce: insert 45 000 000 documents run: let res = await client.updateByQuery({ index: config.get('index'), type: config.get('type'), slices: 5, waitForCompletion: false, conflicts: "proceed", requestTimeo…

---

## [Upgrading from 1.X to 5.X : FilterBuilders.notFilter](https://discuss.elastic.co/t/upgrading-from-1-x-to-5-x-filterbuilders-notfilter/97581)

<div class="topic-metadata">

**Author:** [@mahesh.maney](https://discuss.elastic.co/u/mahesh.maney)\
**Replies:** 1\
**Last updated:** [August 19, 2017, 1:37pm UTC](https://discuss.elastic.co/t/upgrading-from-1-x-to-5-x-filterbuilders-notfilter/97581 "2017-08-19T13:37:45Z")

</div>

Hi, I’m upgrading from 1.X to 5.X (finally …phew…) I’m facing an issue with FilterBuilder. At present (1.3.2) my code is FilterBuilders.notFilter(FilterBuilders.termFilter(key,value); How do i convert the above code…

---

## [\[security\_exception\] current license is non-compliant for \[security\], with { license.expired.feature="security" }](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351)

<div class="topic-metadata">

**Author:** [@KeithTt](https://discuss.elastic.co/u/KeithTt)\
**Replies:** 2\
**Last updated:** [August 19, 2017, 2:15am UTC](https://discuss.elastic.co/t/security-exception-current-license-is-non-compliant-for-security-with-license-expired-feature-security/97351 "2017-08-19T02:15:07Z")

</div>

ELK version: 5.5.1 I restart one of my ES node, and the ES cluster turns red and can't be accessed. \[security\_exception\] current license is non-compliant for \[security\], with { license.expired.feature="security" } wha…

---

## [Case insensitive sorting problem](https://discuss.elastic.co/t/case-insensitive-sorting-problem/96792)

<div class="topic-metadata">

**Author:** [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Replies:** 3\
**Last updated:** [August 18, 2017, 10:27pm UTC](https://discuss.elastic.co/t/case-insensitive-sorting-problem/96792 "2017-08-18T22:27:11Z")

</div>

Hi, I’d like to use the ducet sorting available from the icu plugin but am finding it difficult. Is there a definitive example somewhere? There’s problematic differences between the examples in the definitive guide (2.x…

---

## [Reindex api is not routing the document in destination index](https://discuss.elastic.co/t/reindex-api-is-not-routing-the-document-in-destination-index/96680)

<div class="topic-metadata">

**Author:** [@saurabh.jaluka](https://discuss.elastic.co/u/saurabh.jaluka)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 9:22pm UTC](https://discuss.elastic.co/t/reindex-api-is-not-routing-the-document-in-destination-index/96680 "2017-08-18T21:22:46Z")

</div>

Hi, I am trying to use reindex api to migrate data from index sites-v3 to sites-v5. Seems like the \_routing is not taking effect on dest index. Context: I am using ES v5.4.0, with 20 shards. I have 2 index sites-v3 and…

---

## [Does EdgeNGram Tokenizer internally optimize for a finite set of values regardless of document count?](https://discuss.elastic.co/t/does-edgengram-tokenizer-internally-optimize-for-a-finite-set-of-values-regardless-of-document-count/96478)

<div class="topic-metadata">

**Author:** [@Nithin\_Chandy](https://discuss.elastic.co/u/Nithin_Chandy)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 9:15pm UTC](https://discuss.elastic.co/t/does-edgengram-tokenizer-internally-optimize-for-a-finite-set-of-values-regardless-of-document-count/96478 "2017-08-18T21:15:58Z")

</div>

If there are only few possible values for a field, lets say max 20 possible values for a field, is it a good idea to use edgeNgram tokenizer for autocompletion? Just curious if EdgeNGram Tokenizer has any advantage over…

---

## [FIlter by array? sort by number of items in array](https://discuss.elastic.co/t/filter-by-array-sort-by-number-of-items-in-array/97073)

<div class="topic-metadata">

**Author:** [@Andrey\_Kaprov](https://discuss.elastic.co/u/Andrey_Kaprov)\
**Replies:** 3\
**Last updated:** [August 18, 2017, 8:37pm UTC](https://discuss.elastic.co/t/filter-by-array-sort-by-number-of-items-in-array/97073 "2017-08-18T20:37:09Z")

</div>

HI all! There is one problem that I have met: When I use filters when querying the elasticsearch I need to sort result documents by count of querried filters. I.e. I have some documents with array field “category”: \[…

---

## [Failed elasticsearch upgrade 2.3.4 -\> 5.5.0 , all shards is unassigned](https://discuss.elastic.co/t/failed-elasticsearch-upgrade-2-3-4-5-5-0-all-shards-is-unassigned/96949)

<div class="topic-metadata">

**Author:** [@EnglishVillage](https://discuss.elastic.co/u/EnglishVillage)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 8:29pm UTC](https://discuss.elastic.co/t/failed-elasticsearch-upgrade-2-3-4-5-5-0-all-shards-is-unassigned/96949 "2017-08-18T20:29:05Z")

</div>

es2.3.4 -\> es5.5.0 upgrade,shutdown old cluster and reboot new cluster, new cluster is running, but all shards is unassigned. env: es2.3.4:delete-by-query, head, jcseg, kopf, license, marvel-agent, sql es5.5.0:sql, he…

---

## [Why POST for partial update?](https://discuss.elastic.co/t/why-post-for-partial-update/96849)

<div class="topic-metadata">

**Author:** [@Nais777](https://discuss.elastic.co/u/Nais777)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 8:10pm UTC](https://discuss.elastic.co/t/why-post-for-partial-update/96849 "2017-08-18T20:10:04Z")

</div>

In REST, POST is typically used to create a resource while PUT and PATCH are used to replace the entire resource or partially update the resource. Why then, is POST used for a partial update of a resource? Even the Wikip…

---

## [Handling null in foreach with on\_failure](https://discuss.elastic.co/t/handling-null-in-foreach-with-on-failure/97629)

<div class="topic-metadata">

**Author:** [@loren](https://discuss.elastic.co/u/loren)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 7:49pm UTC](https://discuss.elastic.co/t/handling-null-in-foreach-with-on-failure/97629 "2017-08-18T19:49:08Z")

</div>

I have a pipeline where I split a field and then hand that off to a foreach processor. Sometimes the field is null. It appears that foreach throws an exception here regardless of whether I specify on\_failure: POST \_inge…

---

## [Elasticsearch OpenNLP Ingest Processor Question](https://discuss.elastic.co/t/elasticsearch-opennlp-ingest-processor-question/97043)

<div class="topic-metadata">

**Author:** [@brianz](https://discuss.elastic.co/u/brianz)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 7:05pm UTC](https://discuss.elastic.co/t/elasticsearch-opennlp-ingest-processor-question/97043 "2017-08-18T19:05:36Z")

</div>

Thank you spinscale for the Elasticsearch OpenNLP Ingest Processor. Awesome! I installed elasticsearch, installed the plugin, tested the plugin, and it works. –test –build $ curl -XPUT -i “localhost:9200/my\_index/”…

---

## [Error: Too Many Requests](https://discuss.elastic.co/t/error-too-many-requests/97314)

<div class="topic-metadata">

**Author:** [@Nithin\_Devang](https://discuss.elastic.co/u/Nithin_Devang)\
**Replies:** 3\
**Last updated:** [August 18, 2017, 6:54pm UTC](https://discuss.elastic.co/t/error-too-many-requests/97314 "2017-08-18T18:54:24Z")

</div>

Any idea when I get this error and any solution? Error: Too Many Requests at respond (/app/node\_modules/elasticsearch/src/lib/transport.js:307:15) at checkRespForFailure (/app/node\_modules/elasticsearch/src/lib/transp…

---

## [SSL Certs on different nodes](https://discuss.elastic.co/t/ssl-certs-on-different-nodes/97217)

<div class="topic-metadata">

**Author:** [@sancroth](https://discuss.elastic.co/u/sancroth)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 4:57pm UTC](https://discuss.elastic.co/t/ssl-certs-on-different-nodes/97217 "2017-08-18T16:57:54Z")

</div>

The last month we have set up an elk+rabbitmq setup that consists of 2 rabbitmq brokers 4 logstash and 1 elastic+kibana node. We wanna try out loadbalancing through rabbitmq’s to the logstash nodes and then forward to a…

---

## [Parent-child relationship "has\_child" bool issue](https://discuss.elastic.co/t/parent-child-relationship-has-child-bool-issue/97577)

<div class="topic-metadata">

**Author:** [@tom.coates](https://discuss.elastic.co/u/tom.coates)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 4:54pm UTC](https://discuss.elastic.co/t/parent-child-relationship-has-child-bool-issue/97577 "2017-08-18T16:54:12Z")

</div>

Hi, I am trying to find a property that has available resources for a given date range. A property can have many resources and a resource can have many reservations. I am using a parent-child relationship to join the …

---

## [Nested Query doesn't yield expected result](https://discuss.elastic.co/t/nested-query-doesnt-yield-expected-result/97489)

<div class="topic-metadata">

**Author:** [@Velusamy\_Velu](https://discuss.elastic.co/u/Velusamy_Velu)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 3:56pm UTC](https://discuss.elastic.co/t/nested-query-doesnt-yield-expected-result/97489 "2017-08-18T15:56:57Z")

</div>

I’m trying to understand some inconsistencies in search results. I’m attempting give all the necessary details. This post looks long (my apologies) due to JSON content. First the mapping: { "\_all":{ "enable…

---

## [Cant add \_size to mapping in elasticsearch 5.5](https://discuss.elastic.co/t/cant-add--size-to-mapping-in-elasticsearch-5-5/97605)

<div class="topic-metadata">

**Author:** [@aliyesami](https://discuss.elastic.co/u/aliyesami)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 4:08pm UTC](https://discuss.elastic.co/t/cant-add--size-to-mapping-in-elasticsearch-5-5/97605 "2017-08-18T16:08:54Z")

</div>

\[root@hadoop1 ~\]# curl -XPUT 'hadoop5:9200/lanetxn/txn\_details/\_mapping?pretty' -d ' { "mappings": { "txn\_dtails": { "\_size": { "enabled": true } } } } ' { "error" : { "root\_cause" : \[ { "type" : "mapper…

---

## [Possibility to not output intermediate aggregations](https://discuss.elastic.co/t/possibility-to-not-output-intermediate-aggregations/97082)

<div class="topic-metadata">

**Author:** [@Tobsucht](https://discuss.elastic.co/u/Tobsucht)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 3:53pm UTC](https://discuss.elastic.co/t/possibility-to-not-output-intermediate-aggregations/97082 "2017-08-18T15:53:53Z")

</div>

Hi, is there any possibility to NOT output the result of an intermediate aggregation? This seems to take a lot of time depending on the resultset. What I want to achieve is the following: I have a mapping for items, wh…

---

## [Restore operation can only be performed on snapshots with state "SUCCESS", or "PARTIAL" if partial=True](https://discuss.elastic.co/t/restore-operation-can-only-be-performed-on-snapshots-with-state-success-or-partial-if-partial-true/97455)

<div class="topic-metadata">

**Author:** [@xon](https://discuss.elastic.co/u/xon)\
**Replies:** 15\
**Last updated:** [August 18, 2017, 3:42pm UTC](https://discuss.elastic.co/t/restore-operation-can-only-be-performed-on-snapshots-with-state-success-or-partial-if-partial-true/97455 "2017-08-18T15:42:19Z")

</div>

I am getting the above error with curator. \> Restore operation can only be performed on snapshots with state "SUCCESS", or "PARTIAL" if partial=True. My action file is the below actions: 1: action: restore …

---

## [Basic Authentication using RestFilter](https://discuss.elastic.co/t/basic-authentication-using-restfilter/97051)

<div class="topic-metadata">

**Author:** [@arimoham](https://discuss.elastic.co/u/arimoham)\
**Replies:** 4\
**Last updated:** [August 18, 2017, 2:55pm UTC](https://discuss.elastic.co/t/basic-authentication-using-restfilter/97051 "2017-08-18T14:55:10Z")

</div>

I'm trying to implement basic authentication on elasticsearch using RestFilter as given in below post's: and https://qbox.io/blog/secure-elasticsearch-authentication-plugin-tutorial Looks like from version greater t…

---

## [Date\_histogram aggregation combined with sum aggregation](https://discuss.elastic.co/t/date-histogram-aggregation-combined-with-sum-aggregation/96621)

<div class="topic-metadata">

**Author:** [@daveli](https://discuss.elastic.co/u/daveli)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 2:53pm UTC](https://discuss.elastic.co/t/date-histogram-aggregation-combined-with-sum-aggregation/96621 "2017-08-18T14:53:43Z")

</div>

Hello all! I’m trying to do a date\_histogram along with a sum aggregation but this returns the value 0 on the sum. Query: { "size": 0, "query": { "bool": { "filter": { "term": { "articl…

---

## [Gateway.expected\_nodes and full cluster restart](https://discuss.elastic.co/t/gateway-expected-nodes-and-full-cluster-restart/97151)

<div class="topic-metadata">

**Author:** [@loren](https://discuss.elastic.co/u/loren)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 2:45pm UTC](https://discuss.elastic.co/t/gateway-expected-nodes-and-full-cluster-restart/97151 "2017-08-18T14:45:43Z")

</div>

In https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html, the docs say that these gateway settings must be set on all master nodes, but that they require a full cluster restart to take effe…

---

## [Query result differ / Scan and scroll result in very low performance using Python API](https://discuss.elastic.co/t/query-result-differ-scan-and-scroll-result-in-very-low-performance-using-python-api/97167)

<div class="topic-metadata">

**Author:** [@margies](https://discuss.elastic.co/u/margies)\
**Replies:** 1\
**Last updated:** [August 18, 2017, 2:20pm UTC](https://discuss.elastic.co/t/query-result-differ-scan-and-scroll-result-in-very-low-performance-using-python-api/97167 "2017-08-18T14:20:21Z")

</div>

Hi there! I am new to elasticsearch, so these might be stupid questions. The version in use is 2.3.5. The first problem I encountered is that I get different result by using Python API and by directly sending http req…

---

## [Slower indexing](https://discuss.elastic.co/t/slower-indexing/97275)

<div class="topic-metadata">

**Author:** [@Beuhlet\_Reseau](https://discuss.elastic.co/u/Beuhlet_Reseau)\
**Replies:** 8\
**Last updated:** [August 18, 2017, 2:08pm UTC](https://discuss.elastic.co/t/slower-indexing/97275 "2017-08-18T14:08:05Z")

</div>

Hello, With 5.5 stack version, i find indexing very slow. 2 600 000 messages / 15 minutes. Impossible for the stack to follow. Stack : 3 Els cluster (12 cpu-16 Go RAM), 1 logstash (24 cpu-24 Go RAM), 1 kibana

---

## [Error sending mail with attachment using x-pack](https://discuss.elastic.co/t/error-sending-mail-with-attachment-using-x-pack/97568)

<div class="topic-metadata">

**Author:** [@Prashant\_Agrawal](https://discuss.elastic.co/u/Prashant_Agrawal)\
**Replies:** 2\
**Last updated:** [August 18, 2017, 1:50pm UTC](https://discuss.elastic.co/t/error-sending-mail-with-attachment-using-x-pack/97568 "2017-08-18T13:50:49Z")

</div>

I am using x-pack to configure auto reporting of dashboard , for that I have created a watch and while executing the same I am getting below error: "reason": "Watch\[test\] reporting\[dashboard.pdf\] Error response when tr…

---

## [Testing Load capabilities of Elastic search](https://discuss.elastic.co/t/testing-load-capabilities-of-elastic-search/96064)

<div class="topic-metadata">

**Author:** [@sanketshinde](https://discuss.elastic.co/u/sanketshinde)\
**Replies:** 5\
**Last updated:** [August 18, 2017, 1:38pm UTC](https://discuss.elastic.co/t/testing-load-capabilities-of-elastic-search/96064 "2017-08-18T13:38:30Z")

</div>

I want to set up a test bench for elasticsearch. The idea is to deploy elastic search on Azure and test the instance for Big Data handling capabilities of elastic search. My question is, are there already such metrics t…

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

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