# Elasticsearch

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

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

**Page:** 391

---

## [Sub Aggregations in java API client](https://discuss.elastic.co/t/sub-aggregations-in-java-api-client/312072)

<div class="topic-metadata">

**Author:** [@Anna\_Mikhilev](https://discuss.elastic.co/u/Anna_Mikhilev)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 6:53am UTC](https://discuss.elastic.co/t/sub-aggregations-in-java-api-client/312072 "2022-08-16T06:53:13Z")

</div>

Hi, I am trying to rewrite our code for building multiple aggregations to using the new java API client 7.16.3. I can't find an example for sub aggregations TermsAggregationBuilder aggregationBuilder AggregationBuilde…

---

## [Elasticsearch curator & ES version 8.x](https://discuss.elastic.co/t/elasticsearch-curator-es-version-8-x/312134)

<div class="topic-metadata">

**Author:** [@smm](https://discuss.elastic.co/u/smm)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 6:15am UTC](https://discuss.elastic.co/t/elasticsearch-curator-es-version-8-x/312134 "2022-08-16T06:15:29Z")

</div>

Hi there, am I correct that the latest curatr version does NOT work with ES 8.x., but is limited to / till 7.x? Thanks!! Stefano

---

## [Esrally not generating any metrics](https://discuss.elastic.co/t/esrally-not-generating-any-metrics/312119)

<div class="topic-metadata">

**Author:** [@Naresh\_Sama](https://discuss.elastic.co/u/Naresh_Sama)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 4:59am UTC](https://discuss.elastic.co/t/esrally-not-generating-any-metrics/312119 "2022-08-16T04:59:33Z")

</div>

While running performance testing using esrally on Elasticsearch version 7.10, rally is able to generate the load on the cluster but, once the test reaches 100% it is failing and not giving any metrics of the benchmark. …

---

## [How to search data and show like this,all the fields in result are connected by dot?](https://discuss.elastic.co/t/how-to-search-data-and-show-like-this-all-the-fields-in-result-are-connected-by-dot/312133)

<div class="topic-metadata">

**Author:** [@jin\_liu](https://discuss.elastic.co/u/jin_liu)\
**Replies:** 0\
**Last updated:** [August 16, 2022, 2:46am UTC](https://discuss.elastic.co/t/how-to-search-data-and-show-like-this-all-the-fields-in-result-are-connected-by-dot/312133 "2022-08-16T02:46:23Z")

</div>

i found this when discover es data by kibana,all the fields are connected by dot,i wonder how to make this by es dsl? { "\_index": "zk\_mysql\_log-2022\_08", "\_type": "\_doc", "\_id": "DoEekIIBmO8s27BbCb\_1", "\_version…

---

## [Index is not getting rolled over](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124)

<div class="topic-metadata">

**Author:** [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Replies:** 5\
**Last updated:** [August 16, 2022, 1:42am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124 "2022-08-16T01:42:51Z")

</div>

Hi, I have installed the ELK 8.2 but seems rollover is not working well. index size reached to 2+ Tb. when I tried to rollover using command line POST some-index-name/\_rollover { "conditions": { "max\_age": "30…

---

## [Errors with elasticsearch-users useradd -- 7.17.1](https://discuss.elastic.co/t/errors-with-elasticsearch-users-useradd-7-17-1/312070)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 4\
**Last updated:** [August 15, 2022, 11:44pm UTC](https://discuss.elastic.co/t/errors-with-elasticsearch-users-useradd-7-17-1/312070 "2022-08-15T23:44:23Z")

</div>

I am trying to add a user to the file realm to recover from the elastic user failing to login -- I have no idea why logins started to fail. From the manual I understand that the file realm is active by default so I don…

---

## [What happened to the "Gold" subscription?](https://discuss.elastic.co/t/what-happened-to-the-gold-subscription/311506)

<div class="topic-metadata">

**Author:** [@CoaxVex](https://discuss.elastic.co/u/CoaxVex)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 10:36pm UTC](https://discuss.elastic.co/t/what-happened-to-the-gold-subscription/311506 "2022-08-15T22:36:57Z")

</div>

I was just made aware that the "Gold" subscription has been discontinued. When did this happen, and what is the reasoning behind it? Is this part of a strategy to push users to the cloud service? Many "Elastic stack" u…

---

## [How to create custom privileges for Elasticsearch x-pack?](https://discuss.elastic.co/t/how-to-create-custom-privileges-for-elasticsearch-x-pack/312097)

<div class="topic-metadata">

**Author:** [@WhatIsKibana](https://discuss.elastic.co/u/WhatIsKibana)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 8:49pm UTC](https://discuss.elastic.co/t/how-to-create-custom-privileges-for-elasticsearch-x-pack/312097 "2022-08-15T20:49:20Z")

</div>

Hello everyone, I'm using ELK stack 6.8, but I want to replace kibana with my own simple ui which will fit better for my case. My app should contain user management, restrictions for operations (eg some users will be a…

---

## [Performance of using Elasticsearch to search for people](https://discuss.elastic.co/t/performance-of-using-elasticsearch-to-search-for-people/309687)

<div class="topic-metadata">

**Author:** [@AymanHamdoun](https://discuss.elastic.co/u/AymanHamdoun)\
**Replies:** 15\
**Last updated:** [August 15, 2022, 5:18pm UTC](https://discuss.elastic.co/t/performance-of-using-elasticsearch-to-search-for-people/309687 "2022-08-15T17:18:54Z")

</div>

Problem Context I am trying to use Elasticsearch to implement user search in a platform. However its taking way too long to search. usually around 100 ms - 200 ms. I am trying to achieve something closer to 40 ms maximum…

---

## [Script in kibana](https://discuss.elastic.co/t/script-in-kibana/312036)

<div class="topic-metadata">

**Author:** [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Replies:** 11\
**Last updated:** [August 15, 2022, 5:14pm UTC](https://discuss.elastic.co/t/script-in-kibana/312036 "2022-08-15T17:14:32Z")

</div>

I am trying to use simple script but output is not desirable. for example first row is 3444 and if I divide that by 10 it should be 344.4 but it comes out to be something different. why is it happening? am I using thi…

---

## [New Java API Client: Rewrite an UpdateRequest with Script Part](https://discuss.elastic.co/t/new-java-api-client-rewrite-an-updaterequest-with-script-part/310661)

<div class="topic-metadata">

**Author:** [@aga31432432](https://discuss.elastic.co/u/aga31432432)\
**Replies:** 1\
**Last updated:** [August 15, 2022, 5:12pm UTC](https://discuss.elastic.co/t/new-java-api-client-rewrite-an-updaterequest-with-script-part/310661 "2022-08-15T17:12:06Z")

</div>

Hello everyone, We need to migrate some code from the current Java High Level REST Client (HLRC) to the new Java API Client 7.7.15. I have this snippet of Kotlin code I need to rewrite using the new Java Client API: v…

---

## [Creating a New Cluster -- To Use or Not to Use Virtualization?](https://discuss.elastic.co/t/creating-a-new-cluster-to-use-or-not-to-use-virtualization/312102)

<div class="topic-metadata">

**Author:** [@pushshift](https://discuss.elastic.co/u/pushshift)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 4:43pm UTC](https://discuss.elastic.co/t/creating-a-new-cluster-to-use-or-not-to-use-virtualization/312102 "2022-08-15T16:43:42Z")

</div>

We are in the process of securing COLO space to install new servers into a rack and to move our current Elasticsearch clusters into one larger cluster. I've read some material on virtualization and ES and I was hoping to…

---

## [Tableau connecting to ES](https://discuss.elastic.co/t/tableau-connecting-to-es/312027)

<div class="topic-metadata">

**Author:** [@kjain14](https://discuss.elastic.co/u/kjain14)\
**Replies:** 4\
**Last updated:** [August 15, 2022, 3:26pm UTC](https://discuss.elastic.co/t/tableau-connecting-to-es/312027 "2022-08-15T15:26:30Z")

</div>

Hello Folks, We are trying to connect Tableau to ES server having OSS 7.6.1 ES with OpenDistro version 1.6.0. We are exploring using Download Tableau Connector for Elasticsearch | Elastic. Is it possible to use Tableau…

---

## [Download 200k records from Elasticsearch](https://discuss.elastic.co/t/download-200k-records-from-elasticsearch/311960)

<div class="topic-metadata">

**Author:** [@snambu5878](https://discuss.elastic.co/u/snambu5878)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 2:54pm UTC](https://discuss.elastic.co/t/download-200k-records-from-elasticsearch/311960 "2022-08-15T14:54:13Z")

</div>

Hi Everyone, We have built custom analytics UI (React) and using Elasticsearch as backend for SQL queries/analysis. We have Export results button that exports the queried dataset. The requirement is to download upto 20…

---

## [Is it possible that this happens again in an upgrade?](https://discuss.elastic.co/t/is-it-possible-that-this-happens-again-in-an-upgrade/312039)

<div class="topic-metadata">

**Author:** [@odelacruzc](https://discuss.elastic.co/u/odelacruzc)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 1:42pm UTC](https://discuss.elastic.co/t/is-it-possible-that-this-happens-again-in-an-upgrade/312039 "2022-08-15T13:42:31Z")

</div>

Hi friends, we are going to migrate to the latest version of elastic 8.3, so before when we migrated from 6.x to 7.x, the alerts were affected since some configurations were automatically activated through some checkboxe…

---

## [Index \_stats index\_total should be calculated with scroll?](https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085)

<div class="topic-metadata">

**Author:** [@kin122](https://discuss.elastic.co/u/kin122)\
**Replies:** 0\
**Last updated:** [August 15, 2022, 10:55am UTC](https://discuss.elastic.co/t/index-stats-index-total-should-be-calculated-with-scroll/312085 "2022-08-15T10:55:52Z")

</div>

hi i monitors indices with \_stats API. i found index\_total affected by scroll its calculated by irate of prometheus. How do I remove the effection of scroll to get the right statsdata？

---

## [How to (offsite) backup and recover snapshots](https://discuss.elastic.co/t/how-to-offsite-backup-and-recover-snapshots/312081)

<div class="topic-metadata">

**Author:** [@Pieter\_Agenbag](https://discuss.elastic.co/u/Pieter_Agenbag)\
**Replies:** 5\
**Last updated:** [August 15, 2022, 10:30am UTC](https://discuss.elastic.co/t/how-to-offsite-backup-and-recover-snapshots/312081 "2022-08-15T10:30:15Z")

</div>

Hi - have a ES cluster consisting of lets say 20 nodes for arguments sake. Of course the indexes and shards are spread across the nodes... now lets say I do a snapshot. It looks like each node snapshots the data on its…

---

## [Error using API to connect to cluster](https://discuss.elastic.co/t/error-using-api-to-connect-to-cluster/311970)

<div class="topic-metadata">

**Author:** [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 9:18am UTC](https://discuss.elastic.co/t/error-using-api-to-connect-to-cluster/311970 "2022-08-15T09:18:05Z")

</div>

ES version 7.17.1 I have just enabled security on an existing cluster that date back to the time when one had to pay to get "security". ;). I can connect using curl on the elastic user and get the cluster health. So t…

---

## [The \_ignored field not working?](https://discuss.elastic.co/t/the-ignored-field-not-working/310460)

<div class="topic-metadata">

**Author:** [@rokcarl](https://discuss.elastic.co/u/rokcarl)\
**Replies:** 4\
**Last updated:** [August 15, 2022, 8:16am UTC](https://discuss.elastic.co/t/the-ignored-field-not-working/310460 "2022-08-15T08:16:18Z")

</div>

Summary I'm using ignore\_malformed, but get no results when searching for the \_ignored field. Details I've isolated the problem to a small example. I: Create the index with ignore\_malformed set to true. Insert a cou…

---

## [Searchable snapshots](https://discuss.elastic.co/t/searchable-snapshots/310598)

<div class="topic-metadata">

**Author:** [@Morez](https://discuss.elastic.co/u/Morez)\
**Replies:** 6\
**Last updated:** [August 15, 2022, 5:49am UTC](https://discuss.elastic.co/t/searchable-snapshots/310598 "2022-08-15T05:49:36Z")

</div>

As mentioned in the Elasticsearch documentation, searchable snapshot is created typically by ILM, when index reaches to the cold or frozen data tier. Some times ago, it was mentioned that frozen data tier is deprecated …

---

## [HashMap\<String, Object\> to JsonData in new elasticsearch Java client API](https://discuss.elastic.co/t/hashmap-string-object-to-jsondata-in-new-elasticsearch-java-client-api/311357)

<div class="topic-metadata">

**Author:** [@ALX\_DM](https://discuss.elastic.co/u/ALX_DM)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 1:58am UTC](https://discuss.elastic.co/t/hashmap-string-object-to-jsondata-in-new-elasticsearch-java-client-api/311357 "2022-08-15T01:58:38Z")

</div>

How to convert a hashmap to co.elastic.clients.json.JsonData in new elasticsearch Java client API? I am doing this conversion to provide the document to a IndexRequest.Builder. IndexRequest.Builder\<JsonData\> request = …

---

## [Secure specific indices from users manually updating documents](https://discuss.elastic.co/t/secure-specific-indices-from-users-manually-updating-documents/312042)

<div class="topic-metadata">

**Author:** [@Rakesh\_B](https://discuss.elastic.co/u/Rakesh_B)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 1:54am UTC](https://discuss.elastic.co/t/secure-specific-indices-from-users-manually-updating-documents/312042 "2022-08-15T01:54:49Z")

</div>

Hi, Elasticsearch Version: 7.16.1 ECK version: 1.6.1 We use ELK to push audit logs from one of our applications and we'd like to know if there is a way to know if any HUMAN user manually updated any documents in that …

---

## [Version\_conflict\_engine\_exception，help me](https://discuss.elastic.co/t/version-conflict-engine-exception-help-me/312065)

<div class="topic-metadata">

**Author:** [@wangshouqi111](https://discuss.elastic.co/u/wangshouqi111)\
**Replies:** 1\
**Last updated:** [August 14, 2022, 12:29pm UTC](https://discuss.elastic.co/t/version-conflict-engine-exception-help-me/312065 "2022-08-14T12:29:17Z")

</div>

Elasticsearch Version 7.1.1 client: public void index(List\<PromoSkuInfoEsEntry\> promoSkuInfoEsEntries) throws IOException { BulkRequest request = new BulkRequest(); List\<List\<PromoSkuInfoEsEntry\>\> list…

---

## [java.lang.IllegalStateException: Unable to access 'path.repo'](https://discuss.elastic.co/t/java-lang-illegalstateexception-unable-to-access-path-repo/312009)

<div class="topic-metadata">

**Author:** [@mujtabah](https://discuss.elastic.co/u/mujtabah)\
**Replies:** 6\
**Last updated:** [August 14, 2022, 9:29am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception-unable-to-access-path-repo/312009 "2022-08-14T09:29:55Z")

</div>

Hi guys, I have a single node elastic setup o windows10. i tried to create repository on shared folder. the process i did was, i created a folder (Es\_backup) in shared drive then i mapped folder on my elastic local mach…

---

## [When sorting by distance truncating the distance sort value for fallback sort criteria](https://discuss.elastic.co/t/when-sorting-by-distance-truncating-the-distance-sort-value-for-fallback-sort-criteria/312055)

<div class="topic-metadata">

**Author:** [@quesurifn](https://discuss.elastic.co/u/quesurifn)\
**Replies:** 0\
**Last updated:** [August 13, 2022, 2:50pm UTC](https://discuss.elastic.co/t/when-sorting-by-distance-truncating-the-distance-sort-value-for-fallback-sort-criteria/312055 "2022-08-13T14:50:21Z")

</div>

Hello all, We're sorting with elasticsearch like so: { "size": 300, "from": 0, "sort": \[ { "\_geo\_distance": { "geoLocation": { "lat": 29.7407, …

---

## [Getting exception while searching search as type field type](https://discuss.elastic.co/t/getting-exception-while-searching-search-as-type-field-type/310839)

<div class="topic-metadata">

**Author:** [@Munish\_Bhardwaj](https://discuss.elastic.co/u/Munish_Bhardwaj)\
**Replies:** 1\
**Last updated:** [August 13, 2022, 2:04am UTC](https://discuss.elastic.co/t/getting-exception-while-searching-search-as-type-field-type/310839 "2022-08-13T02:04:16Z")

</div>

I have a requirement where I need to implement search recommendations and I have opted for the search as you type field. My existing mapping for the field was "text" and now I have changed it to "search\_as\_you\_type" and …

---

## [\_meta: Root mapping definition has unsupported parameters](https://discuss.elastic.co/t/meta-root-mapping-definition-has-unsupported-parameters/311024)

<div class="topic-metadata">

**Author:** [@NLSVTN](https://discuss.elastic.co/u/NLSVTN)\
**Replies:** 5\
**Last updated:** [August 13, 2022, 12:00am UTC](https://discuss.elastic.co/t/meta-root-mapping-definition-has-unsupported-parameters/311024 "2022-08-13T00:00:27Z")

</div>

I have ES7. Currently the mapping looks like: { 'mappings': { 'properties': { 'aIndex': {'type': 'integer'}, 'AC': {'type': 'integer'}, 'AF': {'type': 'double'}, ... …

---

## [Sorting by date and score fails](https://discuss.elastic.co/t/sorting-by-date-and-score-fails/312014)

<div class="topic-metadata">

**Author:** [@pthreat](https://discuss.elastic.co/u/pthreat)\
**Replies:** 3\
**Last updated:** [August 12, 2022, 12:33pm UTC](https://discuss.elastic.co/t/sorting-by-date-and-score-fails/312014 "2022-08-12T12:33:18Z")

</div>

My mapping: { "id": { "type": "long" }, "type": { "type": "keyword", "ignore\_above": 32766 }, "text": { "type": "text" }, "image":{ "type": "text" …

---

## [Alerting: Email is not sent](https://discuss.elastic.co/t/alerting-email-is-not-sent/312013)

<div class="topic-metadata">

**Author:** [@CaMaNi](https://discuss.elastic.co/u/CaMaNi)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 12:00pm UTC](https://discuss.elastic.co/t/alerting-email-is-not-sent/312013 "2022-08-12T12:00:14Z")

</div>

Good day dear Elastic community, I have a small problem where I can not find the solution. Namely, I have defined a rule under "Alterts and Insights" in Stack Management. If this rule is set to "Active", an email should…

---

## [Spell Check API .NET NEST Client](https://discuss.elastic.co/t/spell-check-api-net-nest-client/312007)

<div class="topic-metadata">

**Author:** [@Biplab](https://discuss.elastic.co/u/Biplab)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 11:14am UTC](https://discuss.elastic.co/t/spell-check-api-net-nest-client/312007 "2022-08-12T11:14:58Z")

</div>

Hi, I am working on spell check query by using phrase suggester, Elasticsearch query for the same is : { "suggest": { "text" : "input\_text", "simple\_phrase" : { "phrase" : { "field" : "title", …

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

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