# Elasticsearch

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

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

**Page:** 1186

---

## [Elasticsearch Update API in Java for HashMap is not working](https://discuss.elastic.co/t/elasticsearch-update-api-in-java-for-hashmap-is-not-working/196047)

<div class="topic-metadata">

**Author:** [@supritha](https://discuss.elastic.co/u/supritha)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 6:27am UTC](https://discuss.elastic.co/t/elasticsearch-update-api-in-java-for-hashmap-is-not-working/196047 "2019-08-21T06:27:37Z")

</div>

Hi, I have created an index in elastic search where it has data something like this, { "teamPermission":{ "1":2, "2":2, "3":2 }, "userPermission":{ "18":"1" }, "unique":"N", "name":"ABC", "code":"abc", …

---

## [Understanding index template behavior](https://discuss.elastic.co/t/understanding-index-template-behavior/195673)

<div class="topic-metadata">

**Author:** [@s2dent](https://discuss.elastic.co/u/s2dent)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 6:47am UTC](https://discuss.elastic.co/t/understanding-index-template-behavior/195673 "2019-08-20T06:47:54Z")

</div>

Hi I would like to define a define an index template to cast an array (e.g. \[-86.832375, 35.913284\]) as geo\_point. Defining a template and posting a record via Kibana dev tool works beautifully. However, doing the same …

---

## [Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to No such file or directory on mac](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory-on-mac/195943)

<div class="topic-metadata">

**Author:** [@nijanthan0](https://discuss.elastic.co/u/nijanthan0)\
**Replies:** 9\
**Last updated:** [August 21, 2019, 5:41am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-no-such-file-or-directory-on-mac/195943 "2019-08-21T05:41:15Z")

</div>

\[2019-08-20T19:07:05,100\]\[WARN \]\[o.e.b.ElasticsearchUncaughtExceptionHandler\] \[unknown\] uncaught exception in thread \[main\] org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain …

---

## [Elasticsearch Curator on Google Functions](https://discuss.elastic.co/t/elasticsearch-curator-on-google-functions/196034)

<div class="topic-metadata">

**Author:** [@ssharaf](https://discuss.elastic.co/u/ssharaf)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 5:15am UTC](https://discuss.elastic.co/t/elasticsearch-curator-on-google-functions/196034 "2019-08-21T05:15:48Z")

</div>

Hi, I am writing a Python script to delete Metricbeat indices older than certain days using ES Curator. I could successfully install the curator on my machine and run the code. I want to deploy the script to Google Fun…

---

## [How to install a custom elasticsearch plugin IntelliJ locally and debug](https://discuss.elastic.co/t/how-to-install-a-custom-elasticsearch-plugin-intellij-locally-and-debug/195970)

<div class="topic-metadata">

**Author:** [@zcharli](https://discuss.elastic.co/u/zcharli)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 1:48am UTC](https://discuss.elastic.co/t/how-to-install-a-custom-elasticsearch-plugin-intellij-locally-and-debug/195970 "2019-08-21T01:48:32Z")

</div>

I've got java 12 running on my Mac, I've checked out the 6.7 branch from github and was able to successfully build and launch the project with ./gradlew run --debug-jvm. I've managed to put a breakpoint against my local …

---

## [Issue while Downgrading Elasticsearch from 1.7.3 to 1.5.2](https://discuss.elastic.co/t/issue-while-downgrading-elasticsearch-from-1-7-3-to-1-5-2/195920)

<div class="topic-metadata">

**Author:** [@Harsh\_Vadodaria](https://discuss.elastic.co/u/Harsh_Vadodaria)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 4:52am UTC](https://discuss.elastic.co/t/issue-while-downgrading-elasticsearch-from-1-7-3-to-1-5-2/195920 "2019-08-21T04:52:42Z")

</div>

Hello mates, I am having Elasticsearch 1.7.3 installed in production server. Due to compatibility issue I am trying to downgrade the elasticsearch to 1.5.2 using debian on ubuntu, but it fails every time. I uninstalled …

---

## [How to get item highest matching rate in nested data!](https://discuss.elastic.co/t/how-to-get-item-highest-matching-rate-in-nested-data/195840)

<div class="topic-metadata">

**Author:** [@Vu\_Thien](https://discuss.elastic.co/u/Vu_Thien)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 2:01am UTC](https://discuss.elastic.co/t/how-to-get-item-highest-matching-rate-in-nested-data/195840 "2019-08-21T02:01:36Z")

</div>

Hi, I have an index with nested data. \[ { "shop": { "name": "The shop", "products": \[ { "name": "the product 1", "price": 1000 }, { "name": "produc…

---

## [Using painless scripting to re-implement BM25 scoring](https://discuss.elastic.co/t/using-painless-scripting-to-re-implement-bm25-scoring/195802)

<div class="topic-metadata">

**Author:** [@dpappas](https://discuss.elastic.co/u/dpappas)\
**Replies:** 6\
**Last updated:** [August 21, 2019, 12:17am UTC](https://discuss.elastic.co/t/using-painless-scripting-to-re-implement-bm25-scoring/195802 "2019-08-21T00:17:45Z")

</div>

Hello everyone I have indexed a few hundreds of millions of data into ElasticSearch using the default parameters of b and k1. It is prohibitive for me to reindex the data however i would like to optimize the parameters …

---

## [Unhandled java.lang.NoClassDefFoundError in Elasticsearch High-Level RestClientBuilder](https://discuss.elastic.co/t/unhandled-java-lang-noclassdeffounderror-in-elasticsearch-high-level-restclientbuilder/196013)

<div class="topic-metadata">

**Author:** [@pavocristatus](https://discuss.elastic.co/u/pavocristatus)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 11:27pm UTC](https://discuss.elastic.co/t/unhandled-java-lang-noclassdeffounderror-in-elasticsearch-high-level-restclientbuilder/196013 "2019-08-20T23:27:26Z")

</div>

Hi All, I get the following error when running "sbt test" (scalatest with matchers) that helps with unit testing a method written in scala. The method creates an instance of Elasticsearch REST High-Level client followe…

---

## [Allowed script contexts list](https://discuss.elastic.co/t/allowed-script-contexts-list/195549)

<div class="topic-metadata">

**Author:** [@Thomas\_Doman](https://discuss.elastic.co/u/Thomas_Doman)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 11:42pm UTC](https://discuss.elastic.co/t/allowed-script-contexts-list/195549 "2019-08-20T23:42:40Z")

</div>

ES: 6.1.1 NEST: 6.1 We have set our allowed script types to stored only. In reading Allowed Script Contexts, it shows a couple of examples of available contexts but I've been unable to find a comprehensive list, let a…

---

## [Timestamp format using \_ingest in incorrect form on metricbeat rollups](https://discuss.elastic.co/t/timestamp-format-using-ingest-in-incorrect-form-on-metricbeat-rollups/196005)

<div class="topic-metadata">

**Author:** [@EricJohnson](https://discuss.elastic.co/u/EricJohnson)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 9:01pm UTC](https://discuss.elastic.co/t/timestamp-format-using-ingest-in-incorrect-form-on-metricbeat-rollups/196005 "2019-08-20T21:01:24Z")

</div>

Hello! I'm using the ingest pipeline API to add a field I'm calling "record\_date" that should present the time that a rollup occurs in YYYY-MM-DD format. The API call to add the new field is working but the field is sh…

---

## [Why I'm getting Invalid NEST Error](https://discuss.elastic.co/t/why-im-getting-invalid-nest-error/195743)

<div class="topic-metadata">

**Author:** [@bryanAlvarez](https://discuss.elastic.co/u/bryanAlvarez)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 9:16pm UTC](https://discuss.elastic.co/t/why-im-getting-invalid-nest-error/195743 "2019-08-20T21:16:26Z")

</div>

Below is the error that I'm getting when trying to index, Invalid NEST response built from a unsuccessful low level call on POST: /bunzlecom07252019-2e68bd75-d741-474e-905f-121fb23a8847/product/\_bulk Invalid Bulk items…

---

## [Performance considerations for indexed nested fields](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792)

<div class="topic-metadata">

**Author:** [@Ben\_Wilde](https://discuss.elastic.co/u/Ben_Wilde)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 8:43pm UTC](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792 "2019-08-20T20:43:52Z")

</div>

We are reaching a point where we will end up having a dozen or so indexed nested fields on each of our documents (which as we know creates an additional indexed document for each nested entry). We're looking to understa…

---

## [Role Vs User for Query](https://discuss.elastic.co/t/role-vs-user-for-query/195998)

<div class="topic-metadata">

**Author:** [@shri\_palchuri](https://discuss.elastic.co/u/shri_palchuri)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 8:28pm UTC](https://discuss.elastic.co/t/role-vs-user-for-query/195998 "2019-08-20T20:28:37Z")

</div>

Can I specify Run as Role as part of elasticsearch query instead of creating too many uses? If yes, please redirect me to the documentation.

---

## [Performance and curiosity question on combined filter queries + nested queries](https://discuss.elastic.co/t/performance-and-curiosity-question-on-combined-filter-queries-nested-queries/195990)

<div class="topic-metadata">

**Author:** [@ljak](https://discuss.elastic.co/u/ljak)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 7:39pm UTC](https://discuss.elastic.co/t/performance-and-curiosity-question-on-combined-filter-queries-nested-queries/195990 "2019-08-20T19:39:11Z")

</div>

Hello everyone, More a curiosity question than everything else, is there any difference between: GET /my\_index/\_search { "profile": "true", "query": { "nested": { "path": "projects", "query": { …

---

## [Date format issue when passing data from spark to ElasticSearch](https://discuss.elastic.co/t/date-format-issue-when-passing-data-from-spark-to-elasticsearch/195704)

<div class="topic-metadata">

**Author:** [@Yoav\_Ben\_Moha](https://discuss.elastic.co/u/Yoav_Ben_Moha)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 6:04pm UTC](https://discuss.elastic.co/t/date-format-issue-when-passing-data-from-spark-to-elasticsearch/195704 "2019-08-20T18:04:55Z")

</div>

I have successfuly uploaded data from spark into elasticsearch 7. The date format i have in the csv that i am reading are: yyyy-MM-dd+HH:mm:ss.SSS val cdr=spark.read.option("delimiter", ";") .option("timestamp…

---

## [Elasticsearch logs showing delete index?](https://discuss.elastic.co/t/elasticsearch-logs-showing-delete-index/195981)

<div class="topic-metadata">

**Author:** [@w0lfxpunk](https://discuss.elastic.co/u/w0lfxpunk)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 5:50pm UTC](https://discuss.elastic.co/t/elasticsearch-logs-showing-delete-index/195981 "2019-08-20T17:50:23Z")

</div>

Hi , We have integrated elasticsearch with Magento2 using smile/elasticsuite. When I check logs of elasticsearch in every few minutes it shows me logs like below \[2019-08-20T17:47:22,008\]\[INFO \]\[o.e.c.m.MetaDataDelet…

---

## [Elastalert CentoOS7](https://discuss.elastic.co/t/elastalert-centoos7/195611)

<div class="topic-metadata">

**Author:** [@Thibault](https://discuss.elastic.co/u/Thibault)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 5:14pm UTC](https://discuss.elastic.co/t/elastalert-centoos7/195611 "2019-08-20T17:14:51Z")

</div>

Hi, I'm implementing Elastalert on CentOS 7 and I have some problems. I'm trying to test the rules with this command: elastalert-test-rule --config config.yaml example\_rules/example\_frequency.yaml but I have a mistake: …

---

## [Tuning logstash and elasticsearch for loading data from oracle database](https://discuss.elastic.co/t/tuning-logstash-and-elasticsearch-for-loading-data-from-oracle-database/195795)

<div class="topic-metadata">

**Author:** [@abygin.martin](https://discuss.elastic.co/u/abygin.martin)\
**Replies:** 12\
**Last updated:** [August 20, 2019, 4:18pm UTC](https://discuss.elastic.co/t/tuning-logstash-and-elasticsearch-for-loading-data-from-oracle-database/195795 "2019-08-20T16:18:35Z")

</div>

Hi Team, We are trying to load data from oracle database to elasticsearch using logstash. We have created a config file with input section having the driver info, connection to db etc. The data is extracted using select…

---

## [ElasticsearchLRUQueryCache use much memory cause node OutOfMemoryError](https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966)

<div class="topic-metadata">

**Author:** [@LoadingZhang](https://discuss.elastic.co/u/LoadingZhang)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearchlruquerycache-use-much-memory-cause-node-outofmemoryerror/195966 "2019-08-20T15:28:12Z")

</div>

Elasticsearch version: 7.2.0 JVM version: Build-in JDK12 OS version: CentOS 7.3 I have a index with join field, heap usage will raise to 90%+ when doing has\_child query. MAT report shows org.elasticsearch.indices.In…

---

## [Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release on mac](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release-on-mac/195908)

<div class="topic-metadata">

**Author:** [@nijanthan0](https://discuss.elastic.co/u/nijanthan0)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 3:24pm UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release-on-mac/195908 "2019-08-20T15:24:01Z")

</div>

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. \[2019-08-20T17:09:16,659\]\[WARN \]\[o.e.b.ElasticsearchUncaughtExceptionHand…

---

## [Searches performed by the user](https://discuss.elastic.co/t/searches-performed-by-the-user/195891)

<div class="topic-metadata">

**Author:** [@JoMod](https://discuss.elastic.co/u/JoMod)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 3:18pm UTC](https://discuss.elastic.co/t/searches-performed-by-the-user/195891 "2019-08-20T15:18:53Z")

</div>

Hello, I have an ES that has been running for several years and I would like to know what users are looking for in the search field. Is this possible? Is there this data in a log file somewhere? Thank you in advance. …

---

## [Problem with elasticsearch and fluentbit in Kubernetes Cluster](https://discuss.elastic.co/t/problem-with-elasticsearch-and-fluentbit-in-kubernetes-cluster/195947)

<div class="topic-metadata">

**Author:** [@David\_Oceans](https://discuss.elastic.co/u/David_Oceans)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 1:39pm UTC](https://discuss.elastic.co/t/problem-with-elasticsearch-and-fluentbit-in-kubernetes-cluster/195947 "2019-08-20T13:39:33Z")

</div>

Hi I have elastic search with fluentbit in my gke cluster installed with helm helm install --name elastic-stack stable/elastic-stack -f custom-values.yaml --namespace logging fluent-bit: enabled: true backend: …

---

## [Enable source to track faulty objects (parsing exception)](https://discuss.elastic.co/t/enable-source-to-track-faulty-objects-parsing-exception/195944)

<div class="topic-metadata">

**Author:** [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 1:27pm UTC](https://discuss.elastic.co/t/enable-source-to-track-faulty-objects-parsing-exception/195944 "2019-08-20T13:27:56Z")

</div>

Hello, I have some \[2019-08-20T13:49:59,076\]\[DEBUG\]\[o.e.a.b.TransportShardBulkAction\] \[index\_20190820\]\[8\] failed to execute bulk item (index) BulkShardRequest \[\[index\_20190820\]\[8\]\] containing \[416\] requests org.elasti…

---

## [Compile Error | Watcher Condition](https://discuss.elastic.co/t/compile-error-watcher-condition/195897)

<div class="topic-metadata">

**Author:** [@ntran](https://discuss.elastic.co/u/ntran)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 1:15pm UTC](https://discuss.elastic.co/t/compile-error-watcher-condition/195897 "2019-08-20T13:15:48Z")

</div>

Hi, I am trying to create a loop where all the arrays are searched to find any have more than one value for "doc\_count". Once the loop finishes, and all the fields are identified, I wish to put these in a separate array…

---

## [Adding search bar to my web application](https://discuss.elastic.co/t/adding-search-bar-to-my-web-application/195899)

<div class="topic-metadata">

**Author:** [@saurabhbora](https://discuss.elastic.co/u/saurabhbora)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 12:36pm UTC](https://discuss.elastic.co/t/adding-search-bar-to-my-web-application/195899 "2019-08-20T12:36:53Z")

</div>

I have a single database with 20+ tables in MySQL with different structures and linking. How should I ingest them in elasticsearch with the same format and how many indexes must be used?

---

## [Node Validation Exception Bootstrap Checks Failed](https://discuss.elastic.co/t/node-validation-exception-bootstrap-checks-failed/195913)

<div class="topic-metadata">

**Author:** [@Bidhan\_Bastola](https://discuss.elastic.co/u/Bidhan_Bastola)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 12:29pm UTC](https://discuss.elastic.co/t/node-validation-exception-bootstrap-checks-failed/195913 "2019-08-20T12:29:47Z")

</div>

\[2019-08-20T17:28:28,212\]\[INFO \]\[o.e.p.PluginsService \] \[k8s-master.citytech.global\] loaded module \[x-pack-security\] \[2019-08-20T17:28:28,212\]\[INFO \]\[o.e.p.PluginsService \] \[k8s-master.citytech.global\] loade…

---

## [Native authentication with Basic License](https://discuss.elastic.co/t/native-authentication-with-basic-license/194494)

<div class="topic-metadata">

**Author:** [@harryk1](https://discuss.elastic.co/u/harryk1)\
**Replies:** 11\
**Last updated:** [August 20, 2019, 12:23pm UTC](https://discuss.elastic.co/t/native-authentication-with-basic-license/194494 "2019-08-20T12:23:10Z")

</div>

We are building a 3-node elastic cluster v7.1.0 (statefulset), and single-node Kibana (deployment) on Kuberenetes using basic license. Was wondering how can we implement native authentication?

---

## [Sorting on missing values and using search\_after](https://discuss.elastic.co/t/sorting-on-missing-values-and-using-search-after/195883)

<div class="topic-metadata">

**Author:** [@Taha\_Nemat](https://discuss.elastic.co/u/Taha_Nemat)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 12:21pm UTC](https://discuss.elastic.co/t/sorting-on-missing-values-and-using-search-after/195883 "2019-08-20T12:21:50Z")

</div>

Elasticsearch Version 7.0.0 Node.js client Node module: elasticsearch Hi, I'm trying to fetch a set of documents from elasticsearch using the node.js client (node module: elasticsearch). The problem I'm running into i…

---

## [Elasticsearch filter query score](https://discuss.elastic.co/t/elasticsearch-filter-query-score/195715)

<div class="topic-metadata">

**Author:** [@Callonski](https://discuss.elastic.co/u/Callonski)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 12:18pm UTC](https://discuss.elastic.co/t/elasticsearch-filter-query-score/195715 "2019-08-20T12:18:26Z")

</div>

Is there a way to get the score from a query with filter? Or do I need to restructure my query without filters? I would need a score between 0-1. Now it looks like this: { "from": 0, "size": 10, "query": { "bool":…

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

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