# Elasticsearch

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

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

**Page:** 1244

---

## [Enabling email notifications](https://discuss.elastic.co/t/enabling-email-notifications/187475)

<div class="topic-metadata">

**Author:** [@AMiura](https://discuss.elastic.co/u/AMiura)\
**Replies:** 6\
**Last updated:** [July 2, 2019, 4:26am UTC](https://discuss.elastic.co/t/enabling-email-notifications/187475 "2019-07-02T04:26:52Z")

</div>

I'm trying to enable xpack.watcher.encrypt\_sensitive\_data on Elasticsearch 7.1 so I can have passwords not in plain text. Any time I try to set it to true in elasticsearch.yml it crashes when trying to start. In the logs…

---

## [./elasticsearch -E node.name=node0 ... can not run elasticsearch as root](https://discuss.elastic.co/t/elasticsearch-e-node-name-node0-can-not-run-elasticsearch-as-root/188363)

<div class="topic-metadata">

**Author:** [@rick\_zhang](https://discuss.elastic.co/u/rick_zhang)\
**Replies:** 4\
**Last updated:** [July 2, 2019, 3:37am UTC](https://discuss.elastic.co/t/elasticsearch-e-node-name-node0-can-not-run-elasticsearch-as-root/188363 "2019-07-02T03:37:14Z")

</div>

i have try to run a command start up elasticsearch node,"./elasticsearch -E node.name=node0 -E cluster.name=elasticsearch -E path.data=node0\_data ",but still not work have a error message, what is worry? OpenJDK 64-B…

---

## [Trobling with HTTPS configuration](https://discuss.elastic.co/t/trobling-with-https-configuration/187557)

<div class="topic-metadata">

**Author:** [@thewasta](https://discuss.elastic.co/u/thewasta)\
**Replies:** 28\
**Last updated:** [July 2, 2019, 1:51am UTC](https://discuss.elastic.co/t/trobling-with-https-configuration/187557 "2019-07-02T01:51:59Z")

</div>

First: My versión is 6.6.1. My enviroment: 3 nodes in 3 servers (all local) Node Master: 192.168.1.142 Node Slave1: 192.168.1.144 Node Slave2: 192.168.1.146 I have been following this Guide from Elastic Doc, everyth…

---

## [Unable to enable x-pack in kibana 7.1.1 docker deployment](https://discuss.elastic.co/t/unable-to-enable-x-pack-in-kibana-7-1-1-docker-deployment/188114)

<div class="topic-metadata">

**Author:** [@asrinivasan](https://discuss.elastic.co/u/asrinivasan)\
**Replies:** 1\
**Last updated:** [July 2, 2019, 12:17am UTC](https://discuss.elastic.co/t/unable-to-enable-x-pack-in-kibana-7-1-1-docker-deployment/188114 "2019-07-02T00:17:09Z")

</div>

Unable to enable x-pack in kibana 7.1.1 docker deployment I get this erro when the pod is starting and then it crashes tialized"} {"type":"log","@timestamp":"2019-06-28T23:39:59Z","tags":\["fatal","root"\],"pid":1,"mess…

---

## [ElastAlert in pipenv](https://discuss.elastic.co/t/elastalert-in-pipenv/185974)

<div class="topic-metadata">

**Author:** [@Near](https://discuss.elastic.co/u/Near)\
**Replies:** 1\
**Last updated:** [July 1, 2019, 10:38pm UTC](https://discuss.elastic.co/t/elastalert-in-pipenv/185974 "2019-07-01T22:38:25Z")

</div>

stack exchange post I wanted to install ElastAlert, an alerting tool written in python2, inside of a pipenv in an attempt to keep applications and their requirements/ dependencies from stepping on one another while runn…

---

## [Field Boosting and tie\_breaker while using best\_fields from Multi\_match Query](https://discuss.elastic.co/t/field-boosting-and-tie-breaker-while-using-best-fields-from-multi-match-query/188410)

<div class="topic-metadata">

**Author:** [@krish1](https://discuss.elastic.co/u/krish1)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 9:23pm UTC](https://discuss.elastic.co/t/field-boosting-and-tie-breaker-while-using-best-fields-from-multi-match-query/188410 "2019-07-01T21:23:18Z")

</div>

How is tie\_breaker calculated when we also perform field boosting on a multi\_match query with type=best\_fields. Does field field boosting happen first and then the tie breaker computation?

---

## [Transport Error Python APi](https://discuss.elastic.co/t/transport-error-python-api/188408)

<div class="topic-metadata">

**Author:** [@Mohit\_Ruke](https://discuss.elastic.co/u/Mohit_Ruke)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 9:17pm UTC](https://discuss.elastic.co/t/transport-error-python-api/188408 "2019-07-01T21:17:50Z")

</div>

Hi All, I have a job which schedules snapshots, can suddenly I encounter an error like this "TransportError(500, 'repository\_exception', '\[repo\_for\_log-ecoa-legacy-2019-04\] could not read repository data from index blo…

---

## [User Not Permitted to Check If Index Exists](https://discuss.elastic.co/t/user-not-permitted-to-check-if-index-exists/187917)

<div class="topic-metadata">

**Author:** [@ryh](https://discuss.elastic.co/u/ryh)\
**Replies:** 3\
**Last updated:** [July 1, 2019, 6:54pm UTC](https://discuss.elastic.co/t/user-not-permitted-to-check-if-index-exists/187917 "2019-07-01T18:54:37Z")

</div>

Hi, I have a current role mapping of "es\_write\_only" : { "cluster" : \[ "all" \], "indices" : \[ { "names" : \[ "\*" \], "privileges" : \[ "all" \], …

---

## [Grafana, python, and POST newline characters](https://discuss.elastic.co/t/grafana-python-and-post-newline-characters/188387)

<div class="topic-metadata">

**Author:** [@jpavel](https://discuss.elastic.co/u/jpavel)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 6:33pm UTC](https://discuss.elastic.co/t/grafana-python-and-post-newline-characters/188387 "2019-07-01T18:33:39Z")

</div>

In my ideal state, I'm able to do this via the python "requests" package, though I wouldn't mind if I had to do this via the "elasticsearch" package. I tried via ndjson as well, but couldn't make any progress. I need an…

---

## [Transport is not up and running in 3 node cluster 6.8.0](https://discuss.elastic.co/t/transport-is-not-up-and-running-in-3-node-cluster-6-8-0/188381)

<div class="topic-metadata">

**Author:** [@Balamurugan\_Sethuram](https://discuss.elastic.co/u/Balamurugan_Sethuram)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 6:01pm UTC](https://discuss.elastic.co/t/transport-is-not-up-and-running-in-3-node-cluster-6-8-0/188381 "2019-07-01T18:01:20Z")

</div>

Hi, I have 3 node cluster, and my elasticsearch.yml ----------------------------------- Node ------------------------------------- node.name: "machine1" node.master: true node.data: true search.remote.connect: true …

---

## [Is it possible to wildcard search AND highlight or name the matching query in the results?](https://discuss.elastic.co/t/is-it-possible-to-wildcard-search-and-highlight-or-name-the-matching-query-in-the-results/188367)

<div class="topic-metadata">

**Author:** [@JMcKitrick](https://discuss.elastic.co/u/JMcKitrick)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 5:19pm UTC](https://discuss.elastic.co/t/is-it-possible-to-wildcard-search-and-highlight-or-name-the-matching-query-in-the-results/188367 "2019-07-01T17:19:42Z")

</div>

We have about a dozen fields we want to search with wildcards, but we need to know which fields have matched. I've used named queries and highlighting, but I don't believe those work with wildcard searches. So, when sea…

---

## [Probleme with helm-es-security](https://discuss.elastic.co/t/probleme-with-helm-es-security/187886)

<div class="topic-metadata">

**Author:** [@mouna\_boujrad](https://discuss.elastic.co/u/mouna_boujrad)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 4:13pm UTC](https://discuss.elastic.co/t/probleme-with-helm-es-security/187886 "2019-06-27T16:13:02Z")

</div>

hello I have installed this helm chart : I am trying to enable the security on it so I did what's recommanded in the documentation : kubectl create secret generic elastic-credentials --from-literal=password=changeme -…

---

## [WordDelimiter in combination with cross\_fields](https://discuss.elastic.co/t/worddelimiter-in-combination-with-cross-fields/188373)

<div class="topic-metadata">

**Author:** [@PGoddijn](https://discuss.elastic.co/u/PGoddijn)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 4:25pm UTC](https://discuss.elastic.co/t/worddelimiter-in-combination-with-cross-fields/188373 "2019-07-01T16:25:31Z")

</div>

Hi there, I have a search-query which uses a cross\_fields multi\_match to look for the searched terms in multiple fields. The query also contains a word\_delimiter on both the searched terms and the terms in the document…

---

## [Cluster runs out of memory and service stops during index of single document](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-index-of-single-document/186083)

<div class="topic-metadata">

**Author:** [@kheldar](https://discuss.elastic.co/u/kheldar)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 4:12pm UTC](https://discuss.elastic.co/t/cluster-runs-out-of-memory-and-service-stops-during-index-of-single-document/186083 "2019-07-01T16:12:58Z")

</div>

Originally I mentioned this on jessgreen thread which is quite similar. We use Elasticsearch 6.2.4 as our document content index with Micro Focus Content Manager. I am working to implement Content Manager as replacement…

---

## [Make search with special characters insensitive](https://discuss.elastic.co/t/make-search-with-special-characters-insensitive/188330)

<div class="topic-metadata">

**Author:** [@tomsk](https://discuss.elastic.co/u/tomsk)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 3:36pm UTC](https://discuss.elastic.co/t/make-search-with-special-characters-insensitive/188330 "2019-07-01T15:36:33Z")

</div>

Hello, firstly sorry if this is wrong section and I am beginner, but I need help with search query for Elasticsearch. I use Elasticsearch as search engine for my website. People can search for products and as you can se…

---

## [Deleting index after a period but keeping part of it](https://discuss.elastic.co/t/deleting-index-after-a-period-but-keeping-part-of-it/188183)

<div class="topic-metadata">

**Author:** [@kmohd](https://discuss.elastic.co/u/kmohd)\
**Replies:** 6\
**Last updated:** [July 1, 2019, 3:19pm UTC](https://discuss.elastic.co/t/deleting-index-after-a-period-but-keeping-part-of-it/188183 "2019-07-01T15:19:56Z")

</div>

Hello everyone, is there a way to delete the whole index to clear space after 10 days, however, i would like to keep a part of the index like for example in an allow/deny field from FW logs, is there a way to keep those …

---

## [Need script to convert ISO field to Mill format](https://discuss.elastic.co/t/need-script-to-convert-iso-field-to-mill-format/188102)

<div class="topic-metadata">

**Author:** [@DeepakBhatt](https://discuss.elastic.co/u/DeepakBhatt)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 3:19pm UTC](https://discuss.elastic.co/t/need-script-to-convert-iso-field-to-mill-format/188102 "2019-07-01T15:19:50Z")

</div>

Hi Team, We had stored one date field in ISO format (2019-06-25) but now want to convert it into Millisecond format (1561420800000), we don't have hour, min & sec information stored in the date field. We can take defa…

---

## [Error could not find java in JAVA\_HOME or bundled at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7\_6.x86\_64//bin/java](https://discuss.elastic.co/t/error-could-not-find-java-in-java-home-or-bundled-at-usr-lib-jvm-java-1-8-0-openjdk-1-8-0-212-b04-0-el7-6-x86-64-bin-java/187392)

<div class="topic-metadata">

**Author:** [@pickmonster](https://discuss.elastic.co/u/pickmonster)\
**Replies:** 1\
**Last updated:** [July 1, 2019, 3:17pm UTC](https://discuss.elastic.co/t/error-could-not-find-java-in-java-home-or-bundled-at-usr-lib-jvm-java-1-8-0-openjdk-1-8-0-212-b04-0-el7-6-x86-64-bin-java/187392 "2019-07-01T15:17:37Z")

</div>

Hi I wanted install ES at my os, but I got an error “could not find java in JAVA\_HOME or bundled at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7\_6.x86\_64//bin/java”. I have set my JAVA\_HOME env variable and create…

---

## [Truncate token filter splits 32bits character](https://discuss.elastic.co/t/truncate-token-filter-splits-32bits-character/188301)

<div class="topic-metadata">

**Author:** [@PaVal](https://discuss.elastic.co/u/PaVal)\
**Replies:** 3\
**Last updated:** [July 1, 2019, 3:02pm UTC](https://discuss.elastic.co/t/truncate-token-filter-splits-32bits-character/188301 "2019-07-01T15:02:45Z")

</div>

Truncate token filter splits character in string "𝕕𝕣𝕖𝕒𝕞𝕔𝕒𝕥𝕔𝕙𝕖𝕣". Is possible use 32bits characters in ES? Thank you. DELETE test PUT test { "settings" : { "analysis" : { "analyzer" : { "analyzer\_1" : { "tokenize…

---

## [Shards Taking a Long Time to Move Between Nodes - Cloud \[7.1.1\]](https://discuss.elastic.co/t/shards-taking-a-long-time-to-move-between-nodes-cloud-7-1-1/186652)

<div class="topic-metadata">

**Author:** [@ljefferies](https://discuss.elastic.co/u/ljefferies)\
**Replies:** 49\
**Last updated:** [July 1, 2019, 2:42pm UTC](https://discuss.elastic.co/t/shards-taking-a-long-time-to-move-between-nodes-cloud-7-1-1/186652 "2019-07-01T14:42:56Z")

</div>

We are running a 17 node cluster with 10 dedicated hot nodes, 3 master nodes and 4 dedicated warm nodes. We have an index with 5 primary shards and a replication factor of 1 that writes only to the hot nodes, which is d…

---

## [Elasticsearch-setup-passwords fails with JsonParseException](https://discuss.elastic.co/t/elasticsearch-setup-passwords-fails-with-jsonparseexception/187364)

<div class="topic-metadata">

**Author:** [@xcitan](https://discuss.elastic.co/u/xcitan)\
**Replies:** 3\
**Last updated:** [July 1, 2019, 2:27pm UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords-fails-with-jsonparseexception/187364 "2019-07-01T14:27:55Z")

</div>

Hi, i would like to enable security in my cluster with elasticsearch 7.1.1. If i execute "elasticsearch-setup-passwords auto" for generating passwords for the built-in users i get the following error: /usr/share/elast…

---

## [Reindexing 20TB document tips](https://discuss.elastic.co/t/reindexing-20tb-document-tips/188140)

<div class="topic-metadata">

**Author:** [@zatom](https://discuss.elastic.co/u/zatom)\
**Replies:** 14\
**Last updated:** [July 1, 2019, 2:21pm UTC](https://discuss.elastic.co/t/reindexing-20tb-document-tips/188140 "2019-07-01T14:21:08Z")

</div>

Hi, Everytime I am trying to reindex this index with 20million documents(20TB) with reindex api, it stops in the half way. I even tried using sliced scroll(slicing) method to break it into multiple jobs and parallelize…

---

## [Phase out one specific node from cluster](https://discuss.elastic.co/t/phase-out-one-specific-node-from-cluster/188339)

<div class="topic-metadata">

**Author:** [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 2:17pm UTC](https://discuss.elastic.co/t/phase-out-one-specific-node-from-cluster/188339 "2019-07-01T14:17:52Z")

</div>

HI! I was reading on cluster level shard allocation and it seems that I can't set one node to "read-only" mode. There is not much room to re-allocate shards but I don't want to lose the data before necessary. However, I…

---

## [Different primary and replica shard size](https://discuss.elastic.co/t/different-primary-and-replica-shard-size/187331)

<div class="topic-metadata">

**Author:** [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Replies:** 7\
**Last updated:** [July 1, 2019, 1:49pm UTC](https://discuss.elastic.co/t/different-primary-and-replica-shard-size/187331 "2019-07-01T13:49:37Z")

</div>

I am using ES 7.1.1. I have one shard in each index and two replicas. I am using bulkProcessor to insert data. We never update or delete docs. Cluster: 3master, 3data, 2coord Problem: The size of data in primary sha…

---

## [Use mustache syntax with update-by-query API](https://discuss.elastic.co/t/use-mustache-syntax-with-update-by-query-api/188331)

<div class="topic-metadata">

**Author:** [@Aishwarya\_S](https://discuss.elastic.co/u/Aishwarya_S)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 1:45pm UTC](https://discuss.elastic.co/t/use-mustache-syntax-with-update-by-query-api/188331 "2019-07-01T13:45:49Z")

</div>

Hi All, I am trying to use Mustache syntax in \_update\_by\_query API. Basically I want to find a document in Elasticsearch and apply a script on the document returned and update it. I am first creating the script as spec…

---

## [Jest vs High Level Client?](https://discuss.elastic.co/t/jest-vs-high-level-client/188290)

<div class="topic-metadata">

**Author:** [@youssef\_elhayani](https://discuss.elastic.co/u/youssef_elhayani)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 1:31pm UTC](https://discuss.elastic.co/t/jest-vs-high-level-client/188290 "2019-07-01T13:31:45Z")

</div>

I'm trying to work with the new version of Elasticsearch ( 7.2.0 ) and i'm looking for a client for my ES Server, I found two Option: 1 - High level Client 2 - Jest Client I want to have some information about the di…

---

## [URI search query with size -1 doesn't return all the results](https://discuss.elastic.co/t/uri-search-query-with-size-1-doesnt-return-all-the-results/188289)

<div class="topic-metadata">

**Author:** [@raameeil](https://discuss.elastic.co/u/raameeil)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 1:30pm UTC](https://discuss.elastic.co/t/uri-search-query-with-size-1-doesnt-return-all-the-results/188289 "2019-07-01T13:30:28Z")

</div>

Hi, I am using version 6.4.2 and when I run a URI search like: GET my\_index/\_search?q=version:197&size=-1 I expect that all the hits will be returned, but I get only 10 results out of the tens of hits that should retu…

---

## [Differnt shards giving different results](https://discuss.elastic.co/t/differnt-shards-giving-different-results/188285)

<div class="topic-metadata">

**Author:** [@sangam0707](https://discuss.elastic.co/u/sangam0707)\
**Replies:** 6\
**Last updated:** [July 1, 2019, 1:25pm UTC](https://discuss.elastic.co/t/differnt-shards-giving-different-results/188285 "2019-07-01T13:25:45Z")

</div>

Hi, I am using Elasticsearch version 7.1.1. My index and cluster settings are as follows. Index Settings: number\_of\_shards: 1 number\_of\_replicas: 2 Cluster structure: Master nodes: 3 Data nodes:3 Coordinating no…

---

## [Can we use Elastic SQL for Production version project in PHP?](https://discuss.elastic.co/t/can-we-use-elastic-sql-for-production-version-project-in-php/188316)

<div class="topic-metadata">

**Author:** [@jignesh.panchal](https://discuss.elastic.co/u/jignesh.panchal)\
**Replies:** 1\
**Last updated:** [July 1, 2019, 12:57pm UTC](https://discuss.elastic.co/t/can-we-use-elastic-sql-for-production-version-project-in-php/188316 "2019-07-01T12:57:44Z")

</div>

For Example GET \_sql { "query": "select \* from index limit 10" } Can we use Elastic SQL for Production version project in PHP? If yes then how to use using PHP? If SQL is available in ELastic than I dont want to u…

---

## [Manual setup ElasticSearch on google cloud](https://discuss.elastic.co/t/manual-setup-elasticsearch-on-google-cloud/188319)

<div class="topic-metadata">

**Author:** [@rgaps\_2000](https://discuss.elastic.co/u/rgaps_2000)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 12:51pm UTC](https://discuss.elastic.co/t/manual-setup-elasticsearch-on-google-cloud/188319 "2019-07-01T12:51:21Z")

</div>

I am trying to setup Elasticsearch on google cloud manually. what is the best recommended settings for the deployment? I am planning to use GKE for providing high availability and scaling. my questions are : can my ma…

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

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