# Elasticsearch

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

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

**Page:** 429

---

## [How to update a single field using the Java API Client?](https://discuss.elastic.co/t/how-to-update-a-single-field-using-the-java-api-client/306679)

<div class="topic-metadata">

**Author:** [@dsc](https://discuss.elastic.co/u/dsc)\
**Replies:** 1\
**Last updated:** [June 8, 2022, 12:33pm UTC](https://discuss.elastic.co/t/how-to-update-a-single-field-using-the-java-api-client/306679 "2022-06-08T12:33:34Z")

</div>

I'm currently using the deprecated Java High Level REST Client to partially update a document using something similar to the guide: Update API | Java REST Client \[7.17\] | Elastic I'm trying to migrate to the latest Elas…

---

## [Not able to add Elasticsearch Cloud in Azure due to required "Subscription owner" permission not allowed](https://discuss.elastic.co/t/not-able-to-add-elasticsearch-cloud-in-azure-due-to-required-subscription-owner-permission-not-allowed/306197)

<div class="topic-metadata">

**Author:** [@arunvelu](https://discuss.elastic.co/u/arunvelu)\
**Replies:** 4\
**Last updated:** [June 8, 2022, 12:10pm UTC](https://discuss.elastic.co/t/not-able-to-add-elasticsearch-cloud-in-azure-due-to-required-subscription-owner-permission-not-allowed/306197 "2022-06-08T12:10:36Z")

</div>

Hello, We are looking to try Elasticsearch in Azure for analyzing the application's log data. To do this, I planned on creating an instance in Azure, but I get an error message at creation – “Validation failed. Only sub…

---

## [Getting incorrect inner hits from parent child relationship when combined with boolean query](https://discuss.elastic.co/t/getting-incorrect-inner-hits-from-parent-child-relationship-when-combined-with-boolean-query/306688)

<div class="topic-metadata">

**Author:** [@Mohammad\_Parsa](https://discuss.elastic.co/u/Mohammad_Parsa)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 11:26am UTC](https://discuss.elastic.co/t/getting-incorrect-inner-hits-from-parent-child-relationship-when-combined-with-boolean-query/306688 "2022-06-08T11:26:52Z")

</div>

Hi Everyone I am getting incorrect inner hits results when combining parent-child query with boolean query. To reproduce the issue, I create this Index PUT /my-index-000001 { "mappings": { "\_routing": { "r…

---

## [Find nested document by min value of its field and apply another filters on this document](https://discuss.elastic.co/t/find-nested-document-by-min-value-of-its-field-and-apply-another-filters-on-this-document/306689)

<div class="topic-metadata">

**Author:** [@Nat123](https://discuss.elastic.co/u/Nat123)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 11:31am UTC](https://discuss.elastic.co/t/find-nested-document-by-min-value-of-its-field-and-apply-another-filters-on-this-document/306689 "2022-06-08T11:31:27Z")

</div>

Hello, I have a document (user) and a list of nested documents (orders) in Elastic. I need to find a user with an order satisfied a bunch of conditions: the status of order should have some specific value, its id should…

---

## [Multiple alerts from a single watch script - feasible?](https://discuss.elastic.co/t/multiple-alerts-from-a-single-watch-script-feasible/306685)

<div class="topic-metadata">

**Author:** [@Souvik\_Das](https://discuss.elastic.co/u/Souvik_Das)\
**Replies:** 1\
**Last updated:** [June 8, 2022, 11:14am UTC](https://discuss.elastic.co/t/multiple-alerts-from-a-single-watch-script-feasible/306685 "2022-06-08T11:14:22Z")

</div>

Hi All, Let me brief the scenario and the objective. The requirement is to create watcher alerts for different items where the threshold and timeframe are the same. Now to make it happen, I have created separate watch…

---

## [Increase max\_bucket to 60,000 or make 6 msearch returning 10,000 buckets each?](https://discuss.elastic.co/t/increase-max-bucket-to-60-000-or-make-6-msearch-returning-10-000-buckets-each/306480)

<div class="topic-metadata">

**Author:** [@misterone](https://discuss.elastic.co/u/misterone)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 10:50am UTC](https://discuss.elastic.co/t/increase-max-bucket-to-60-000-or-make-6-msearch-returning-10-000-buckets-each/306480 "2022-06-08T10:50:55Z")

</div>

hey, I have a query that does this. It's a bunch of terms aggregations. (group by = terms) filter by date from year 2015 to 2020 group by region group by date from year 2015 to 2020 group by country grou…

---

## [How to install kibana and logstash as service in windows server](https://discuss.elastic.co/t/how-to-install-kibana-and-logstash-as-service-in-windows-server/306587)

<div class="topic-metadata">

**Author:** [@jisha](https://discuss.elastic.co/u/jisha)\
**Replies:** 1\
**Last updated:** [June 8, 2022, 8:57am UTC](https://discuss.elastic.co/t/how-to-install-kibana-and-logstash-as-service-in-windows-server/306587 "2022-06-08T08:57:53Z")

</div>

How to install kibana and logstash as service in windows server? Can please someone help with the command

---

## [Granting Privileges on Datastream Alias not the same in Backing Indices](https://discuss.elastic.co/t/granting-privileges-on-datastream-alias-not-the-same-in-backing-indices/306643)

<div class="topic-metadata">

**Author:** [@Silver137](https://discuss.elastic.co/u/Silver137)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 7:28am UTC](https://discuss.elastic.co/t/granting-privileges-on-datastream-alias-not-the-same-in-backing-indices/306643 "2022-06-08T07:28:08Z")

</div>

I'm using filebeat and i have created 3 datastreams . PUT \_data\_stream/data\_s1-2022.06.08 PUT \_data\_stream/data\_s2-2022.06.08 PUT \_data\_stream/data\_s3-2022.06.08 And created 3 alias for that datastreams: POST \_aliases…

---

## [How to search in attachment content?](https://discuss.elastic.co/t/how-to-search-in-attachment-content/305287)

<div class="topic-metadata">

**Author:** [@frankmehlhop](https://discuss.elastic.co/u/frankmehlhop)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 7:17am UTC](https://discuss.elastic.co/t/how-to-search-in-attachment-content/305287 "2022-06-08T07:17:33Z")

</div>

I ingest pdf files into elastic. I can successful search in it using Kibana Console. But at my C# code I don't get any result. I'm quit sure the problem is syntax of my code. But I tried many things and still I don't…

---

## [ELK 7.16.2 hardware requirements - suggestions?](https://discuss.elastic.co/t/elk-7-16-2-hardware-requirements-suggestions/306475)

<div class="topic-metadata">

**Author:** [@Ely\_96](https://discuss.elastic.co/u/Ely_96)\
**Replies:** 7\
**Last updated:** [June 8, 2022, 7:12am UTC](https://discuss.elastic.co/t/elk-7-16-2-hardware-requirements-suggestions/306475 "2022-06-08T07:12:07Z")

</div>

Hi Guys, I am using the ELK stack in version 7.16.2 and I would like to ask for some suggestions about the hardware configuration. My Elastic will receive a log of 5 MB every day and I would like to have a retention of …

---

## [How to install Kibana and logstash as service in winodws?](https://discuss.elastic.co/t/how-to-install-kibana-and-logstash-as-service-in-winodws/306622)

<div class="topic-metadata">

**Author:** [@jisha](https://discuss.elastic.co/u/jisha)\
**Replies:** 1\
**Last updated:** [June 8, 2022, 4:15am UTC](https://discuss.elastic.co/t/how-to-install-kibana-and-logstash-as-service-in-winodws/306622 "2022-06-08T04:15:09Z")

</div>

how to install Kibana and logstash(v.7.17.3) as service in winodws can please someone help with command line

---

## [Reindex from Remote not working](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532)

<div class="topic-metadata">

**Author:** [@Bit\_Addict](https://discuss.elastic.co/u/Bit_Addict)\
**Replies:** 3\
**Last updated:** [June 8, 2022, 4:04am UTC](https://discuss.elastic.co/t/reindex-from-remote-not-working/306532 "2022-06-08T04:04:40Z")

</div>

Hi, I am trying to migrate all watchers from one cluster to another (both on 7.9.2) using the "Reindex from remote" feature, but it looks like the reindex is not picking up any documents. POST \_reindex { "source": { …

---

## [Explain API for Phrase Suggester](https://discuss.elastic.co/t/explain-api-for-phrase-suggester/306619)

<div class="topic-metadata">

**Author:** [@KR09](https://discuss.elastic.co/u/KR09)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 3:31am UTC](https://discuss.elastic.co/t/explain-api-for-phrase-suggester/306619 "2022-06-08T03:31:10Z")

</div>

Hi All, We are using Phrase Suggester to implement "Did you mean" functionality. We have added direct\_generator to control min\_word\_length,collate to only return the suggestion based on the documents present in the inde…

---

## [Query : GET average document count](https://discuss.elastic.co/t/query-get-average-document-count/306556)

<div class="topic-metadata">

**Author:** [@A\_j\_xx](https://discuss.elastic.co/u/A_j_xx)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 1:46am UTC](https://discuss.elastic.co/t/query-get-average-document-count/306556 "2022-06-08T01:46:41Z")

</div>

Hi all , What would be the query to get average number of documents added per day on my index ? Is there any workaround or query to aggregate this data ? Thanks ! Hope to get a response

---

## [Change datastream target with Ingest pipeline](https://discuss.elastic.co/t/change-datastream-target-with-ingest-pipeline/306613)

<div class="topic-metadata">

**Author:** [@InJong\_Park](https://discuss.elastic.co/u/InJong_Park)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 12:59am UTC](https://discuss.elastic.co/t/change-datastream-target-with-ingest-pipeline/306613 "2022-06-08T00:59:46Z")

</div>

Can i change datastream target with ingest-pipeline? ex) set -\> data\_stream.namespace: {{{k8s.pod.name}}} or dynamic namespace with fleet's integration. ex) in integration ui Namespace: {{{k8s.pod.name}}} 'k8s.p…

---

## [Unassigned shards](https://discuss.elastic.co/t/unassigned-shards/306526)

<div class="topic-metadata">

**Author:** [@petezhang](https://discuss.elastic.co/u/petezhang)\
**Replies:** 2\
**Last updated:** [June 7, 2022, 10:55pm UTC](https://discuss.elastic.co/t/unassigned-shards/306526 "2022-06-07T22:55:38Z")

</div>

Really need help on the unassigned-shard: "unassigned\_info": { "reason": "INDEX\_REOPENED", "details": null, "allocation\_status": "no\_valid\_shard\_copy" }, "index": "\<service\_name\>~\<inde…

---

## [Query help - return proximity between terms?](https://discuss.elastic.co/t/query-help-return-proximity-between-terms/306604)

<div class="topic-metadata">

**Author:** [@iross](https://discuss.elastic.co/u/iross)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 8:57pm UTC](https://discuss.elastic.co/t/query-help-return-proximity-between-terms/306604 "2022-06-07T20:57:14Z")

</div>

Hello- I'm interested in returning the minimum "distance" between two terms within an (analyzed) text document. For example, given a sentence of "The quick brown fox jumped over the lazy dog," I'd like to be able to ext…

---

## [Hardware profiles - days of data available for fast access](https://discuss.elastic.co/t/hardware-profiles-days-of-data-available-for-fast-access/306574)

<div class="topic-metadata">

**Author:** [@sz\_bb](https://discuss.elastic.co/u/sz_bb)\
**Replies:** 1\
**Last updated:** [June 7, 2022, 3:51pm UTC](https://discuss.elastic.co/t/hardware-profiles-days-of-data-available-for-fast-access/306574 "2022-06-07T15:51:08Z")

</div>

My team is using Elastic Cloud (Azure cloud provider) and we recently noticed that the hardware profiles have changed when creating a new deployment. Previously, we had chosen the I/O optimized profile which is no longer…

---

## [Error in Java High Level Rest Client license page?](https://discuss.elastic.co/t/error-in-java-high-level-rest-client-license-page/306580)

<div class="topic-metadata">

**Author:** [@shuber](https://discuss.elastic.co/u/shuber)\
**Replies:** 1\
**Last updated:** [June 7, 2022, 3:36pm UTC](https://discuss.elastic.co/t/error-in-java-high-level-rest-client-license-page/306580 "2022-06-07T15:36:58Z")

</div>

On this page: It says the Java High Level Rest Client is under an Apache 2 license ? Isn't that a mistake ? From my understanding this was true until version 7.10 but after it's only available under the Elastic/SSPL r…

---

## [NEST product check call fails every time](https://discuss.elastic.co/t/nest-product-check-call-fails-every-time/306348)

<div class="topic-metadata">

**Author:** [@Kristinn\_Vikar](https://discuss.elastic.co/u/Kristinn_Vikar)\
**Replies:** 3\
**Last updated:** [June 7, 2022, 2:25pm UTC](https://discuss.elastic.co/t/nest-product-check-call-fails-every-time/306348 "2022-06-07T14:25:03Z")

</div>

Hello! I'm writing a program using .NET 6.0 and NEST 7.17.2 to import a bunch of data into Elasticsearch But whenever I try to import any data with BulkAll or Index I always run into the same exception service\_1 | Inv…

---

## [Elasticsearch keystore reloadable settings](https://discuss.elastic.co/t/elasticsearch-keystore-reloadable-settings/306546)

<div class="topic-metadata">

**Author:** [@Dheeraj\_Lalwani](https://discuss.elastic.co/u/Dheeraj_Lalwani)\
**Replies:** 4\
**Last updated:** [June 7, 2022, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-reloadable-settings/306546 "2022-06-07T13:23:52Z")

</div>

Hello we are using Elasticsearch 7.16.3 with ssl enabled. We have stored following settings in the Elasticsearch-keystore for that- xpack.security.http.ssl.keystore.secure\_password xpack.security.http.ssl.truststore.s…

---

## [Create New Index Using Mapping from another index](https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567)

<div class="topic-metadata">

**Author:** [@SUMANT\_MISHRA](https://discuss.elastic.co/u/SUMANT_MISHRA)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 12:50pm UTC](https://discuss.elastic.co/t/create-new-index-using-mapping-from-another-index/306567 "2022-06-07T12:50:02Z")

</div>

Hi, Is there a way to create index by using mapping from another index? The requirement is here to copy data from one index to another that can be achieved using reindex API but the mapping updates in the source index. …

---

## [Custom date format in elasticsearch](https://discuss.elastic.co/t/custom-date-format-in-elasticsearch/306218)

<div class="topic-metadata">

**Author:** [@Pranjal\_Sett](https://discuss.elastic.co/u/Pranjal_Sett)\
**Replies:** 3\
**Last updated:** [June 7, 2022, 12:08pm UTC](https://discuss.elastic.co/t/custom-date-format-in-elasticsearch/306218 "2022-06-07T12:08:03Z")

</div>

Hi, I am trying to index the data with the data as May 26 2022 17:41:24 . I have given the format in my index template as MMM d Y H:m:s . I have been following this link for formatting http://joda-time.sourceforge.net…

---

## [Get Aggregate results grouped by nested field value(s)](https://discuss.elastic.co/t/get-aggregate-results-grouped-by-nested-field-value-s/306554)

<div class="topic-metadata">

**Author:** [@Vignesh\_Theyagarajan](https://discuss.elastic.co/u/Vignesh_Theyagarajan)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 10:47am UTC](https://discuss.elastic.co/t/get-aggregate-results-grouped-by-nested-field-value-s/306554 "2022-06-07T10:47:04Z")

</div>

Sample input json: Email1 - Paragraph1: { “ParagraphId”: “Para1", “EmailId”: “Email1", “Content”: “The city is Chennai”, “Tags”: \[ { “TagId”: “Tag1”, “Name: “City”, …

---

## [The problem that the query thrown into the elastic sometimes responds and sometimes does not](https://discuss.elastic.co/t/the-problem-that-the-query-thrown-into-the-elastic-sometimes-responds-and-sometimes-does-not/306463)

<div class="topic-metadata">

**Author:** [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Replies:** 2\
**Last updated:** [June 7, 2022, 6:02am UTC](https://discuss.elastic.co/t/the-problem-that-the-query-thrown-into-the-elastic-sometimes-responds-and-sometimes-does-not/306463 "2022-06-07T06:02:26Z")

</div>

Hello friends, I am facing a problem. I am throwing a query with no error in Elasticsearch. For example, I want it to fetch about 10 thousand or 20 thousand documents, sorted by date and fulfilling some conditions. I'm d…

---

## [So many segments under 2mb](https://discuss.elastic.co/t/so-many-segments-under-2mb/306536)

<div class="topic-metadata">

**Author:** [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Replies:** 6\
**Last updated:** [June 7, 2022, 8:26am UTC](https://discuss.elastic.co/t/so-many-segments-under-2mb/306536 "2022-06-07T08:26:31Z")

</div>

The default parameter index.merge.policy.floor\_segment is 2mb, but why there are still so many segments under 2mb, even through I send command POST indices\_name/\_forcemerge many times.

---

## [Exception occurred during upserting to Elasticsearch](https://discuss.elastic.co/t/exception-occurred-during-upserting-to-elasticsearch/306534)

<div class="topic-metadata">

**Author:** [@Clyton](https://discuss.elastic.co/u/Clyton)\
**Replies:** 0\
**Last updated:** [June 7, 2022, 7:22am UTC](https://discuss.elastic.co/t/exception-occurred-during-upserting-to-elasticsearch/306534 "2022-06-07T07:22:14Z")

</div>

Hi All, We are encountering the issue while we happened to push the bulk data into Elasticsearch. Error Details: "errorCode" : "UOP-OVI-E30102" , "errorMessage" : "Exception occurred during Upserting to Elasticsearch.…

---

## [Multiple cluster](https://discuss.elastic.co/t/multiple-cluster/306529)

<div class="topic-metadata">

**Author:** [@A\_j\_xx](https://discuss.elastic.co/u/A_j_xx)\
**Replies:** 3\
**Last updated:** [June 7, 2022, 7:14am UTC](https://discuss.elastic.co/t/multiple-cluster/306529 "2022-06-07T07:14:06Z")

</div>

Hi all , How do i setup a 2nd cluster on my local machine , assuming 1 cluster is already learning ? Is there any official documentation which i should refer as i was not able to find anything suitable on internet Tha…

---

## [Elastic rally-tracks stable branch](https://discuss.elastic.co/t/elastic-rally-tracks-stable-branch/306530)

<div class="topic-metadata">

**Author:** [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Replies:** 2\
**Last updated:** [June 7, 2022, 7:09am UTC](https://discuss.elastic.co/t/elastic-rally-tracks-stable-branch/306530 "2022-06-07T07:09:26Z")

</div>

Hi All, I am looking to use the elastic rally tracks stable branch. I see there are list of branches but am not able to figure out the latest stable branch to use. kindly help me out.

---

## [Upgrade Elasticsearch from 7.4.1 to 7.93](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-4-1-to-7-93/306531)

<div class="topic-metadata">

**Author:** [@cosminh](https://discuss.elastic.co/u/cosminh)\
**Replies:** 1\
**Last updated:** [June 7, 2022, 7:03am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-7-4-1-to-7-93/306531 "2022-06-07T07:03:24Z")

</div>

Hello, Is there a procedure on how to upgrade step-by-step Elasticsearch from 7.4.1 to 7.9.3 and at the same keep all the existing settings? example: stop Elastisearch service do this 3 do that etc. Thank you, Cos…

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

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