# Elasticsearch

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

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

**Page:** 1340

---

## [Painless Script Caching](https://discuss.elastic.co/t/painless-script-caching/175257)

<div class="topic-metadata">

**Author:** [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 8:34pm UTC](https://discuss.elastic.co/t/painless-script-caching/175257 "2019-04-08T20:34:29Z")

</div>

Hi friends, I am looking for advice/best practice on caching painless scripts. For my case, the script itself is lightweight an simple, no more than one simple statement, and no script parameters. An example is "return …

---

## [Single Node Production ELK Stack, Any Gotchas?](https://discuss.elastic.co/t/single-node-production-elk-stack-any-gotchas/175914)

<div class="topic-metadata">

**Author:** [@teamg](https://discuss.elastic.co/u/teamg)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 8:11pm UTC](https://discuss.elastic.co/t/single-node-production-elk-stack-any-gotchas/175914 "2019-04-08T20:11:04Z")

</div>

We only have one server to host our new ELK stack. It's a pretty beefy server which will be used to query application logs from our in-house application using Filebeat on the clients. I have a test ELK stack running on…

---

## [Search with exact match comes first?](https://discuss.elastic.co/t/search-with-exact-match-comes-first/175485)

<div class="topic-metadata">

**Author:** [@flash](https://discuss.elastic.co/u/flash)\
**Replies:** 10\
**Last updated:** [April 8, 2019, 6:30pm UTC](https://discuss.elastic.co/t/search-with-exact-match-comes-first/175485 "2019-04-08T18:30:33Z")

</div>

I have some index settings like this DELETE index PUT index/\_doc/Neighbour { "id": "id1" "name": "Downtown San Francisco" "indexed\_at": "2019-03-01" } PUT index/\_doc/State { "id": "id2" "name": "Nevada" …

---

## [Doc with multi-field of boolean type fails during creation](https://discuss.elastic.co/t/doc-with-multi-field-of-boolean-type-fails-during-creation/175898)

<div class="topic-metadata">

**Author:** [@Dhopu\_K](https://discuss.elastic.co/u/Dhopu_K)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 5:53pm UTC](https://discuss.elastic.co/t/doc-with-multi-field-of-boolean-type-fails-during-creation/175898 "2019-04-08T17:53:40Z")

</div>

In v5.5, we had the following mapping which was working fine PUT multiple\_datatypes { "mappings": { "\_doc": { "properties": { "user\_data": { "type": "text", "fields": { …

---

## [Search-as-you-type inside arrays](https://discuss.elastic.co/t/search-as-you-type-inside-arrays/175893)

<div class="topic-metadata">

**Author:** [@cub33](https://discuss.elastic.co/u/cub33)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 5:18pm UTC](https://discuss.elastic.co/t/search-as-you-type-inside-arrays/175893 "2019-04-08T17:18:16Z")

</div>

Hi there, I am trying to implement a search-as-you-type query inside an array. This is the structure of the documents: { "guid": "6f954d53-df57-47e3-ae9e-cb445bd566d3", "labels": \[ …

---

## [Data Ingestion From Cloud Firestore Into Elasticsearch](https://discuss.elastic.co/t/data-ingestion-from-cloud-firestore-into-elasticsearch/175865)

<div class="topic-metadata">

**Author:** [@Muhammad\_Ezzat](https://discuss.elastic.co/u/Muhammad_Ezzat)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 3:02pm UTC](https://discuss.elastic.co/t/data-ingestion-from-cloud-firestore-into-elasticsearch/175865 "2019-04-08T15:02:08Z")

</div>

We are trying to ingest data from Cloud Firestore into Elasticsearch. We found this plugin - elasticstore - created by the community; it is very helpful, but it has a serious drawback. The following is a quotation from …

---

## [Elasticsearch sql not accepting index with - in it](https://discuss.elastic.co/t/elasticsearch-sql-not-accepting-index-with-in-it/175862)

<div class="topic-metadata">

**Author:** [@Ritesh\_Uniyal](https://discuss.elastic.co/u/Ritesh_Uniyal)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 2:55pm UTC](https://discuss.elastic.co/t/elasticsearch-sql-not-accepting-index-with-in-it/175862 "2019-04-08T14:55:59Z")

</div>

Hi, I have an index which have - in it. I'm getting the following error. any work arounds? POST \_xpack/sql?format=txt { "query":"DESCRIBE bsd-digital-prod-logs-sa" } Error: { "error": { "root\_cause": \[ { "type…

---

## [Issue with \_delete\_by\_query](https://discuss.elastic.co/t/issue-with-delete-by-query/175605)

<div class="topic-metadata">

**Author:** [@afassl](https://discuss.elastic.co/u/afassl)\
**Replies:** 4\
**Last updated:** [April 8, 2019, 2:47pm UTC](https://discuss.elastic.co/t/issue-with-delete-by-query/175605 "2019-04-08T14:47:05Z")

</div>

Hi, we've encountered a kind of strange issue and solved it by a workaround, but not sure, if the issue is caused by a bug or the request string. We've had to delete certain entries from an index, according to the docu…

---

## [Painless: Loop all fields inside a document to extract phonenumbers](https://discuss.elastic.co/t/painless-loop-all-fields-inside-a-document-to-extract-phonenumbers/175558)

<div class="topic-metadata">

**Author:** [@ErikvdVen](https://discuss.elastic.co/u/ErikvdVen)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 2:28pm UTC](https://discuss.elastic.co/t/painless-loop-all-fields-inside-a-document-to-extract-phonenumbers/175558 "2019-04-08T14:28:11Z")

</div>

I'm indexing my documents using a third-party piece of software, so I am kinda stuck to the mapping made by that piece of software. Now I want to make some small adaptions, so I can search any phonenumbers inside the do…

---

## [Upsert With Script](https://discuss.elastic.co/t/upsert-with-script/175631)

<div class="topic-metadata">

**Author:** [@Anurag\_Mankar](https://discuss.elastic.co/u/Anurag_Mankar)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 2:23pm UTC](https://discuss.elastic.co/t/upsert-with-script/175631 "2019-04-08T14:23:41Z")

</div>

I am trying to write a query to update or insert a document. The query is given below. POST /abc/\_doc/108/\_update { "script" : { "source": """ // some process is done here """, "lang": "painless", "params" : { …

---

## [How to delete document from the same index in 3 elasticsearch instances](https://discuss.elastic.co/t/how-to-delete-document-from-the-same-index-in-3-elasticsearch-instances/175437)

<div class="topic-metadata">

**Author:** [@ali1](https://discuss.elastic.co/u/ali1)\
**Replies:** 15\
**Last updated:** [April 8, 2019, 1:56pm UTC](https://discuss.elastic.co/t/how-to-delete-document-from-the-same-index-in-3-elasticsearch-instances/175437 "2019-04-08T13:56:44Z")

</div>

Hello , i have one index (same structure) in 3 elasticsearch instances (1,2,3) and all works fine , my issue is : when i delete a document from the index in ES instance 1 , i want also delete the same document fro…

---

## [Matching CV to vacancies use case in Elasticsearch](https://discuss.elastic.co/t/matching-cv-to-vacancies-use-case-in-elasticsearch/175836)

<div class="topic-metadata">

**Author:** [@Tewo\_Tewo](https://discuss.elastic.co/u/Tewo_Tewo)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 12:38pm UTC](https://discuss.elastic.co/t/matching-cv-to-vacancies-use-case-in-elasticsearch/175836 "2019-04-08T12:38:49Z")

</div>

I am completely new to Elasticsearch, I am wondering if there is possibility of indexing thousands of vacancies and query the best match for a specific CV. Any help is appreciated.

---

## [I want to read data from es with, but i have a problem](https://discuss.elastic.co/t/i-want-to-read-data-from-es-with-but-i-have-a-problem/175829)

<div class="topic-metadata">

**Author:** [@edclark\_jiying](https://discuss.elastic.co/u/edclark_jiying)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 12:21pm UTC](https://discuss.elastic.co/t/i-want-to-read-data-from-es-with-but-i-have-a-problem/175829 "2019-04-08T12:21:00Z")

</div>

I want to use hive to read the data of Elasticsearch, but I cannot convert the data of project type in es into the data of map type in hive. The value of this type in Elasticsearch is styled like a map. Who can help me,…

---

## [Elasticsearch HA and geocluster](https://discuss.elastic.co/t/elasticsearch-ha-and-geocluster/174148)

<div class="topic-metadata">

**Author:** [@Rohlik](https://discuss.elastic.co/u/Rohlik)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 12:11pm UTC](https://discuss.elastic.co/t/elasticsearch-ha-and-geocluster/174148 "2019-04-08T12:11:21Z")

</div>

Hello, how setup HA Elasticsearch cluster in geocluster environment? We have 2 datacenter location and for each of datacenter we have 1 hardware virtualization server. I know that best setup is use odd number of Elasti…

---

## [Elastic search cluster health is always red](https://discuss.elastic.co/t/elastic-search-cluster-health-is-always-red/175396)

<div class="topic-metadata">

**Author:** [@hemamalini](https://discuss.elastic.co/u/hemamalini)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 11:09am UTC](https://discuss.elastic.co/t/elastic-search-cluster-health-is-always-red/175396 "2019-04-08T11:09:42Z")

</div>

Elastic search version - 5.6.14 with kibana is installed using MPack - elasticsearch\_mpack-0.7.1.0.tar.gz in centos7. Below is the elasticsearch.yml configuration cluster: name: metron routing: allocation.node\_c…

---

## [What is the difference between geo\_point and geohash in ELK? It is somehow becoming more difficult to write geodata into elastic using pure java code. Is there as specific library to use in Java or what is the way to go about it?](https://discuss.elastic.co/t/what-is-the-difference-between-geo-point-and-geohash-in-elk-it-is-somehow-becoming-more-difficult-to-write-geodata-into-elastic-using-pure-java-code-is-there-as-specific-library-to-use-in-java-or-what-is-the-way-to-go-about-it/175564)

<div class="topic-metadata">

**Author:** [@ShilpaT](https://discuss.elastic.co/u/ShilpaT)\
**Replies:** 8\
**Last updated:** [April 8, 2019, 11:02am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-geo-point-and-geohash-in-elk-it-is-somehow-becoming-more-difficult-to-write-geodata-into-elastic-using-pure-java-code-is-there-as-specific-library-to-use-in-java-or-what-is-the-way-to-go-about-it/175564 "2019-04-08T11:02:04Z")

</div>

What is the difference between geo\_point and geohash in ELK? It is somehow becoming more difficult to write geodata into elastic using pure java code. Is there as specific library to use in Java or what is the way to go …

---

## [When set the DocValueContext for FetchPhase became very slow](https://discuss.elastic.co/t/when-set-the-docvaluecontext-for-fetchphase-became-very-slow/175785)

<div class="topic-metadata">

**Author:** [@yunfeng\_wu](https://discuss.elastic.co/u/yunfeng_wu)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 8:06am UTC](https://discuss.elastic.co/t/when-set-the-docvaluecontext-for-fetchphase-became-very-slow/175785 "2019-04-08T08:06:34Z")

</div>

our plugins need read field value from docvalue, after query phase we set the DocValueFieldsContext contains the field we need. If field has no docvalue, we would retrieve this field value from stored\_fields or \_source. …

---

## [After Migrating from ES 6.6 to 6.7 getting below runtime error](https://discuss.elastic.co/t/after-migrating-from-es-6-6-to-6-7-getting-below-runtime-error/174776)

<div class="topic-metadata">

**Author:** [@Yashpal\_Singh](https://discuss.elastic.co/u/Yashpal_Singh)\
**Replies:** 10\
**Last updated:** [April 8, 2019, 10:08am UTC](https://discuss.elastic.co/t/after-migrating-from-es-6-6-to-6-7-getting-below-runtime-error/174776 "2019-04-08T10:08:49Z")

</div>

We are trying to Migrate ES from 6.6 to 6.7 and got the below exception on runtime. java.lang.NoSuchFieldError: LUCENE\_6\_4\_1 at org.elasticsearch.Version.\<clinit\>(Version.java:76) ~\[elasticsearch-6.7.0.jar!/:6.7.0\] at…

---

## [S3 Repository fails authentication](https://discuss.elastic.co/t/s3-repository-fails-authentication/174806)

<div class="topic-metadata">

**Author:** [@Pucky](https://discuss.elastic.co/u/Pucky)\
**Replies:** 6\
**Last updated:** [April 8, 2019, 10:07am UTC](https://discuss.elastic.co/t/s3-repository-fails-authentication/174806 "2019-04-08T10:07:21Z")

</div>

Hi I'm trying to make a snapshot with my new credentials. They are failing on my cluster, but are working fine on my stand-alone node so the credentials must be ok. Is there any way that I can find out which node isn't …

---

## [Circuit Breaker not triggered even after parent circuit breaker limit is exceeded](https://discuss.elastic.co/t/circuit-breaker-not-triggered-even-after-parent-circuit-breaker-limit-is-exceeded/175804)

<div class="topic-metadata">

**Author:** [@sagark1992](https://discuss.elastic.co/u/sagark1992)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 9:07am UTC](https://discuss.elastic.co/t/circuit-breaker-not-triggered-even-after-parent-circuit-breaker-limit-is-exceeded/175804 "2019-04-08T09:07:40Z")

</div>

Cluster information ES Version: 5.1 Nodes: 3 Indices: 3 Total Size: 100GB Total Docs: 55 million Shards: 5 P and 1 R (for each indices). Total: 40 shards Service: AWS ES (SaaS) Background : Our system has a peak point…

---

## [Curator for elasticsearch 6.7 not working](https://discuss.elastic.co/t/curator-for-elasticsearch-6-7-not-working/175527)

<div class="topic-metadata">

**Author:** [@mkain](https://discuss.elastic.co/u/mkain)\
**Replies:** 2\
**Last updated:** [April 8, 2019, 9:04am UTC](https://discuss.elastic.co/t/curator-for-elasticsearch-6-7-not-working/175527 "2019-04-08T09:04:51Z")

</div>

Hi, I am using my previous action.yml and config.yml of curator to delete old indices of elasticsearch. I have installed python 3.7.2 and curator 5.6. My config is: cat config.yml client: hosts: - 127.0.0.1 po…

---

## [Is there a way to match multi-fields but always highlight the base field?](https://discuss.elastic.co/t/is-there-a-way-to-match-multi-fields-but-always-highlight-the-base-field/175797)

<div class="topic-metadata">

**Author:** [@NewHere](https://discuss.elastic.co/u/NewHere)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 8:51am UTC](https://discuss.elastic.co/t/is-there-a-way-to-match-multi-fields-but-always-highlight-the-base-field/175797 "2019-04-08T08:51:07Z")

</div>

Say I have the following mappings: "phone": { "type": "keyword", "fields": { "digits": { "type": "keyword", "analyzer": "digit\_only" } } } The analyzers are using sim…

---

## [UpdateByQuery script version conflict](https://discuss.elastic.co/t/updatebyquery-script-version-conflict/175411)

<div class="topic-metadata">

**Author:** [@voharunado](https://discuss.elastic.co/u/voharunado)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 8:37am UTC](https://discuss.elastic.co/t/updatebyquery-script-version-conflict/175411 "2019-04-08T08:37:57Z")

</div>

Hi, I'm having a lot of version conflict when trying to updatebyquery with a painless script, even though the documents are not updated by anything else at the same time (my script is the only write on the cluster at th…

---

## [After upgrade from 6.2.3 to 6.6.2 frequently gc overhead](https://discuss.elastic.co/t/after-upgrade-from-6-2-3-to-6-6-2-frequently-gc-overhead/175792)

<div class="topic-metadata">

**Author:** [@lysyjan87](https://discuss.elastic.co/u/lysyjan87)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 8:28am UTC](https://discuss.elastic.co/t/after-upgrade-from-6-2-3-to-6-6-2-frequently-gc-overhead/175792 "2019-04-08T08:28:57Z")

</div>

We have ES managed with Kubernetes and when we upgrade from 6.2.3 to 6.6.2 (or another higher minor version) then occur performance problems. In Cerebro is CPU and load on top. Some requests end with timeout. Logs: \[2…

---

## [SearchPhaseExecutionException caused by EsRejectedExecutionException](https://discuss.elastic.co/t/searchphaseexecutionexception-caused-by-esrejectedexecutionexception/175775)

<div class="topic-metadata">

**Author:** [@igorc](https://discuss.elastic.co/u/igorc)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 7:29am UTC](https://discuss.elastic.co/t/searchphaseexecutionexception-caused-by-esrejectedexecutionexception/175775 "2019-04-08T07:29:36Z")

</div>

Hi everyone, I'm getting the following exception in one of the ES data nodes running as stateful-set in kubernetes: \[2019-04-08T07:11:59,013\]\[WARN \]\[r.suppressed \] \[es-data-1\] path: /filebeat-\*/\_search, par…

---

## [Equivalent JAVA code for the below query](https://discuss.elastic.co/t/equivalent-java-code-for-the-below-query/175149)

<div class="topic-metadata">

**Author:** [@Harsha\_Yerasi](https://discuss.elastic.co/u/Harsha_Yerasi)\
**Replies:** 4\
**Last updated:** [April 8, 2019, 7:25am UTC](https://discuss.elastic.co/t/equivalent-java-code-for-the-below-query/175149 "2019-04-08T07:25:01Z")

</div>

Please help me with the equivalent java code to this search GET my\_index/\_search { "query": { "bool": { "must": { "nested": { "path": "workexperience", "query": { "terms": { "workexperience.title": \[ "1" \] } } } } } } } …

---

## [Elasticsearch not starting on one node after upgrading JDK from 1.8 to 12](https://discuss.elastic.co/t/elasticsearch-not-starting-on-one-node-after-upgrading-jdk-from-1-8-to-12/175572)

<div class="topic-metadata">

**Author:** [@Nikhil04](https://discuss.elastic.co/u/Nikhil04)\
**Replies:** 8\
**Last updated:** [April 8, 2019, 7:13am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-on-one-node-after-upgrading-jdk-from-1-8-to-12/175572 "2019-04-08T07:13:33Z")

</div>

Hi, I have three node elasticsearch cluster. On one of the node I installed Rally and since rally was not running because it required jdk-12, I installed jdk-12 after which rally started running, but now my Elasticsearc…

---

## [Storing the diff of two fields in a new field](https://discuss.elastic.co/t/storing-the-diff-of-two-fields-in-a-new-field/175771)

<div class="topic-metadata">

**Author:** [@Sai\_Birada](https://discuss.elastic.co/u/Sai_Birada)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 6:54am UTC](https://discuss.elastic.co/t/storing-the-diff-of-two-fields-in-a-new-field/175771 "2019-04-08T06:54:42Z")

</div>

I am trying to store some json data generated after running some api call, into elasticsearch, and my documents look like this. { "host" : "hostname", "time" : "timestamp", "command" : "command being run", "data\_before…

---

## [Edgengram](https://discuss.elastic.co/t/edgengram/175769)

<div class="topic-metadata">

**Author:** [@Lucian\_Criste](https://discuss.elastic.co/u/Lucian_Criste)\
**Replies:** 0\
**Last updated:** [April 8, 2019, 6:49am UTC](https://discuss.elastic.co/t/edgengram/175769 "2019-04-08T06:49:56Z")

</div>

i have this query GET product\_de/\_search { "from" : "0","size":"5", "query": { "match": { "product\_title.edgengram": "34151001 " …

---

## [How to remove deleted elasticsearch logs from file system?](https://discuss.elastic.co/t/how-to-remove-deleted-elasticsearch-logs-from-file-system/174076)

<div class="topic-metadata">

**Author:** [@yishain11](https://discuss.elastic.co/u/yishain11)\
**Replies:** 16\
**Last updated:** [April 7, 2019, 1:18pm UTC](https://discuss.elastic.co/t/how-to-remove-deleted-elasticsearch-logs-from-file-system/174076 "2019-04-07T13:18:40Z")

</div>

Hi everyone! I have a problem: I run elasticsearch 6.2 on CentOS7 machine, and I see that my disk is filling up (by running "df" command). When I check with the "du" command I don't see anything that could account for …

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

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