# Elasticsearch

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

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

**Page:** 1817

---

## [X-Pack Basic License Installation](https://discuss.elastic.co/t/x-pack-basic-license-installation/116899)

<div class="topic-metadata">

**Author:** [@elJoeyJojo](https://discuss.elastic.co/u/elJoeyJojo)\
**Replies:** 7\
**Last updated:** [January 24, 2018, 10:30pm UTC](https://discuss.elastic.co/t/x-pack-basic-license-installation/116899 "2018-01-24T22:30:57Z")

</div>

Setup X-Pack and only wanna use Basic so I try to follow the instructions but nope, nothing works. Tried with the "elastic" "kibana" and even an "admin" user account I created with "superuser" role inside ElasticSearch a…

---

## [Configure Slack/Email Action on Watch failing - yml issue](https://discuss.elastic.co/t/configure-slack-email-action-on-watch-failing-yml-issue/115851)

<div class="topic-metadata">

**Author:** [@Joff](https://discuss.elastic.co/u/Joff)\
**Replies:** 9\
**Last updated:** [January 24, 2018, 7:46pm UTC](https://discuss.elastic.co/t/configure-slack-email-action-on-watch-failing-yml-issue/115851 "2018-01-24T19:46:03Z")

</div>

Hi, I'm trying to configure Slack Action in Watcher but every time I update the elasticsearch.yml as per https://www.elastic.co/guide/en/x-pack/current/actions-slack.html#configuring-slack my node gets offline I edited…

---

## [How do I handle mapping explosion?](https://discuss.elastic.co/t/how-do-i-handle-mapping-explosion/116914)

<div class="topic-metadata">

**Author:** [@zachy](https://discuss.elastic.co/u/zachy)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 7:40pm UTC](https://discuss.elastic.co/t/how-do-i-handle-mapping-explosion/116914 "2018-01-24T19:40:28Z")

</div>

I understand that the default index number is 1000, and that increasing it can work in the short term, but is not a viable long term solution, especially if there is a spike in the ingestion of data. I haven't seen any …

---

## [Creating index versions](https://discuss.elastic.co/t/creating-index-versions/116917)

<div class="topic-metadata">

**Author:** [@rubend](https://discuss.elastic.co/u/rubend)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 7:32pm UTC](https://discuss.elastic.co/t/creating-index-versions/116917 "2018-01-24T19:32:18Z")

</div>

I’m trying to test alternative index & document structures to determine which performs best using our existing data. To do this I want to: select specific documents from one index (prefer not take entire index contents…

---

## [ELK stack elasticsrearch index issue](https://discuss.elastic.co/t/elk-stack-elasticsrearch-index-issue/116861)

<div class="topic-metadata">

**Author:** [@shufil](https://discuss.elastic.co/u/shufil)\
**Replies:** 8\
**Last updated:** [January 24, 2018, 6:48pm UTC](https://discuss.elastic.co/t/elk-stack-elasticsrearch-index-issue/116861 "2018-01-24T18:48:58Z")

</div>

I have installed ELK to analyze our log files in ubuntu 14, using nginx - kibana - elasticsearch -logstsh --- logstash client server (filebeate) nginx connected to kibana with port 5601 ,and elasticsearch.yml is running …

---

## [\[6.1.1\] User Management: Field/Document Level Security + Multi-Tenancy](https://discuss.elastic.co/t/6-1-1-user-management-field-document-level-security-multi-tenancy/114960)

<div class="topic-metadata">

**Author:** [@gmatheus](https://discuss.elastic.co/u/gmatheus)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 6:32pm UTC](https://discuss.elastic.co/t/6-1-1-user-management-field-document-level-security-multi-tenancy/114960 "2018-01-24T18:32:38Z")

</div>

Hello! I'm having some issues configuring users and roles using Kibana 6.1.1 + X-Pack. Here's my config: User: { "limited-user": { "username": "limited-user", "roles": \[ "limited-user", "kibana…

---

## [Cluster Blackout](https://discuss.elastic.co/t/cluster-blackout/116886)

<div class="topic-metadata">

**Author:** [@Junaid03](https://discuss.elastic.co/u/Junaid03)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 3:42pm UTC](https://discuss.elastic.co/t/cluster-blackout/116886 "2018-01-24T15:42:17Z")

</div>

Recently one of my nodes which was running on a 2g memory set for both Xms and Xmx, went crazy doing gc: \[2018-01-21T21:29:05,958\]\[WARN \]\[o.e.m.j.JvmGcMonitorService\] \[NVMBD2BFM70V03\] \[gc\]\[young\]\[4109765\]\[392598\] durati…

---

## [Update Document in Elasticsearch using spark 1.6](https://discuss.elastic.co/t/update-document-in-elasticsearch-using-spark-1-6/116378)

<div class="topic-metadata">

**Author:** [@Gunjit\_Bansal](https://discuss.elastic.co/u/Gunjit_Bansal)\
**Replies:** 4\
**Last updated:** [January 24, 2018, 3:39pm UTC](https://discuss.elastic.co/t/update-document-in-elasticsearch-using-spark-1-6/116378 "2018-01-24T15:39:00Z")

</div>

Hi, How to update any document in elasticsearch using spark 1.6

---

## [Error job spark streaming elasticsearch](https://discuss.elastic.co/t/error-job-spark-streaming-elasticsearch/116358)

<div class="topic-metadata">

**Author:** [@Jyounes](https://discuss.elastic.co/u/Jyounes)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 3:34pm UTC](https://discuss.elastic.co/t/error-job-spark-streaming-elasticsearch/116358 "2018-01-24T15:34:53Z")

</div>

hello, I am getting error while using kafka ---\> job streaming spark -----\> save to Elasticsearch 18/01/17 22:11:44 INFO HttpMethodDirector: Retrying request 18/01/17 22:13:51 INFO HttpMethodDirector: I/O exception (j…

---

## [Nested Filter Problem](https://discuss.elastic.co/t/nested-filter-problem/116351)

<div class="topic-metadata">

**Author:** [@awakevzla](https://discuss.elastic.co/u/awakevzla)\
**Replies:** 6\
**Last updated:** [January 24, 2018, 2:54pm UTC](https://discuss.elastic.co/t/nested-filter-problem/116351 "2018-01-24T14:54:49Z")

</div>

Hi everyone, i am facing a problem implementing nested query on my elasticsearch 5.6 cluster. I've this mapping: { "my\_test": { "mappings": { "co\_product": { "properties": { …

---

## [Exception while retrieving instance list from AWS API: Unable to execute HTTP request: us-west-2](https://discuss.elastic.co/t/exception-while-retrieving-instance-list-from-aws-api-unable-to-execute-http-request-us-west-2/116772)

<div class="topic-metadata">

**Author:** [@klahnakoski](https://discuss.elastic.co/u/klahnakoski)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 2:39pm UTC](https://discuss.elastic.co/t/exception-while-retrieving-instance-list-from-aws-api-unable-to-execute-http-request-us-west-2/116772 "2018-01-24T14:39:31Z")

</div>

I hope someone can help point out where I got my config file wrong. Thank you! I am using ESv6.1.2 Here is part of my config file: discovery: ec2: endpoint: us-west-2 protocol: https discovery.ze…

---

## [Unable to loop through array field ES 6.1](https://discuss.elastic.co/t/unable-to-loop-through-array-field-es-6-1/116669)

<div class="topic-metadata">

**Author:** [@Hudson\_Dunice](https://discuss.elastic.co/u/Hudson_Dunice)\
**Replies:** 6\
**Last updated:** [January 24, 2018, 1:23pm UTC](https://discuss.elastic.co/t/unable-to-loop-through-array-field-es-6-1/116669 "2018-01-24T13:23:29Z")

</div>

Hey guys, I'm facing a problem in ElasticSearch 6.1 that I cannot solve and I don't know why. I have read the docs several times and maybe I'm missing something. I have a scripted query that needs to do some calculatio…

---

## [Document similarity problem](https://discuss.elastic.co/t/document-similarity-problem/116429)

<div class="topic-metadata">

**Author:** [@jiangshigen](https://discuss.elastic.co/u/jiangshigen)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 6:32am UTC](https://discuss.elastic.co/t/document-similarity-problem/116429 "2018-01-24T06:32:07Z")

</div>

\[image\]I use this way to achieve some documents, howerer,the relevance scoring of each document is 1. template example: { "query": { "bool": { "must": \[ { "query\_string": { "default\_field": "progress\_note", "que…

---

## [Indices not showing on Kibana](https://discuss.elastic.co/t/indices-not-showing-on-kibana/116849)

<div class="topic-metadata">

**Author:** [@User\_2\_Guest\_Incomin](https://discuss.elastic.co/u/User_2_Guest_Incomin)\
**Replies:** 7\
**Last updated:** [January 24, 2018, 11:44am UTC](https://discuss.elastic.co/t/indices-not-showing-on-kibana/116849 "2018-01-24T11:44:39Z")

</div>

Hello ppl, I'm working with some indices (index1 and index2), once I've created index1 and configured etc, I create the second one, without erros or problems, exept when I try to create it on Kibana App, \[imagen\] as y…

---

## [geoDistanceSort(String, GeoPoint\[\]) is ambiguous for the type SortBuilders](https://discuss.elastic.co/t/geodistancesort-string-geopoint-is-ambiguous-for-the-type-sortbuilders/116594)

<div class="topic-metadata">

**Author:** [@javag](https://discuss.elastic.co/u/javag)\
**Replies:** 23\
**Last updated:** [January 24, 2018, 11:25am UTC](https://discuss.elastic.co/t/geodistancesort-string-geopoint-is-ambiguous-for-the-type-sortbuilders/116594 "2018-01-24T11:25:26Z")

</div>

In Elastic Search 6.1.0, facing this error,"The method geoDistanceSort(String, GeoPoint\[\]) is ambiguous for the type SortBuilders" SortBuilders.geoDistanceSort("location") .point(lati…

---

## [Curator throws exception when trying to delete indices based on timestamp](https://discuss.elastic.co/t/curator-throws-exception-when-trying-to-delete-indices-based-on-timestamp/113343)

<div class="topic-metadata">

**Author:** [@ikarthikb](https://discuss.elastic.co/u/ikarthikb)\
**Replies:** 17\
**Last updated:** [January 24, 2018, 10:28am UTC](https://discuss.elastic.co/t/curator-throws-exception-when-trying-to-delete-indices-based-on-timestamp/113343 "2018-01-24T10:28:32Z")

</div>

I have an actions yml file that tries to delete ES indices that are more than 5 minutes old. My ES docs contain a field called timestamp which is used to identify the records. But when curator runs, I get an exception "…

---

## [Facing issue in configuring Learn-to-rank ElasticSearch plugin demo](https://discuss.elastic.co/t/facing-issue-in-configuring-learn-to-rank-elasticsearch-plugin-demo/116636)

<div class="topic-metadata">

**Author:** [@AamirNakhwa](https://discuss.elastic.co/u/AamirNakhwa)\
**Replies:** 4\
**Last updated:** [January 24, 2018, 10:19am UTC](https://discuss.elastic.co/t/facing-issue-in-configuring-learn-to-rank-elasticsearch-plugin-demo/116636 "2018-01-24T10:19:04Z")

</div>

I am trying to configure learning-to-rank (ltr) same demo on my machine as this one. I have installed ElasticSearch 5.4, python 3.6 (it include pip), request libraries and learning-to-rank plugin 0.1.1. "tmdb" index crea…

---

## [Filtering with script on nested fields](https://discuss.elastic.co/t/filtering-with-script-on-nested-fields/116844)

<div class="topic-metadata">

**Author:** [@romkaspb](https://discuss.elastic.co/u/romkaspb)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 10:18am UTC](https://discuss.elastic.co/t/filtering-with-script-on-nested-fields/116844 "2018-01-24T10:18:35Z")

</div>

Hey guys, I'm building search for my project. Now I need filter by nested field. Using Rails, so using elasticsearch gem. Mapping: mapping do indexes 'name', type: 'string', analyzer: 'russ…

---

## [How to delete particular document from multiple indices in elasticsearch using python?](https://discuss.elastic.co/t/how-to-delete-particular-document-from-multiple-indices-in-elasticsearch-using-python/116584)

<div class="topic-metadata">

**Author:** [@akashtalole](https://discuss.elastic.co/u/akashtalole)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 10:05am UTC](https://discuss.elastic.co/t/how-to-delete-particular-document-from-multiple-indices-in-elasticsearch-using-python/116584 "2018-01-24T10:05:22Z")

</div>

Here is sample document. { "\_index": "mqtt-index-2018.01.22", "\_type": "iot\_data", "\_id": "AHWewerdfdfdfdfRTRRfdfgf", "\_score": 1, "\_source": { "message": "{\\"datastream\_name\\": \\"teststream1\\", \\"value\\": 2, \\"context\\…

---

## [Alerts in Elasticsearch 6.x](https://discuss.elastic.co/t/alerts-in-elasticsearch-6-x/116763)

<div class="topic-metadata">

**Author:** [@thomas\_h](https://discuss.elastic.co/u/thomas_h)\
**Replies:** 4\
**Last updated:** [January 24, 2018, 10:05am UTC](https://discuss.elastic.co/t/alerts-in-elasticsearch-6-x/116763 "2018-01-24T10:05:08Z")

</div>

We want to configure simple alerts in Elasticsearch, like send an E-Mail if an error message arrives. We looked at ElastAlert and 411, but both seem to not work with Elasticsearch 6.x. Is there any working solution for …

---

## [Weird results using Search After () elastic search](https://discuss.elastic.co/t/weird-results-using-search-after-elastic-search/116609)

<div class="topic-metadata">

**Author:** [@Ayshwarya\_sree](https://discuss.elastic.co/u/Ayshwarya_sree)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 6:26pm UTC](https://discuss.elastic.co/t/weird-results-using-search-after-elastic-search/116609 "2018-01-23T18:26:38Z")

</div>

i am having an accounts index in Elasticsearch i want to sort it based on a particular coloumn and get results i want to display data in chunks like 10 at a time. so i wrote the following query : \*\* Searc…

---

## [Best Max size for storing files in ES](https://discuss.elastic.co/t/best-max-size-for-storing-files-in-es/116630)

<div class="topic-metadata">

**Author:** [@eunbok4](https://discuss.elastic.co/u/eunbok4)\
**Replies:** 4\
**Last updated:** [January 24, 2018, 9:36am UTC](https://discuss.elastic.co/t/best-max-size-for-storing-files-in-es/116630 "2018-01-24T09:36:02Z")

</div>

Hello, I using elasticsearch for my project. i have 1 question. if i have to store binary file only to elasticsearch, how much Best Max size for storing files in ES?

---

## [Elastic Server is stopped and not starting](https://discuss.elastic.co/t/elastic-server-is-stopped-and-not-starting/116798)

<div class="topic-metadata">

**Author:** [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Replies:** 9\
**Last updated:** [January 24, 2018, 9:25am UTC](https://discuss.elastic.co/t/elastic-server-is-stopped-and-not-starting/116798 "2018-01-24T09:25:26Z")

</div>

Hi Elastic Search is stopped and not restarting. Attached log file. Please help me to find what is the issue and how can i solve it? \*\*Attached log file screenshots Thanks Aneesh L \[2\]\[3\]\[1\]

---

## [ElasticSearch - search with Java Set Collection](https://discuss.elastic.co/t/elasticsearch-search-with-java-set-collection/116834)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 9:24am UTC](https://discuss.elastic.co/t/elasticsearch-search-with-java-set-collection/116834 "2018-01-24T09:24:02Z")

</div>

Hello to everyone. I have such code: @PostMapping("/findLogsByValues") @Transactional public ResponseEntity findLogsByValues(@RequestBody ElasticSearchLogRequest esLogRequest) { SearchSourceBui…

---

## [Updating array with script causing OOM](https://discuss.elastic.co/t/updating-array-with-script-causing-oom/116762)

<div class="topic-metadata">

**Author:** [@shivam](https://discuss.elastic.co/u/shivam)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 9:18am UTC](https://discuss.elastic.co/t/updating-array-with-script-causing-oom/116762 "2018-01-24T09:18:32Z")

</div>

Hello, I am trying to add 120k values in an array through script. I am using below query to do the operation. curl -XPOST 'localhost:9200/\_bulk?pretty' --data-binary @newfile.json sample request is like below {"updat…

---

## [Java - build query due to the many fields](https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493)

<div class="topic-metadata">

**Author:** [@Nikita\_Krasnov](https://discuss.elastic.co/u/Nikita_Krasnov)\
**Replies:** 15\
**Last updated:** [January 24, 2018, 8:28am UTC](https://discuss.elastic.co/t/java-build-query-due-to-the-many-fields/116493 "2018-01-24T08:28:27Z")

</div>

I use Java and Java High Level REST Client. I need to build query that will find documents. This query should contain many fields for searching. For example, I have such json: { "timeStamp": "Fri, 29 Dec 2017 15:32:…

---

## [Upgrade 1.7.5 to 5.X](https://discuss.elastic.co/t/upgrade-1-7-5-to-5-x/116679)

<div class="topic-metadata">

**Author:** [@Daniel\_Rodriguez](https://discuss.elastic.co/u/Daniel_Rodriguez)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 8:23am UTC](https://discuss.elastic.co/t/upgrade-1-7-5-to-5-x/116679 "2018-01-24T08:23:22Z")

</div>

Elasticsearch version (bin/elasticsearch --version): Version: 2.4.6, Build: 5376dca/2017-07-18T12:17:44Z, JVM: 1.8.0\_151 Plugins installed: \[none\] JVM version (java -version): Version: 2.4.6, Build: 5376dca/2017-07-1…

---

## [Configuring index template to set number of shards](https://discuss.elastic.co/t/configuring-index-template-to-set-number-of-shards/116774)

<div class="topic-metadata">

**Author:** [@zachy](https://discuss.elastic.co/u/zachy)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 6:38am UTC](https://discuss.elastic.co/t/configuring-index-template-to-set-number-of-shards/116774 "2018-01-24T06:38:40Z")

</div>

Hi I was wondering how one would be able to change the default index template. For instance, I would like to configure the number of primary and replica shards for each index. Is there a way to do it without the API? T…

---

## [Error with search\_after with java](https://discuss.elastic.co/t/error-with-search-after-with-java/116806)

<div class="topic-metadata">

**Author:** [@Ayshwarya\_sree](https://discuss.elastic.co/u/Ayshwarya_sree)\
**Replies:** 0\
**Last updated:** [January 24, 2018, 6:13am UTC](https://discuss.elastic.co/t/error-with-search-after-with-java/116806 "2018-01-24T06:13:25Z")

</div>

hi, i am using elastic search to produce results for a index based on a sort parameter. Now i want to use a search\_after to retrive fewer records. Search after gets its record from the previous result last hit. for e…

---

## [Multiple type in one index in ES 6.1](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803)

<div class="topic-metadata">

**Author:** [@Vishal\_Chaurasia](https://discuss.elastic.co/u/Vishal_Chaurasia)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 6:05am UTC](https://discuss.elastic.co/t/multiple-type-in-one-index-in-es-6-1/116803 "2018-01-24T06:05:32Z")

</div>

can we define multiple types in one index in elasticsearch version 6.1. When I am trying to define mappings of more than 1 types it results in following error- Rejecting mapping update to \[contents-en\] as the final map…

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

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