# Elasticsearch

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

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

**Page:** 1884

---

## [Restore a snapshot to diffrent alias](https://discuss.elastic.co/t/restore-a-snapshot-to-diffrent-alias/108278)

<div class="topic-metadata">

**Author:** [@Raid\_Rohana](https://discuss.elastic.co/u/Raid_Rohana)\
**Replies:** 3\
**Last updated:** [November 20, 2017, 6:53am UTC](https://discuss.elastic.co/t/restore-a-snapshot-to-diffrent-alias/108278 "2017-11-20T06:53:26Z")

</div>

I have a Jenkins job that restore snapshots based on alias name via curator utility However, such action will override the index data ! Is there a way to restore a snapshot to different alias name ? Can it be done via…

---

## [ElasticSearch\[5.5\] Aggs Range filter on string datatype](https://discuss.elastic.co/t/elasticsearch-5-5-aggs-range-filter-on-string-datatype/106400)

<div class="topic-metadata">

**Author:** [@satz](https://discuss.elastic.co/u/satz)\
**Replies:** 4\
**Last updated:** [November 20, 2017, 6:21am UTC](https://discuss.elastic.co/t/elasticsearch-5-5-aggs-range-filter-on-string-datatype/106400 "2017-11-20T06:21:58Z")

</div>

RAM field in Mobile specifications has lots of data which i need to apply some kind of Range filter on strings . I have formatted bucket into key value pair RAM and Doc count "RAM": { "1": 7, "32": 1, "32 MB": 490, …

---

## [Equivalent node js of ingest-attachment with elasticsearch](https://discuss.elastic.co/t/equivalent-node-js-of-ingest-attachment-with-elasticsearch/108316)

<div class="topic-metadata">

**Author:** [@Yann\_Nkengne](https://discuss.elastic.co/u/Yann_Nkengne)\
**Replies:** 0\
**Last updated:** [November 20, 2017, 5:23am UTC](https://discuss.elastic.co/t/equivalent-node-js-of-ingest-attachment-with-elasticsearch/108316 "2017-11-20T05:23:39Z")

</div>

Please I'm new with elasticsearch but I can say that I have some experience in node js.In elasticsearch documentation, this is the way to index pdf file in my case: PUT \_ingest/pipeline/attachment { "description" : "E…

---

## [SearchRequestBuilder.toString() : Print Non Pretty way](https://discuss.elastic.co/t/searchrequestbuilder-tostring-print-non-pretty-way/108312)

<div class="topic-metadata">

**Author:** [@Nakshathri](https://discuss.elastic.co/u/Nakshathri)\
**Replies:** 0\
**Last updated:** [November 20, 2017, 4:57am UTC](https://discuss.elastic.co/t/searchrequestbuilder-tostring-print-non-pretty-way/108312 "2017-11-20T04:57:37Z")

</div>

Hello There, We are using fluentd to analyse our application logs and have difficulties in parsing the log which gets printed when we use SearchRequestBuilder.toString(). This prints the query in pretty way which makes …

---

## [Compare count hits of current time vs last 5min](https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309)

<div class="topic-metadata">

**Author:** [@mrlnstpn](https://discuss.elastic.co/u/mrlnstpn)\
**Replies:** 0\
**Last updated:** [November 20, 2017, 4:03am UTC](https://discuss.elastic.co/t/compare-count-hits-of-current-time-vs-last-5min/108309 "2017-11-20T04:03:20Z")

</div>

I want to create an alert that would compare count hits of the current time vs the last 5min. then if lower than 70%-80% if will trigger an alert via email, etc. Does anybody here done the same? Thanks!

---

## [Failed to create S3 repository with ES 6.0](https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224)

<div class="topic-metadata">

**Author:** [@outcoldman](https://discuss.elastic.co/u/outcoldman)\
**Replies:** 10\
**Last updated:** [November 20, 2017, 2:16am UTC](https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224 "2017-11-20T02:16:24Z")

</div>

I used S3 repository with ES 5 fine without any issue. Used curl -s -XPUT 127.0.0.1:9200/\_snapshot/s3 -d "{ \\"type\\": \\"s3\\", \\"settings\\": { \\"bucket\\": \\"BUCKET\_NAME\\", …

---

## [How should a plugin authenticate with X-Pack?](https://discuss.elastic.co/t/how-should-a-plugin-authenticate-with-x-pack/108300)

<div class="topic-metadata">

**Author:** [@dnault](https://discuss.elastic.co/u/dnault)\
**Replies:** 0\
**Last updated:** [November 19, 2017, 10:24pm UTC](https://discuss.elastic.co/t/how-should-a-plugin-authenticate-with-x-pack/108300 "2017-11-19T22:24:52Z")

</div>

Users of the Couchbase transport plugin have reported the plugin is not compatible with X-Pack security. The plugin performs no special authentication, and interacts directly with the auto-injected org.elasticsearch.clie…

---

## [Order Mismatch in Update Operations](https://discuss.elastic.co/t/order-mismatch-in-update-operations/108243)

<div class="topic-metadata">

**Author:** [@panda2004](https://discuss.elastic.co/u/panda2004)\
**Replies:** 5\
**Last updated:** [November 19, 2017, 9:15pm UTC](https://discuss.elastic.co/t/order-mismatch-in-update-operations/108243 "2017-11-19T21:15:16Z")

</div>

Hey threre, Background: In our system events arrive in stream. In most cases, we just need to index (Add) the events to new or existsing documnts (Upsert Operation), however there is one event in which we need to updat…

---

## [How to check for total available disk space of the cluster?](https://discuss.elastic.co/t/how-to-check-for-total-available-disk-space-of-the-cluster/108141)

<div class="topic-metadata">

**Author:** [@javadevmtl](https://discuss.elastic.co/u/javadevmtl)\
**Replies:** 6\
**Last updated:** [November 19, 2017, 6:23pm UTC](https://discuss.elastic.co/t/how-to-check-for-total-available-disk-space-of-the-cluster/108141 "2017-11-19T18:23:18Z")

</div>

Hi, I have xpack installed I would like to see how much total disk space I have available vs total disk uses for the data nodes. I don't see a total "available" metric? Thanks

---

## [Backup strategy](https://discuss.elastic.co/t/backup-strategy/107382)

<div class="topic-metadata">

**Author:** [@shaharmor](https://discuss.elastic.co/u/shaharmor)\
**Replies:** 4\
**Last updated:** [November 19, 2017, 5:24pm UTC](https://discuss.elastic.co/t/backup-strategy/107382 "2017-11-19T17:24:50Z")

</div>

Hey, I’m looking for some answers in terms of backup strategy in ES I have a daily index that is being updated 2 times every hour, once at the half of the hour, and once at the end. (Each update is around 200k docs). I…

---

## [Bool Query Not Working as Expected](https://discuss.elastic.co/t/bool-query-not-working-as-expected/108228)

<div class="topic-metadata">

**Author:** [@mrbushid0](https://discuss.elastic.co/u/mrbushid0)\
**Replies:** 5\
**Last updated:** [November 19, 2017, 4:54pm UTC](https://discuss.elastic.co/t/bool-query-not-working-as-expected/108228 "2017-11-19T16:54:03Z")

</div>

I'm trying to write a simple query in ES 5.6.4 to be the equivalent of "SELECT \* FROM index WHERE Location LIKE '%Michigan%' OR Location LIKE '%Main%', and it's working but the second term in the "or" does not match as m…

---

## [Space requirement for 1.5TB of uncompressed text](https://discuss.elastic.co/t/space-requirement-for-1-5tb-of-uncompressed-text/108261)

<div class="topic-metadata">

**Author:** [@dance2die](https://discuss.elastic.co/u/dance2die)\
**Replies:** 4\
**Last updated:** [November 19, 2017, 3:50pm UTC](https://discuss.elastic.co/t/space-requirement-for-1-5tb-of-uncompressed-text/108261 "2017-11-19T15:50:40Z")

</div>

Hi, I have a MSSQL Server 2016 database table with 1.5TB of uncompressed text varchar(max) with an integer ID field. How much space would be required to copy the data from MSSQL Server to ElasticSearch (on Windows serve…

---

## [Failed to execute bulk item max length:2kb](https://discuss.elastic.co/t/failed-to-execute-bulk-item-max-length-2kb/108287)

<div class="topic-metadata">

**Author:** [@lintungwei](https://discuss.elastic.co/u/lintungwei)\
**Replies:** 2\
**Last updated:** [November 19, 2017, 3:13pm UTC](https://discuss.elastic.co/t/failed-to-execute-bulk-item-max-length-2kb/108287 "2017-11-19T15:13:43Z")

</div>

I'm using logstash + elasticsearch. both are 6.0.0 Elasticsearch output plugin is used for logstash to output a 147 fields document directly to Elasticsearch. Below is the error message : \[2017-11-19T21:56:44,196\]\[DEB…

---

## [Azure ARM Discovery Plugin missing](https://discuss.elastic.co/t/azure-arm-discovery-plugin-missing/108138)

<div class="topic-metadata">

**Author:** [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Replies:** 4\
**Last updated:** [November 19, 2017, 2:05pm UTC](https://discuss.elastic.co/t/azure-arm-discovery-plugin-missing/108138 "2017-11-19T14:05:30Z")

</div>

The docs in the Azure discovery plugin part say it's deprecated since 5.0,0 and "Use coming Azure ARM Discovery plugin instead" (see https://www.elastic.co/guide/en/elasticsearch/plugins/6.0/discovery-azure-classic.html)…

---

## [Nested type array size - performance considirations](https://discuss.elastic.co/t/nested-type-array-size-performance-considirations/108282)

<div class="topic-metadata">

**Author:** [@yonigo](https://discuss.elastic.co/u/yonigo)\
**Replies:** 0\
**Last updated:** [November 19, 2017, 12:37pm UTC](https://discuss.elastic.co/t/nested-type-array-size-performance-considirations/108282 "2017-11-19T12:37:33Z")

</div>

In the documentation it says that the default number of nested fields is 50. Does this refer to different fields in the document, or the number of objects in an array of a nested type? In my es cluster i have documents …

---

## [Script transform gives an internal server error in watcher](https://discuss.elastic.co/t/script-transform-gives-an-internal-server-error-in-watcher/107808)

<div class="topic-metadata">

**Author:** [@Sarra\_Bouhenni](https://discuss.elastic.co/u/Sarra_Bouhenni)\
**Replies:** 1\
**Last updated:** [November 19, 2017, 10:34am UTC](https://discuss.elastic.co/t/script-transform-gives-an-internal-server-error-in-watcher/107808 "2017-11-19T10:34:19Z")

</div>

Hello, I wanted to save aggregations results into a new indice to reduce real time calculations on Kibana, so I created a watcher that fetches the result of my pipelined aggregations (4 nested bucket arrays) into one l…

---

## [Unable to take snapshot on S3](https://discuss.elastic.co/t/unable-to-take-snapshot-on-s3/107880)

<div class="topic-metadata">

**Author:** [@jogaco](https://discuss.elastic.co/u/jogaco)\
**Replies:** 3\
**Last updated:** [November 19, 2017, 10:08am UTC](https://discuss.elastic.co/t/unable-to-take-snapshot-on-s3/107880 "2017-11-19T10:08:21Z")

</div>

Latests days I am getting this error while running a snapshot on S3 repository: { "error" : { "root\_cause" : \[ { "type" : "amazon\_client\_exception", "reason" : "Unable to execute HTTP request: connect timed o…

---

## [Not being able to switch off elasticsearch](https://discuss.elastic.co/t/not-being-able-to-switch-off-elasticsearch/108242)

<div class="topic-metadata">

**Author:** [@Anshuman\_Kirty](https://discuss.elastic.co/u/Anshuman_Kirty)\
**Replies:** 2\
**Last updated:** [November 19, 2017, 8:09am UTC](https://discuss.elastic.co/t/not-being-able-to-switch-off-elasticsearch/108242 "2017-11-19T08:09:49Z")

</div>

I am new to Elasticsearch and am not being able to switch it off and it continuously shows up in the task manager.\[2\]

---

## [Using doc in script but return in order](https://discuss.elastic.co/t/using-doc-in-script-but-return-in-order/108120)

<div class="topic-metadata">

**Author:** [@Canappeco](https://discuss.elastic.co/u/Canappeco)\
**Replies:** 2\
**Last updated:** [November 19, 2017, 3:41am UTC](https://discuss.elastic.co/t/using-doc-in-script-but-return-in-order/108120 "2017-11-19T03:41:51Z")

</div>

Hello all, I am using ES 5.6.3. I save some float array in a field named feature, and I want to use them in script. My mapping: "feature" : { "type" : "float", "index" : false }, But when I use script like d…

---

## [Accessing doc fields in a scoring script](https://discuss.elastic.co/t/accessing-doc-fields-in-a-scoring-script/108179)

<div class="topic-metadata">

**Author:** [@mk11](https://discuss.elastic.co/u/mk11)\
**Replies:** 3\
**Last updated:** [November 19, 2017, 3:34am UTC](https://discuss.elastic.co/t/accessing-doc-fields-in-a-scoring-script/108179 "2017-11-19T03:34:28Z")

</div>

I suspect there is an easy answer to this, but I've searched and not found an explanation. The problem is when I add a params block to my scoring function I can no longer access doc fields. For example (I'm using the R…

---

## [Geo distance aggregation on array location fields](https://discuss.elastic.co/t/geo-distance-aggregation-on-array-location-fields/105966)

<div class="topic-metadata">

**Author:** [@ESmonkey](https://discuss.elastic.co/u/ESmonkey)\
**Replies:** 4\
**Last updated:** [November 19, 2017, 12:08am UTC](https://discuss.elastic.co/t/geo-distance-aggregation-on-array-location-fields/105966 "2017-11-19T00:08:08Z")

</div>

Is it possible to get an exact term count on the number for location matches within one document. Eg Say I have location (geo\_point) indexed documents such as Document. 1 has location:\[latlon\_1, latlon\_2\] Document 2 h…

---

## [Elastic Cluster from Azure market place](https://discuss.elastic.co/t/elastic-cluster-from-azure-market-place/108244)

<div class="topic-metadata">

**Author:** [@HeadScratcher](https://discuss.elastic.co/u/HeadScratcher)\
**Replies:** 5\
**Last updated:** [November 18, 2017, 7:04pm UTC](https://discuss.elastic.co/t/elastic-cluster-from-azure-market-place/108244 "2017-11-18T19:04:38Z")

</div>

Hello all, Been a while since i posted here, but i got a bit of a head scratcher. i went and tested this rollout https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.elasticsearch?tab=Overview and it …

---

## [Elastic term filter not working when term contains /](https://discuss.elastic.co/t/elastic-term-filter-not-working-when-term-contains/107301)

<div class="topic-metadata">

**Author:** [@Amarnadh\_Meda](https://discuss.elastic.co/u/Amarnadh_Meda)\
**Replies:** 2\
**Last updated:** [November 18, 2017, 6:38pm UTC](https://discuss.elastic.co/t/elastic-term-filter-not-working-when-term-contains/107301 "2017-11-18T18:38:22Z")

</div>

Hi Team, I have some problem when I am doing filtering with term. Say for Example I have a field in my index called "customer\_id" the value is : LC/2089011 When I give to search for some other customer id like bool:{…

---

## [ElasticSearch - Geo Spatial search on location array](https://discuss.elastic.co/t/elasticsearch-geo-spatial-search-on-location-array/108210)

<div class="topic-metadata">

**Author:** [@athir.gillani](https://discuss.elastic.co/u/athir.gillani)\
**Replies:** 5\
**Last updated:** [November 18, 2017, 3:23pm UTC](https://discuss.elastic.co/t/elasticsearch-geo-spatial-search-on-location-array/108210 "2017-11-18T15:23:33Z")

</div>

Dear All, I am creating an index with two types Restaurant and Branch with Spring Data. Restaurant has many branches as nested type. When I create this mapping, Spring Data / ElasticSearch automatically converts the loca…

---

## [How to SSL with Elasticsearch Cloud](https://discuss.elastic.co/t/how-to-ssl-with-elasticsearch-cloud/108229)

<div class="topic-metadata">

**Author:** [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Replies:** 2\
**Last updated:** [November 18, 2017, 1:25pm UTC](https://discuss.elastic.co/t/how-to-ssl-with-elasticsearch-cloud/108229 "2017-11-18T13:25:49Z")

</div>

I cannot find any documentation on SSL using thr Elastic Cloud. I see in the documentation a hint at using the Java KeyStore, but there is nothing else on Elastic Cloud, Certificates and SSL. Any help out there?

---

## [X-pack license issue](https://discuss.elastic.co/t/x-pack-license-issue/108230)

<div class="topic-metadata">

**Author:** [@jagan](https://discuss.elastic.co/u/jagan)\
**Replies:** 2\
**Last updated:** [November 18, 2017, 10:17am UTC](https://discuss.elastic.co/t/x-pack-license-issue/108230 "2017-11-18T10:17:28Z")

</div>

Hi team, I am not able to update my 1 year free license though i already have registered for kibana to run but it shows 'Login is disable your license had expired'. I tried it with my already downloaded license file(.js…

---

## [\_default\_ mappings not being applied](https://discuss.elastic.co/t/default-mappings-not-being-applied/108216)

<div class="topic-metadata">

**Author:** [@Marty\_Loewenthal](https://discuss.elastic.co/u/Marty_Loewenthal)\
**Replies:** 1\
**Last updated:** [November 18, 2017, 10:06am UTC](https://discuss.elastic.co/t/default-mappings-not-being-applied/108216 "2017-11-18T10:06:07Z")

</div>

Hello. I am working on migrating from Elasticsearch 2.4 to 5.6.3. In ES 2.4 the default mappings for an index are inherited into my other types, as expected. I can prove that with a call to \<index\>/\_default\_/\_mapping/ a…

---

## [After upgrading to Elasticsearch 6 all primary shards are going to one server?](https://discuss.elastic.co/t/after-upgrading-to-elasticsearch-6-all-primary-shards-are-going-to-one-server/108172)

<div class="topic-metadata">

**Author:** [@Warren\_Turner](https://discuss.elastic.co/u/Warren_Turner)\
**Replies:** 2\
**Last updated:** [November 18, 2017, 9:58am UTC](https://discuss.elastic.co/t/after-upgrading-to-elasticsearch-6-all-primary-shards-are-going-to-one-server/108172 "2017-11-18T09:58:39Z")

</div>

Hey Everybody! (I'm having lots of fun with Elastic 6 if you all can't tell from all my posts :P) So my Elastic 6 cluster works, but it is doing this odd thing where when a new index is created it puts all the primary s…

---

## [Should Coordination Nodes be Allocated Shards?](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196)

<div class="topic-metadata">

**Author:** [@trumpet7347](https://discuss.elastic.co/u/trumpet7347)\
**Replies:** 3\
**Last updated:** [November 18, 2017, 9:57am UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196 "2017-11-18T09:57:13Z")

</div>

Hello, I currently have an Elasticsearch cluster setup on a docker swarm. To be able to access the cluster outside of the swarm, I setup a coordination node that maps the ports to the host machine. The issue I am seeing…

---

## [ELK Docker: Prebuild X-Pack not working](https://discuss.elastic.co/t/elk-docker-prebuild-x-pack-not-working/107640)

<div class="topic-metadata">

**Author:** [@n0wis](https://discuss.elastic.co/u/n0wis)\
**Replies:** 2\
**Last updated:** [November 18, 2017, 9:37am UTC](https://discuss.elastic.co/t/elk-docker-prebuild-x-pack-not-working/107640 "2017-11-18T09:37:06Z")

</div>

Hello ! i'm trying to build an Elastic Stack (alias ELK) with Docker and Docker-compose, but I'm blocking on issue with X-Pack, who's prebuild into Docker's images. i'm using officials images: docker/elk/elasticsearch…

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

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