# Elasticsearch

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

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

**Page:** 1366

---

## [Error Upgrading from 5.6 to 6.6](https://discuss.elastic.co/t/error-upgrading-from-5-6-to-6-6/172381)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 4:11pm UTC](https://discuss.elastic.co/t/error-upgrading-from-5-6-to-6-6/172381 "2019-03-14T16:11:08Z")

</div>

Hi, I'm exploring upgrading from 5.6.3 (with basic x-pack) to 6.6.2 (basic x-pack built-in) and am seeing an odd error on the master node as the new 6.6.2 master tries to join: java.lang.IllegalArgumentException: Unkno…

---

## [Explanation of various Elasticsearch errors](https://discuss.elastic.co/t/explanation-of-various-elasticsearch-errors/172364)

<div class="topic-metadata">

**Author:** [@PelleKI](https://discuss.elastic.co/u/PelleKI)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 2:55pm UTC](https://discuss.elastic.co/t/explanation-of-various-elasticsearch-errors/172364 "2019-03-14T14:55:51Z")

</div>

Hi there, is there any place where I can read what the various errors Elasticsearch can give me are? For example, what exactly does a Bad Response mean? I know that getting a document that doesn't exist gives a Bad Resp…

---

## [Settings template in Docker file](https://discuss.elastic.co/t/settings-template-in-docker-file/169643)

<div class="topic-metadata">

**Author:** [@Hemant\_Kumar](https://discuss.elastic.co/u/Hemant_Kumar)\
**Replies:** 11\
**Last updated:** [March 14, 2019, 2:51pm UTC](https://discuss.elastic.co/t/settings-template-in-docker-file/169643 "2019-03-14T14:51:29Z")

</div>

Hi, I am running elasticsearch cluster on kubernetes cluster. I want to set max\_result\_window inside the dockerfile through settings template. How would I do that? I didn't find any valuable resource online. Please help! …

---

## [General question on query optimization](https://discuss.elastic.co/t/general-question-on-query-optimization/172359)

<div class="topic-metadata">

**Author:** [@IanRC72](https://discuss.elastic.co/u/IanRC72)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 2:46pm UTC](https://discuss.elastic.co/t/general-question-on-query-optimization/172359 "2019-03-14T14:46:00Z")

</div>

I have five general optimization strategy questions... I have a case where I need to search across multiple fields (about 16 to 32). The fields look as follows: Numeric arrays. All corresponding search terms must matc…

---

## [Multi-field search + nested properties -- Can't get it to work](https://discuss.elastic.co/t/multi-field-search-nested-properties-cant-get-it-to-work/172221)

<div class="topic-metadata">

**Author:** [@RMNYC](https://discuss.elastic.co/u/RMNYC)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 2:00pm UTC](https://discuss.elastic.co/t/multi-field-search-nested-properties-cant-get-it-to-work/172221 "2019-03-14T14:00:05Z")

</div>

PUT test { "mappings":{ "folks":{ "properties":{ "works\_at": { "type": "nested" } } } } } PUT /test/folks/1 { "type": "lawyer", "wor…

---

## [Maven Java API for snapshot](https://discuss.elastic.co/t/maven-java-api-for-snapshot/172317)

<div class="topic-metadata">

**Author:** [@Hemant\_Kumar](https://discuss.elastic.co/u/Hemant_Kumar)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 1:32pm UTC](https://discuss.elastic.co/t/maven-java-api-for-snapshot/172317 "2019-03-14T13:32:21Z")

</div>

Hi, I am writing java API code to take the snapshot of es. I am unable to find the maven repo for that. public CreateSnapshotResponse createSnapshot(Client client, String repositoryName, String snapshotName, String in…

---

## [Cloudwatch to Elastic Cloud: missing data?](https://discuss.elastic.co/t/cloudwatch-to-elastic-cloud-missing-data/172341)

<div class="topic-metadata">

**Author:** [@jpetitcolas](https://discuss.elastic.co/u/jpetitcolas)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 1:21pm UTC](https://discuss.elastic.co/t/cloudwatch-to-elastic-cloud-missing-data/172341 "2019-03-14T13:21:09Z")

</div>

Hi there, I am currently using Elastic Cloud to store my AWS CloudWatch logs. Everything seems to work fine as I'm already able to display charts and to query ElasticSearch correctly. Yet, I got a strange behavior I can…

---

## [Disable memory swap on Unix RPM](https://discuss.elastic.co/t/disable-memory-swap-on-unix-rpm/172320)

<div class="topic-metadata">

**Author:** [@fedwe](https://discuss.elastic.co/u/fedwe)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 12:34pm UTC](https://discuss.elastic.co/t/disable-memory-swap-on-unix-rpm/172320 "2019-03-14T12:34:14Z")

</div>

Hello i want to diasble memory swapping on elastic search but i don't know how to make it work i have systemd and i couldn't find this file /etc/systemd/system/elasticsearch.service.d/override.conf and i tried using s…

---

## [Indexation issue](https://discuss.elastic.co/t/indexation-issue/172327)

<div class="topic-metadata">

**Author:** [@pme](https://discuss.elastic.co/u/pme)\
**Replies:** 1\
**Last updated:** [March 14, 2019, 11:56am UTC](https://discuss.elastic.co/t/indexation-issue/172327 "2019-03-14T11:56:20Z")

</div>

Hello, We have a performance issue on our cluster elastic that doesn't succeed ingesting in real time our 3000eps. The size of our indexes is around 200GB. We have 8 nodes, and each of our index have 4 shards and 1 re…

---

## [Multiple indices while defining a role using Elastic Search - Ansible role](https://discuss.elastic.co/t/multiple-indices-while-defining-a-role-using-elastic-search-ansible-role/172292)

<div class="topic-metadata">

**Author:** [@Waseem\_Tabraze](https://discuss.elastic.co/u/Waseem_Tabraze)\
**Replies:** 1\
**Last updated:** [March 14, 2019, 10:29am UTC](https://discuss.elastic.co/t/multiple-indices-while-defining-a-role-using-elastic-search-ansible-role/172292 "2019-03-14T10:29:06Z")

</div>

Is there a way to add multiple indices while defining a role using ansible-elasticsearch role. I tried doing this but in vain. es\_roles: native: indices: - names: 'index1, index2' privileges: …

---

## [Elasticsearch java Rest High level Client](https://discuss.elastic.co/t/elasticsearch-java-rest-high-level-client/171669)

<div class="topic-metadata">

**Author:** [@Dv\_Thiyanesh](https://discuss.elastic.co/u/Dv_Thiyanesh)\
**Replies:** 27\
**Last updated:** [March 14, 2019, 10:18am UTC](https://discuss.elastic.co/t/elasticsearch-java-rest-high-level-client/171669 "2019-03-14T10:18:17Z")

</div>

Hi All, I am using Elasticsearch java High Level Client to connect with my local Elasticsearch to fetch data In Kibana DSL i used sql query to fetch data from my elasticsearch, likewise i need to use sql query in java H…

---

## [How to get search rate elasticsearch golang](https://discuss.elastic.co/t/how-to-get-search-rate-elasticsearch-golang/172291)

<div class="topic-metadata">

**Author:** [@goku\_saiyan](https://discuss.elastic.co/u/goku_saiyan)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 9:35am UTC](https://discuss.elastic.co/t/how-to-get-search-rate-elasticsearch-golang/172291 "2019-03-14T09:35:59Z")

</div>

how to get search rate in elasticsearch ? example { "search\_rate": \[ { "key\_as\_string" : "2019-02-13T13:26:30.000Z", "key" : 1550064390000, "doc\_count": 0, "rate": 0, }, { "key\_as\_string" : "2019-…

---

## [Change the default channel in Netty4HttpServerTransport file](https://discuss.elastic.co/t/change-the-default-channel-in-netty4httpservertransport-file/172289)

<div class="topic-metadata">

**Author:** [@MKU](https://discuss.elastic.co/u/MKU)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 9:31am UTC](https://discuss.elastic.co/t/change-the-default-channel-in-netty4httpservertransport-file/172289 "2019-03-14T09:31:15Z")

</div>

I am trying to configure SSL for elasticsearch ,so i extend Netty4HttpServerTransport class to add my own channel,but i want to add my custom class to Netty4HttpServerTransport file,so that it gets called as default c…

---

## [Near duplicate detection using MinHash and approximated Jaccard score](https://discuss.elastic.co/t/near-duplicate-detection-using-minhash-and-approximated-jaccard-score/172281)

<div class="topic-metadata">

**Author:** [@woutermostard](https://discuss.elastic.co/u/woutermostard)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 9:09am UTC](https://discuss.elastic.co/t/near-duplicate-detection-using-minhash-and-approximated-jaccard-score/172281 "2019-03-14T09:09:31Z")

</div>

Hi all, I am trying to find near duplicates of large documents. First I split the data using a whitespace tokenizer and subsequently apply a minhash token filter in a custom analyzer. Then the analyzer is mapped to a fi…

---

## [Problem creating a s3 repository with Elasticsearch](https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269)

<div class="topic-metadata">

**Author:** [@Javier\_Parrondo](https://discuss.elastic.co/u/Javier_Parrondo)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 7:43am UTC](https://discuss.elastic.co/t/problem-creating-a-s3-repository-with-elasticsearch/172269 "2019-03-14T07:43:03Z")

</div>

Hello, I have a bucket created in Amazon S3 and I dont get to create the repository withint it. Through the awscli client I list and see all the folders inside the bucket so I thinks that the access\_key and the secret\_…

---

## [Curator - set timeout\_override in python script](https://discuss.elastic.co/t/curator-set-timeout-override-in-python-script/172265)

<div class="topic-metadata">

**Author:** [@unix196](https://discuss.elastic.co/u/unix196)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 7:29am UTC](https://discuss.elastic.co/t/curator-set-timeout-override-in-python-script/172265 "2019-03-14T07:29:10Z")

</div>

Good day. Prehistory - we have many indices on one sever Elasticsearch, we use curator for delete old indices. 50% of cases run this script end in error: 2019-02-14 11:00:41,104 - curator.actions.delete\_indices - ERROR …

---

## [Unable to find logstash-\* in kiabana indexing](https://discuss.elastic.co/t/unable-to-find-logstash-in-kiabana-indexing/172266)

<div class="topic-metadata">

**Author:** [@danykallery](https://discuss.elastic.co/u/danykallery)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 7:36am UTC](https://discuss.elastic.co/t/unable-to-find-logstash-in-kiabana-indexing/172266 "2019-03-14T07:36:13Z")

</div>

Hi, I have installed Elasticsearch and Kibana + logstach on logserver and using fluentd to forward logs from another server. But when i access kibana on browser and try to index with logstach-\* I am not able to list the…

---

## [Index Desing for IMDb Dataset](https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263)

<div class="topic-metadata">

**Author:** [@vvmadhu](https://discuss.elastic.co/u/vvmadhu)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 7:18am UTC](https://discuss.elastic.co/t/index-desing-for-imdb-dataset/172263 "2019-03-14T07:18:23Z")

</div>

We are working on building search solution using IMDb dataset, where we are writing some aggregation queries like how many time cast X worked with crew Y. ##My question here is, What would be the good index model to su…

---

## [Localhost:9200 - Can’t reach this page](https://discuss.elastic.co/t/localhost-9200-can-t-reach-this-page/171199)

<div class="topic-metadata">

**Author:** [@gpadvorac](https://discuss.elastic.co/u/gpadvorac)\
**Replies:** 18\
**Last updated:** [March 14, 2019, 3:52am UTC](https://discuss.elastic.co/t/localhost-9200-can-t-reach-this-page/171199 "2019-03-14T03:52:51Z")

</div>

I'm new to Elasticsearch and just installed it on my dev pc. after the installation I tried to open it but get the following error: Can’t reach this page •Make sure the web address http://localhost:9200 is correct I …

---

## ["field existed as two different types" when empty index included in alias](https://discuss.elastic.co/t/field-existed-as-two-different-types-when-empty-index-included-in-alias/172239)

<div class="topic-metadata">

**Author:** [@Colin\_Bankier](https://discuss.elastic.co/u/Colin_Bankier)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 3:20am UTC](https://discuss.elastic.co/t/field-existed-as-two-different-types-when-empty-index-included-in-alias/172239 "2019-03-14T03:20:21Z")

</div>

I'm seeing some behaviour that seemed unexpected, and wanted clarify whether it is indeed intended / expected, or is a known issue. ES version 6.5.1 I have a query against an alias which includes 3 indices. For the fie…

---

## [Problems after trying to setup realms](https://discuss.elastic.co/t/problems-after-trying-to-setup-realms/172222)

<div class="topic-metadata">

**Author:** [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Replies:** 2\
**Last updated:** [March 14, 2019, 1:34am UTC](https://discuss.elastic.co/t/problems-after-trying-to-setup-realms/172222 "2019-03-14T01:34:21Z")

</div>

On elasticsearch 6.6.1, we were trying to add a realm for our active directory environment. We first added something similar to this: xpack: security: authc: realms: native1: type: native order: 0 ldap1: type:…

---

## [Elasticsearch won't start on reboot](https://discuss.elastic.co/t/elasticsearch-wont-start-on-reboot/172228)

<div class="topic-metadata">

**Author:** [@Steve\_Potter](https://discuss.elastic.co/u/Steve_Potter)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 12:28am UTC](https://discuss.elastic.co/t/elasticsearch-wont-start-on-reboot/172228 "2019-03-14T00:28:29Z")

</div>

When my CentOS 7 system boots, elasticsearch fails to start with the message Failed at step RUNTIME\_DIRECTORY spawning /usr/share/elasticsearch/bin/elasticsearch: File exists Once the system is up, it starts fine with …

---

## [Snapshot backup into out of cluster](https://discuss.elastic.co/t/snapshot-backup-into-out-of-cluster/172225)

<div class="topic-metadata">

**Author:** [@jasony](https://discuss.elastic.co/u/jasony)\
**Replies:** 0\
**Last updated:** [March 14, 2019, 12:11am UTC](https://discuss.elastic.co/t/snapshot-backup-into-out-of-cluster/172225 "2019-03-14T00:11:42Z")

</div>

Hello, I have a cluster and tested backup/snapshot to target indices store in the cluster. I also found “read-only” url set up, so backup data can be accessed from out of the cluster. Is it possible to set repository w…

---

## [Rollover is never acknowledged](https://discuss.elastic.co/t/rollover-is-never-acknowledged/172197)

<div class="topic-metadata">

**Author:** [@lebra](https://discuss.elastic.co/u/lebra)\
**Replies:** 2\
**Last updated:** [March 13, 2019, 11:48pm UTC](https://discuss.elastic.co/t/rollover-is-never-acknowledged/172197 "2019-03-13T23:48:37Z")

</div>

For some reason my \_rollover calls never get acknowledged: Index alias: logstash POST logstash/\_rollover { "conditions": { "max\_size": "43.7gb" } } Index info: GET logstash/\_settings logstash/\_settings?prett…

---

## [I am trying to implement the Elasticsearch REST 6.6.1client in RedHat Fuse](https://discuss.elastic.co/t/i-am-trying-to-implement-the-elasticsearch-rest-6-6-1client-in-redhat-fuse/172215)

<div class="topic-metadata">

**Author:** [@jeff.cassels](https://discuss.elastic.co/u/jeff.cassels)\
**Replies:** 1\
**Last updated:** [March 13, 2019, 11:33pm UTC](https://discuss.elastic.co/t/i-am-trying-to-implement-the-elasticsearch-rest-6-6-1client-in-redhat-fuse/172215 "2019-03-13T23:33:36Z")

</div>

I am trying to implement the Elasticsearch REST 6.6.1 client in RedHat Fuse and I believe an old jar is being pulled in somewhere. This class does not exist in the elasticsearch-6.6.1.jar. Any ideas? java.lang.NoClassD…

---

## [Return value occurence percentage in multi-term field](https://discuss.elastic.co/t/return-value-occurence-percentage-in-multi-term-field/172216)

<div class="topic-metadata">

**Author:** [@bram](https://discuss.elastic.co/u/bram)\
**Replies:** 0\
**Last updated:** [March 13, 2019, 8:47pm UTC](https://discuss.elastic.co/t/return-value-occurence-percentage-in-multi-term-field/172216 "2019-03-13T20:47:28Z")

</div>

Hey, With the documents: documentA: { "code": \["foo", "bar"\] } documentB: { "code": \["foo", "foo"\] } documentC: { "code": \["bar", "quux"\] } documentD: { "code": \["quux", "bar"\] } I would like to get the following s…

---

## [Remove leading and trailing punctuation from terms](https://discuss.elastic.co/t/remove-leading-and-trailing-punctuation-from-terms/171063)

<div class="topic-metadata">

**Author:** [@bram](https://discuss.elastic.co/u/bram)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 11:48am UTC](https://discuss.elastic.co/t/remove-leading-and-trailing-punctuation-from-terms/171063 "2019-03-07T11:48:31Z")

</div>

How can I only remove the leading and trailing punctuation from terms when indexing? The standard tokenizer also splits words like "t-shirt" into "t" and "shirt", and that is not desired in our use case. But we want to…

---

## [Mapping for an array of keywords](https://discuss.elastic.co/t/mapping-for-an-array-of-keywords/172200)

<div class="topic-metadata">

**Author:** [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)\
**Replies:** 1\
**Last updated:** [March 13, 2019, 8:27pm UTC](https://discuss.elastic.co/t/mapping-for-an-array-of-keywords/172200 "2019-03-13T20:27:03Z")

</div>

What does the JSON mapping look like if I have a field that is of type: keyword array. If I wanted multiple keywords associated with a JSON document, how would I create the mapping for the index's field? Something like…

---

## [Additional information contained in the Index properties](https://discuss.elastic.co/t/additional-information-contained-in-the-index-properties/172206)

<div class="topic-metadata">

**Author:** [@sparkjonez](https://discuss.elastic.co/u/sparkjonez)\
**Replies:** 3\
**Last updated:** [March 13, 2019, 8:11pm UTC](https://discuss.elastic.co/t/additional-information-contained-in-the-index-properties/172206 "2019-03-13T20:11:03Z")

</div>

Good afternoon, I am working on a Django-based interface to make Elasticsearch easier to manage. I would like to attach fields to each index that I can use to track information useful in the interface. For example, I wo…

---

## [Searching for "SOMETHING" in "SOMEWHERE"](https://discuss.elastic.co/t/searching-for-something-in-somewhere/172212)

<div class="topic-metadata">

**Author:** [@RMNYC](https://discuss.elastic.co/u/RMNYC)\
**Replies:** 0\
**Last updated:** [March 13, 2019, 7:31pm UTC](https://discuss.elastic.co/t/searching-for-something-in-somewhere/172212 "2019-03-13T19:31:44Z")

</div>

Here's a simplified example of what I'm trying to achieve - I am sure this is a pretty standard thing and I hope someone can point me in the right direction of a pattern, method, way to do this without re-inventing the w…

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

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