# Elasticsearch

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

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

**Page:** 474

---

## [Elasticsear 8.X TLS question](https://discuss.elastic.co/t/elasticsear-8-x-tls-question/299521)

<div class="topic-metadata">

**Author:** [@qq350162199](https://discuss.elastic.co/u/qq350162199)\
**Replies:** 8\
**Last updated:** [March 20, 2022, 12:51am UTC](https://discuss.elastic.co/t/elasticsear-8-x-tls-question/299521 "2022-03-20T00:51:46Z")

</div>

I'm a beginner, and the latest release of elastic 8.x is a great product that automatically configures TLS security, solves previous complex deployments, and is perfect for a little white like me. But I'm also having pr…

---

## [Undocumented behaviour: Term query on date field becomes a range query](https://discuss.elastic.co/t/undocumented-behaviour-term-query-on-date-field-becomes-a-range-query/300113)

<div class="topic-metadata">

**Author:** [@whatgeorgemade](https://discuss.elastic.co/u/whatgeorgemade)\
**Replies:** 0\
**Last updated:** [March 19, 2022, 9:36pm UTC](https://discuss.elastic.co/t/undocumented-behaviour-term-query-on-date-field-becomes-a-range-query/300113 "2022-03-19T21:36:40Z")

</div>

I was speaking with a colleague recently and I mentioned I use a term query over a date field to find matches on a certain day, like this: { "query": { "term": { "@timestamp": { "value": "2021-10-08"…

---

## [7.16.2 - ILM - max primary shard size not working](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975)

<div class="topic-metadata">

**Author:** [@SteveParker](https://discuss.elastic.co/u/SteveParker)\
**Replies:** 2\
**Last updated:** [March 19, 2022, 5:14pm UTC](https://discuss.elastic.co/t/7-16-2-ilm-max-primary-shard-size-not-working/299975 "2022-03-19T17:14:04Z")

</div>

My ILM policy has a max shard size of 50gb but my indexes are growing to 100gb+, I must have missed something, help required please

---

## [The issue with Elasticsearch 6.8 & repository-s3](https://discuss.elastic.co/t/the-issue-with-elasticsearch-6-8-repository-s3/299984)

<div class="topic-metadata">

**Author:** [@jtsunne](https://discuss.elastic.co/u/jtsunne)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 11:24pm UTC](https://discuss.elastic.co/t/the-issue-with-elasticsearch-6-8-repository-s3/299984 "2022-03-18T23:24:05Z")

</div>

I'm facing a strange issue. It was working 6 months ago. Elasticsearch version 6.8.12 was created based on the CentOS Linux release 7.9.2009 (Core) from RPM (we are using Puppet) { "name": "az-es68-master-1", "cluster…

---

## [Vector Tile API response id: (integer) Unique ID for the feature within the layer not found in hits or aggs layer](https://discuss.elastic.co/t/vector-tile-api-response-id-integer-unique-id-for-the-feature-within-the-layer-not-found-in-hits-or-aggs-layer/299952)

<div class="topic-metadata">

**Author:** [@Joseph\_Parish](https://discuss.elastic.co/u/Joseph_Parish)\
**Replies:** 6\
**Last updated:** [March 18, 2022, 8:26pm UTC](https://discuss.elastic.co/t/vector-tile-api-response-id-integer-unique-id-for-the-feature-within-the-layer-not-found-in-hits-or-aggs-layer/299952 "2022-03-18T20:26:32Z")

</div>

Hi I am testing the Vector Tile API using this repo which is an excellent tool. I would like to use the feature-id within the hits layer of a polygon, but get this: Error: The feature id parameter must be provided. I …

---

## [Pivot Transform Count of documents](https://discuss.elastic.co/t/pivot-transform-count-of-documents/300082)

<div class="topic-metadata">

**Author:** [@iamtheschmitzer](https://discuss.elastic.co/u/iamtheschmitzer)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 7:14pm UTC](https://discuss.elastic.co/t/pivot-transform-count-of-documents/300082 "2022-03-18T19:14:20Z")

</div>

This seems to work, is it the best way? In a pivot transform, I want a count of the documents included in the aggregation. I tried this and it seemed to work. However feeling uneasy without a vote of confidence from t…

---

## [How to make writing on ElasticSearch safe?](https://discuss.elastic.co/t/how-to-make-writing-on-elasticsearch-safe/300018)

<div class="topic-metadata">

**Author:** [@TonyAgosta](https://discuss.elastic.co/u/TonyAgosta)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 9:18am UTC](https://discuss.elastic.co/t/how-to-make-writing-on-elasticsearch-safe/300018 "2022-03-18T09:18:34Z")

</div>

Hi to all, I'm new on this community. My application write on Elasticsearch index using Apache Camel routes. Sometimes it happens that my Elasticsearch is not reachable and therefore the data that should be written at …

---

## [Issue with master nodes being deleted and no new master being selected](https://discuss.elastic.co/t/issue-with-master-nodes-being-deleted-and-no-new-master-being-selected/300062)

<div class="topic-metadata">

**Author:** [@arvinds](https://discuss.elastic.co/u/arvinds)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 3:51pm UTC](https://discuss.elastic.co/t/issue-with-master-nodes-being-deleted-and-no-new-master-being-selected/300062 "2022-03-18T15:51:24Z")

</div>

Hi, all, thanks in advance for taking the time to read through this: I am running a cluster on a docker swarm on a bare metal server and I have gotten into a state where the master node is never selected: { "type":…

---

## [Frozen tier heap space](https://discuss.elastic.co/t/frozen-tier-heap-space/300032)

<div class="topic-metadata">

**Author:** [@bolemebrige](https://discuss.elastic.co/u/bolemebrige)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 11:23am UTC](https://discuss.elastic.co/t/frozen-tier-heap-space/300032 "2022-03-18T11:23:58Z")

</div>

What are recommendations for size of heap space on frozen data tier nodes?

---

## [How to get inner hits field values in Nest or Elastic.Net library ? Alterantivly how to specify output type in Nest or Elastic.Net library?](https://discuss.elastic.co/t/how-to-get-inner-hits-field-values-in-nest-or-elastic-net-library-alterantivly-how-to-specify-output-type-in-nest-or-elastic-net-library/299977)

<div class="topic-metadata">

**Author:** [@SZHURAVSKYI](https://discuss.elastic.co/u/SZHURAVSKYI)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 4:57pm UTC](https://discuss.elastic.co/t/how-to-get-inner-hits-field-values-in-nest-or-elastic-net-library-alterantivly-how-to-specify-output-type-in-nest-or-elastic-net-library/299977 "2022-03-17T16:57:07Z")

</div>

Hi, I am new to Elasticsearch and I am having troubles with the Nest/Elastic.Net library. I would like to retrieve not entire document but just part of it. I am able to do it in Postman but I cannot do it via Elastic.N…

---

## [Mongodb connection](https://discuss.elastic.co/t/mongodb-connection/300023)

<div class="topic-metadata">

**Author:** [@shamir](https://discuss.elastic.co/u/shamir)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 10:41am UTC](https://discuss.elastic.co/t/mongodb-connection/300023 "2022-03-18T10:41:03Z")

</div>

curl -XPUT 'https://localhost:9200/\_river/mongodb/\_meta' -d '{ \> "type": "mongodb", \> "mongodb": { \> "db": "appbroda", \> "collection": "users" \> }, \> "index": { \> "name": "appbrodai…

---

## [What is the string id under the ApiKeyAuthenticationCredential .Net API referring to](https://discuss.elastic.co/t/what-is-the-string-id-under-the-apikeyauthenticationcredential-net-api-referring-to/298207)

<div class="topic-metadata">

**Author:** [@Raymond\_Lei](https://discuss.elastic.co/u/Raymond_Lei)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 10:28am UTC](https://discuss.elastic.co/t/what-is-the-string-id-under-the-apikeyauthenticationcredential-net-api-referring-to/298207 "2022-03-18T10:28:28Z")

</div>

Hello, within the .Net API, one of the constructor for new ApiKeyAuthenticationCredentials wants me to supply string id and the string apikey for the authentication. I am wondering what is it looking for? I tried the d…

---

## [Elastic search with proximity search and score](https://discuss.elastic.co/t/elastic-search-with-proximity-search-and-score/299937)

<div class="topic-metadata">

**Author:** [@fizhhh1997](https://discuss.elastic.co/u/fizhhh1997)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 9:01am UTC](https://discuss.elastic.co/t/elastic-search-with-proximity-search-and-score/299937 "2022-03-18T09:01:00Z")

</div>

Hello all, how can i use proximity search and relevant score to get data with high accurate, and difference between Elasticsearch and Solr

---

## [Elastic Cloud - Upgrade button not available](https://discuss.elastic.co/t/elastic-cloud-upgrade-button-not-available/299956)

<div class="topic-metadata">

**Author:** [@axi](https://discuss.elastic.co/u/axi)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 8:40am UTC](https://discuss.elastic.co/t/elastic-cloud-upgrade-button-not-available/299956 "2022-03-18T08:40:51Z")

</div>

My deployment is version 6.6 and I want to upgrade to 6.8 first (before going to 7.x) but there is no upgrade button available. Support keep telling me I just have to upgrade to 6.8...

---

## [New JAVA API Documentation](https://discuss.elastic.co/t/new-java-api-documentation/299559)

<div class="topic-metadata">

**Author:** [@willypol](https://discuss.elastic.co/u/willypol)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 8:33am UTC](https://discuss.elastic.co/t/new-java-api-documentation/299559 "2022-03-18T08:33:54Z")

</div>

Hello, first of all congratulations on the new version of Elastic. A month ago we were translating a java software that uses Elasticsearch. We switched to the new Java API (with very poor documentation) and it took a lot…

---

## [Index from restore larger than source index?](https://discuss.elastic.co/t/index-from-restore-larger-than-source-index/300012)

<div class="topic-metadata">

**Author:** [@Rahmat\_Agung\_W](https://discuss.elastic.co/u/Rahmat_Agung_W)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 8:18am UTC](https://discuss.elastic.co/t/index-from-restore-larger-than-source-index/300012 "2022-03-18T08:18:00Z")

</div>

Hi, so I have 2 Elasticsearch cluster (A and B). I create snapshot from cluster A and then restore it to cluster B. I use 1 index replica on cluster A and in cluster B I change my index replica to 2. The result is like b…

---

## [Restore elasticsearch snapshot to existing index](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185)

<div class="topic-metadata">

**Author:** [@Rahmat\_Agung\_W](https://discuss.elastic.co/u/Rahmat_Agung_W)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 8:11am UTC](https://discuss.elastic.co/t/restore-elasticsearch-snapshot-to-existing-index/299185 "2022-03-18T08:11:31Z")

</div>

So I want to migrate Elasticsearch data to new cluster and n my old cluster I create daily snapshot. I restore the snapshot to new cluster once, and the next day when I try to restore again I get an error because the ind…

---

## [Pagination within a terms aggregation](https://discuss.elastic.co/t/pagination-within-a-terms-aggregation/299996)

<div class="topic-metadata">

**Author:** [@qcoumes](https://discuss.elastic.co/u/qcoumes)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 7:27am UTC](https://discuss.elastic.co/t/pagination-within-a-terms-aggregation/299996 "2022-03-18T07:27:53Z")

</div>

I have a nested field datas which is inside the also nested field documents. I'd like to retrieve the paginated list of concepts buckets (built using a terms aggregation). I managed to retrieve the list without any p…

---

## [Create new co.elastic.clients.elasticsearch.ElasticsearchClient from RestClientBuilder in Java with elastic version 8.1.0](https://discuss.elastic.co/t/create-new-co-elastic-clients-elasticsearch-elasticsearchclient-from-restclientbuilder-in-java-with-elastic-version-8-1-0/300005)

<div class="topic-metadata">

**Author:** [@Raushan](https://discuss.elastic.co/u/Raushan)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 6:52am UTC](https://discuss.elastic.co/t/create-new-co-elastic-clients-elasticsearch-elasticsearchclient-from-restclientbuilder-in-java-with-elastic-version-8-1-0/300005 "2022-03-18T06:52:07Z")

</div>

Hi, I'm migrating from HLRC to \[Elasticsearch Java API Client \[8.0\]\] with Java. Unable to create instance of ElasticsearchClient.

---

## [Fuzziness in span query losing 1 edit distance](https://discuss.elastic.co/t/fuzziness-in-span-query-losing-1-edit-distance/299921)

<div class="topic-metadata">

**Author:** [@GoaKoala](https://discuss.elastic.co/u/GoaKoala)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 4:14am UTC](https://discuss.elastic.co/t/fuzziness-in-span-query-losing-1-edit-distance/299921 "2022-03-18T04:14:25Z")

</div>

Hi, I am trying to do a fuzzy matching with phrase search. (This is already mentioned here : Combine Phrases search AND fuzzy matching and here : Elasticsearch Fuzzy Phrases - Stack Overflow) I managed to solve the iss…

---

## [Unable to connet to localhost:9200](https://discuss.elastic.co/t/unable-to-connet-to-localhost-9200/299945)

<div class="topic-metadata">

**Author:** [@shamir](https://discuss.elastic.co/u/shamir)\
**Replies:** 6\
**Last updated:** [March 17, 2022, 7:13pm UTC](https://discuss.elastic.co/t/unable-to-connet-to-localhost-9200/299945 "2022-03-17T19:13:33Z")

</div>

in terminal it shows Elasticsearch status as active and running when i try to run this command it returning empty

---

## [Running a Match across Array and treating each row exclusively](https://discuss.elastic.co/t/running-a-match-across-array-and-treating-each-row-exclusively/299096)

<div class="topic-metadata">

**Author:** [@snoopy20](https://discuss.elastic.co/u/snoopy20)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 4:59pm UTC](https://discuss.elastic.co/t/running-a-match-across-array-and-treating-each-row-exclusively/299096 "2022-03-17T16:59:07Z")

</div>

Hi, I had several keys on an object (such as .name1, .name2) and was using dis\_max along with match to run independent and identical queries and return the one with the highest score. Now the data has changed to an Arra…

---

## [Understand async and wait\_for mode](https://discuss.elastic.co/t/understand-async-and-wait-for-mode/299939)

<div class="topic-metadata">

**Author:** [@Remy\_Letient](https://discuss.elastic.co/u/Remy_Letient)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 3:14pm UTC](https://discuss.elastic.co/t/understand-async-and-wait-for-mode/299939 "2022-03-17T15:14:33Z")

</div>

Hi, A question about the async mode (when I don't specify the option 'refresh=wait\_for') and when I specify. Qeustion: in the same index I have 2 documents: 'A' and 'B'. If I update the document 'A' with no refresh op…

---

## [Cannot disable security in 8.1](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857)

<div class="topic-metadata">

**Author:** [@fulkon](https://discuss.elastic.co/u/fulkon)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 2:37pm UTC](https://discuss.elastic.co/t/cannot-disable-security-in-8-1/299857 "2022-03-17T14:37:47Z")

</div>

I need elasticsearch without any security. In 7.17 it was enough to set xpack.security.enabled: false, but in 8.1.0 got error on startup: org.elasticsearch.ElasticsearchSecurityException: invalid configuration for xpack…

---

## [A few questions around the can\_match feature](https://discuss.elastic.co/t/a-few-questions-around-the-can-match-feature/297713)

<div class="topic-metadata">

**Author:** [@Bryan\_Hamilton](https://discuss.elastic.co/u/Bryan_Hamilton)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 2:13pm UTC](https://discuss.elastic.co/t/a-few-questions-around-the-can-match-feature/297713 "2022-03-17T14:13:32Z")

</div>

Hi, @jpountz and @ruflin. I working on a migration path to migrate our on-prem environment from xxxbeat-\* type indices to datastreams based on the elastic Agent. This will require updating/recreating all sorts of objects…

---

## [How to enable security on an existing 8.1 multi nodes docker cluster](https://discuss.elastic.co/t/how-to-enable-security-on-an-existing-8-1-multi-nodes-docker-cluster/299268)

<div class="topic-metadata">

**Author:** [@jean.bissonnette](https://discuss.elastic.co/u/jean.bissonnette)\
**Replies:** 5\
**Last updated:** [March 17, 2022, 2:07pm UTC](https://discuss.elastic.co/t/how-to-enable-security-on-an-existing-8-1-multi-nodes-docker-cluster/299268 "2022-03-17T14:07:33Z")

</div>

I have an existing 5 nodes podman cluster. 4 nodes are on one VM, another node is on another VM. Security is not enabled (xpack.security.enabled: false). I tried to setup security by calling: bin/Elasticsearch-setup-p…

---

## [Saving percolator with query string and wildcard fields search](https://discuss.elastic.co/t/saving-percolator-with-query-string-and-wildcard-fields-search/293991)

<div class="topic-metadata">

**Author:** [@vohanka](https://discuss.elastic.co/u/vohanka)\
**Replies:** 8\
**Last updated:** [March 17, 2022, 1:33pm UTC](https://discuss.elastic.co/t/saving-percolator-with-query-string-and-wildcard-fields-search/293991 "2022-03-17T13:33:20Z")

</div>

Hello I am trying to save percolator query with code which looks like this "query": "Content.\\\\\*:apple OR android" but i got error response which looks like this No field mapping can be found for the field with name …

---

## [Failed to query elasticsearch for previous event Cannot cast org.jruby.RubyNil to org.jruby.RubyString](https://discuss.elastic.co/t/failed-to-query-elasticsearch-for-previous-event-cannot-cast-org-jruby-rubynil-to-org-jruby-rubystring/299953)

<div class="topic-metadata">

**Author:** [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 1:06pm UTC](https://discuss.elastic.co/t/failed-to-query-elasticsearch-for-previous-event-cannot-cast-org-jruby-rubynil-to-org-jruby-rubystring/299953 "2022-03-17T13:06:18Z")

</div>

Im using Elasticsearch filter plugin as below elasticsearch { hosts =\> \["localhost:9200"\] index =\> "dashboard\_write" query =\> "sessionID:%{\[sid\]}" fields =\> \["authsid","sid"\] …

---

## [Elasticsearch-java - BulkOperation and IndexRequest have different behaviour with same custom JsonpSerializer](https://discuss.elastic.co/t/elasticsearch-java-bulkoperation-and-indexrequest-have-different-behaviour-with-same-custom-jsonpserializer/298496)

<div class="topic-metadata">

**Author:** [@fmarazita](https://discuss.elastic.co/u/fmarazita)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 11:10am UTC](https://discuss.elastic.co/t/elasticsearch-java-bulkoperation-and-indexrequest-have-different-behaviour-with-same-custom-jsonpserializer/298496 "2022-03-17T11:10:20Z")

</div>

Hi, It seems that BulkOperation and IndexRequest with same tDocumentSerialization have different behaviour. Elastic version: 7.16.3 I created a test with the same upsert operation, with and without using bulk operatio…

---

## [Unassigned shards because of different elasticsearch version](https://discuss.elastic.co/t/unassigned-shards-because-of-different-elasticsearch-version/299182)

<div class="topic-metadata">

**Author:** [@aman123](https://discuss.elastic.co/u/aman123)\
**Replies:** 5\
**Last updated:** [March 17, 2022, 10:33am UTC](https://discuss.elastic.co/t/unassigned-shards-because-of-different-elasticsearch-version/299182 "2022-03-17T10:33:06Z")

</div>

Hi All, Recently I have upgraded the one data node , Node got successfully upgraded but there are some unassigned shards which are not being replicated to other nodes because of below error: "explanation" : "cannot all…

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

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