# Elasticsearch

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

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

**Page:** 436

---

## [Security vulnerabilities in Elasticsearch docker images - v 8.2.0](https://discuss.elastic.co/t/security-vulnerabilities-in-elasticsearch-docker-images-v-8-2-0/305559)

<div class="topic-metadata">

**Author:** [@salvoj](https://discuss.elastic.co/u/salvoj)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 5:23am UTC](https://discuss.elastic.co/t/security-vulnerabilities-in-elasticsearch-docker-images-v-8-2-0/305559 "2022-05-26T05:23:56Z")

</div>

Hi, My team recently deployed Elasticsearch v 8.2.0 into an HPE Ezmeral Container Platform (kubernetes based) using ECK. Everything is working. However, this platform run a Vulnerability scan on new containers and det…

---

## [Empty server certificate chain after upgrading from ES 6.8.0.1 to ES 6.8.22](https://discuss.elastic.co/t/empty-server-certificate-chain-after-upgrading-from-es-6-8-0-1-to-es-6-8-22/305598)

<div class="topic-metadata">

**Author:** [@Sandhyarani\_Sahoo](https://discuss.elastic.co/u/Sandhyarani_Sahoo)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 11:20am UTC](https://discuss.elastic.co/t/empty-server-certificate-chain-after-upgrading-from-es-6-8-0-1-to-es-6-8-22/305598 "2022-05-25T11:20:00Z")

</div>

Hello, After the upgrade from 6.8.0.1 to ES 6.8.22 to resolve log4J issue, Elastic threw exception in the logs an "empty server certificate chain" exception. I am using the following configuration: Elasticsearch.yml: …

---

## [Delete unnecessary mappings from a given index](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612)

<div class="topic-metadata">

**Author:** [@nunex\_17](https://discuss.elastic.co/u/nunex_17)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 11:43pm UTC](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612 "2022-05-25T23:43:33Z")

</div>

Hi, I have an index template called "suricata-ids" created by default from Filebeat. This index template has many fields that are simply not used by the suricata logs. How can i delete that unnecessary fields? Is it pos…

---

## [Elastic Search text similarity search](https://discuss.elastic.co/t/elastic-search-text-similarity-search/305643)

<div class="topic-metadata">

**Author:** [@gkumargaur](https://discuss.elastic.co/u/gkumargaur)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 10:59pm UTC](https://discuss.elastic.co/t/elastic-search-text-similarity-search/305643 "2022-05-25T22:59:24Z")

</div>

what is the best way to search San Jose and SanJose in Elasticsearch. Data is stored as text and correct value in ES is San Jose. Sample query not working: { "match" : { "cssot\_city" : { "…

---

## [How to find which indices are mostly queried](https://discuss.elastic.co/t/how-to-find-which-indices-are-mostly-queried/305250)

<div class="topic-metadata">

**Author:** [@dimitris\_sb](https://discuss.elastic.co/u/dimitris_sb)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 7:59pm UTC](https://discuss.elastic.co/t/how-to-find-which-indices-are-mostly-queried/305250 "2022-05-25T19:59:40Z")

</div>

Hi All, What is the best way to rank the indices in a cluster according to how many requests they get? API Index stats? Thank you in advance for your insights/opinons!

---

## [Improving runtime for dense embedding rescoring](https://discuss.elastic.co/t/improving-runtime-for-dense-embedding-rescoring/304445)

<div class="topic-metadata">

**Author:** [@armin20](https://discuss.elastic.co/u/armin20)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 7:53pm UTC](https://discuss.elastic.co/t/improving-runtime-for-dense-embedding-rescoring/304445 "2022-05-25T19:53:07Z")

</div>

Hello, I'm using script\_score queries for rescoring search results using query and document embeddings. As expected, the runtime is notably longer than my baseline multi\_match queries and I'm looking into ways to work a…

---

## [Frozen Tier heap memory requirements](https://discuss.elastic.co/t/frozen-tier-heap-memory-requirements/305546)

<div class="topic-metadata">

**Author:** [@schapman](https://discuss.elastic.co/u/schapman)\
**Replies:** 10\
**Last updated:** [May 25, 2022, 7:20pm UTC](https://discuss.elastic.co/t/frozen-tier-heap-memory-requirements/305546 "2022-05-25T19:20:42Z")

</div>

This suggests keeping to less than 20 shards / GB of heap. But this blog post about the frozen tier seems to (if I read it correctly) benchmarked a test case with 12500 shards on a node with 29GB of heap for a ratio of …

---

## [Search in elasticsearch 8](https://discuss.elastic.co/t/search-in-elasticsearch-8/305493)

<div class="topic-metadata">

**Author:** [@avnere](https://discuss.elastic.co/u/avnere)\
**Replies:** 5\
**Last updated:** [May 25, 2022, 4:06pm UTC](https://discuss.elastic.co/t/search-in-elasticsearch-8/305493 "2022-05-25T16:06:24Z")

</div>

Hi, In v.7.X the search performed as follow: searchResponse = client.search(searchRequest, RequestOptions.DEFAULT); How do I perform search in v.8 without defining the target class for the matching documents. (I want …

---

## [Multiple Nested Object Function Scoring](https://discuss.elastic.co/t/multiple-nested-object-function-scoring/305626)

<div class="topic-metadata">

**Author:** [@vp\_tech](https://discuss.elastic.co/u/vp_tech)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 3:32pm UTC](https://discuss.elastic.co/t/multiple-nested-object-function-scoring/305626 "2022-05-25T15:32:32Z")

</div>

ES Version: 6.8 I have an index storing documents that contain a list of nested tag objects. Each tag object has a text field (for the tag itself) and a float field representing a weight that describes the strength of as…

---

## [Combine knn score and match score](https://discuss.elastic.co/t/combine-knn-score-and-match-score/304032)

<div class="topic-metadata">

**Author:** [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Replies:** 2\
**Last updated:** [May 25, 2022, 3:13pm UTC](https://discuss.elastic.co/t/combine-knn-score-and-match-score/304032 "2022-05-25T15:13:37Z")

</div>

hi, my index has one knn vector field and one text field. I would like to create a search query which score would combile a score of KNN vector(cosinemil) and match score . Also I would like to boost KNN score so it can…

---

## [Painless script with GeoShape type query](https://discuss.elastic.co/t/painless-script-with-geoshape-type-query/304647)

<div class="topic-metadata">

**Author:** [@kindchri](https://discuss.elastic.co/u/kindchri)\
**Replies:** 5\
**Last updated:** [May 25, 2022, 2:40pm UTC](https://discuss.elastic.co/t/painless-script-with-geoshape-type-query/304647 "2022-05-25T14:40:21Z")

</div>

I'm trying to create a runtime field in a search request Link to documentation. In the script for the field I need to check if a geo point (lat, lng) in a field on the document is within a poiygon/bounding box that is p…

---

## [All of my documents have specific field but I get "A document doesn't have a value for a field! Use doc\[\<field\>\].size()==0 to check if a document is missing a field!"](https://discuss.elastic.co/t/all-of-my-documents-have-specific-field-but-i-get-a-document-doesnt-have-a-value-for-a-field-use-doc-field-size-0-to-check-if-a-document-is-missing-a-field/304969)

<div class="topic-metadata">

**Author:** [@msln](https://discuss.elastic.co/u/msln)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 2:38pm UTC](https://discuss.elastic.co/t/all-of-my-documents-have-specific-field-but-i-get-a-document-doesnt-have-a-value-for-a-field-use-doc-field-size-0-to-check-if-a-document-is-missing-a-field/304969 "2022-05-25T14:38:46Z")

</div>

when I run following query: GET /annotations/\_search { "query": { "match\_all": {} } } I receive following response: { "took" : 1, "timed\_out" : false, "\_shards" : { "total" : 1, "successful" : 1,…

---

## [Regarding Snapshots](https://discuss.elastic.co/t/regarding-snapshots/305595)

<div class="topic-metadata">

**Author:** [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 12:32pm UTC](https://discuss.elastic.co/t/regarding-snapshots/305595 "2022-05-25T12:32:13Z")

</div>

Hi, Is it possible, at snapshot time, to snapshot only primary shards? Thx D

---

## [Metricbeat does not properly extract elasticsearch metrics in kubernetes using Helm](https://discuss.elastic.co/t/metricbeat-does-not-properly-extract-elasticsearch-metrics-in-kubernetes-using-helm/304698)

<div class="topic-metadata">

**Author:** [@Enric\_Rubio](https://discuss.elastic.co/u/Enric_Rubio)\
**Replies:** 6\
**Last updated:** [May 25, 2022, 11:39am UTC](https://discuss.elastic.co/t/metricbeat-does-not-properly-extract-elasticsearch-metrics-in-kubernetes-using-helm/304698 "2022-05-25T11:39:54Z")

</div>

Good afternoon, I am trying to deploy metricbeat and kibana to kubernetes in google cloud using Helm. My aim is to collect data to benchmark elastic while running migrations to find out what resources does Elasticsearch…

---

## [Elasticsearch : Access the lemmas of the analyzed text](https://discuss.elastic.co/t/elasticsearch-access-the-lemmas-of-the-analyzed-text/305597)

<div class="topic-metadata">

**Author:** [@dpappas](https://discuss.elastic.co/u/dpappas)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 11:02am UTC](https://discuss.elastic.co/t/elasticsearch-access-the-lemmas-of-the-analyzed-text/305597 "2022-05-25T11:02:19Z")

</div>

Hi everyone! I would like to extract the lemmatized form of the tokens instead of the stemmed form of the tokens. I know that I could get the stems using the following code curl -X GET "localhost:9200/\_analyze?pretty"…

---

## [How static mapping works at storage level](https://discuss.elastic.co/t/how-static-mapping-works-at-storage-level/304470)

<div class="topic-metadata">

**Author:** [@prabhakar\_talari](https://discuss.elastic.co/u/prabhakar_talari)\
**Replies:** 11\
**Last updated:** [May 25, 2022, 10:59am UTC](https://discuss.elastic.co/t/how-static-mapping-works-at-storage-level/304470 "2022-05-25T10:59:04Z")

</div>

Team, I am using static mappings for elastic index with 10 fields as indexed fields, but application is sending 20 fields. out of 20 fields only 10 fields will be available for searching and querying does non indexed …

---

## [Only match if all tokens of an indexed field are included in the search query in any order](https://discuss.elastic.co/t/only-match-if-all-tokens-of-an-indexed-field-are-included-in-the-search-query-in-any-order/305520)

<div class="topic-metadata">

**Author:** [@SwonVIP](https://discuss.elastic.co/u/SwonVIP)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 8:26am UTC](https://discuss.elastic.co/t/only-match-if-all-tokens-of-an-indexed-field-are-included-in-the-search-query-in-any-order/305520 "2022-05-25T08:26:26Z")

</div>

Dear Elasticsearch Community, currently trying to solve an use-case of a reverse AND condition on user search queries where all tokens have to be included in an indexed field in order to match a certain document. Examp…

---

## [Highlighting on new wildcard field?](https://discuss.elastic.co/t/highlighting-on-new-wildcard-field/305525)

<div class="topic-metadata">

**Author:** [@schmitch](https://discuss.elastic.co/u/schmitch)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 6:51am UTC](https://discuss.elastic.co/t/highlighting-on-new-wildcard-field/305525 "2022-05-25T06:51:31Z")

</div>

hello, we tried to highlight on a new wildcard field type, unfortunatly it looks non working. is there any way to get this working? since most of our queries use infixes and we prefer to have them highlighted a wildca…

---

## [Questions on migrating 8.2 for templates in Java](https://discuss.elastic.co/t/questions-on-migrating-8-2-for-templates-in-java/305507)

<div class="topic-metadata">

**Author:** [@Raushan](https://discuss.elastic.co/u/Raushan)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 1:15pm UTC](https://discuss.elastic.co/t/questions-on-migrating-8-2-for-templates-in-java/305507 "2022-05-24T13:15:05Z")

</div>

Hi, I'm migrating from elastic client 7.5.2 to 8.2. From HLRC to RestClient I used to create Index template like this: PutIndexTemplateRequest request = new PutIndexTemplateRequest(templateName); request.source…

---

## [Error while upgrading cluster with helm](https://discuss.elastic.co/t/error-while-upgrading-cluster-with-helm/305562)

<div class="topic-metadata">

**Author:** [@akshay\_singh2](https://discuss.elastic.co/u/akshay_singh2)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 6:42am UTC](https://discuss.elastic.co/t/error-while-upgrading-cluster-with-helm/305562 "2022-05-25T06:42:17Z")

</div>

I'm trying to upgrade Elasticsearch from 7.17.3 to 8.1.0 with helm chart, but with new helm chart its giving me error. Error: UPGRADE FAILED: template: elasticsearch/templates/statefulset.yaml:303:27: executing "elastic…

---

## [Fail to read ssl configuration](https://discuss.elastic.co/t/fail-to-read-ssl-configuration/305477)

<div class="topic-metadata">

**Author:** [@devikingno](https://discuss.elastic.co/u/devikingno)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 3:52am UTC](https://discuss.elastic.co/t/fail-to-read-ssl-configuration/305477 "2022-05-25T03:52:04Z")

</div>

Hi all!! I have problem when try to configure ssl and https for Elasticsearch, i have Elasticsearch container in my localhost. I use "docker-compose up -d" for start Elasticsearch container and exec to it by root user. …

---

## [How do I generate a new CA with hostname?](https://discuss.elastic.co/t/how-do-i-generate-a-new-ca-with-hostname/305489)

<div class="topic-metadata">

**Author:** [@McLaine](https://discuss.elastic.co/u/McLaine)\
**Replies:** 2\
**Last updated:** [May 25, 2022, 3:16am UTC](https://discuss.elastic.co/t/how-do-i-generate-a-new-ca-with-hostname/305489 "2022-05-25T03:16:12Z")

</div>

Hello! I need a new http\_ca.crt file with the CN=hostname.net Instead of Subject: CN=Elasticsearch security auto-configuration HTTP CA. But how? Best Andy

---

## [Upgrade Elastic Cloud 7.8.0 - 7.17.3](https://discuss.elastic.co/t/upgrade-elastic-cloud-7-8-0-7-17-3/305543)

<div class="topic-metadata">

**Author:** [@Juan\_David\_Jaramillo](https://discuss.elastic.co/u/Juan_David_Jaramillo)\
**Replies:** 2\
**Last updated:** [May 25, 2022, 1:23am UTC](https://discuss.elastic.co/t/upgrade-elastic-cloud-7-8-0-7-17-3/305543 "2022-05-25T01:23:55Z")

</div>

good day to all I have some doubts about updating the version of elastic cloud (Elasticsearch, kibana) from version 7.8.0 to 7.17.3, I would like to know if there are no problems with this extensive update to move from …

---

## [Aggregating matched tokens](https://discuss.elastic.co/t/aggregating-matched-tokens/305458)

<div class="topic-metadata">

**Author:** [@Pyppe](https://discuss.elastic.co/u/Pyppe)\
**Replies:** 3\
**Last updated:** [May 25, 2022, 12:23am UTC](https://discuss.elastic.co/t/aggregating-matched-tokens/305458 "2022-05-25T00:23:26Z")

</div>

Hi! Is there anyway to aggregate the "matched" tokens only for a particular field? Let's say we have a field where we tokenize it using whitespaces, and we have documents such as: "THE PINK PANTHER" "THE PUNK BAND" A…

---

## [Add a time field in elasticsearch and calculate time between two event](https://discuss.elastic.co/t/add-a-time-field-in-elasticsearch-and-calculate-time-between-two-event/305536)

<div class="topic-metadata">

**Author:** [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Replies:** 0\
**Last updated:** [May 24, 2022, 6:25pm UTC](https://discuss.elastic.co/t/add-a-time-field-in-elasticsearch-and-calculate-time-between-two-event/305536 "2022-05-24T18:25:31Z")

</div>

I'm new to elasticsearch. I’m working with log files stored in Elasticsearch, that contains information about some operations on differents levels, I have a field timestamp that represents the time when each operation h…

---

## [I can't load all documents from csv file using python](https://discuss.elastic.co/t/i-cant-load-all-documents-from-csv-file-using-python/305419)

<div class="topic-metadata">

**Author:** [@safaeaz](https://discuss.elastic.co/u/safaeaz)\
**Replies:** 3\
**Last updated:** [May 24, 2022, 10:45pm UTC](https://discuss.elastic.co/t/i-cant-load-all-documents-from-csv-file-using-python/305419 "2022-05-24T22:45:40Z")

</div>

i'm trying to load csv file to Elasticsearch using python from elasticsearch import Elasticsearch, helpers import csv # Elastic search configuation es = Elasticsearch('http://IP:8081') # Creating index es.indices.cre…

---

## [Absolute newbee](https://discuss.elastic.co/t/absolute-newbee/304432)

<div class="topic-metadata">

**Author:** [@abls1](https://discuss.elastic.co/u/abls1)\
**Replies:** 3\
**Last updated:** [May 24, 2022, 5:53pm UTC](https://discuss.elastic.co/t/absolute-newbee/304432 "2022-05-24T17:53:00Z")

</div>

I need to connect the Elasticsearch to the indexes created by my crawler, then I need to be able to do searches on my main website, basically im building a general search website. Thanks for reading this

---

## [Elasticsearch Large Cluster Configuration Requirments](https://discuss.elastic.co/t/elasticsearch-large-cluster-configuration-requirments/305512)

<div class="topic-metadata">

**Author:** [@yangesh4u1](https://discuss.elastic.co/u/yangesh4u1)\
**Replies:** 4\
**Last updated:** [May 24, 2022, 4:33pm UTC](https://discuss.elastic.co/t/elasticsearch-large-cluster-configuration-requirments/305512 "2022-05-24T16:33:38Z")

</div>

Hi Team, I want to set up a new Elasticsearch cluster on-premises of minimum 3 master nodes and more than 6 data nodes . In our cluster we are ingesting around 100 GB of data per daily basis. And We want to keep 30 days…

---

## [Reindex Data Stream](https://discuss.elastic.co/t/reindex-data-stream/305529)

<div class="topic-metadata">

**Author:** [@teamomni](https://discuss.elastic.co/u/teamomni)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 5:00pm UTC](https://discuss.elastic.co/t/reindex-data-stream/305529 "2022-05-24T17:00:40Z")

</div>

We have recently moved all of our Logstash indices to the current data stream, but we are getting errors using the same ingest pipeline to fix the variable types of the original data stream. The reindex command given: P…

---

## [Substring does not match with in a string](https://discuss.elastic.co/t/substring-does-not-match-with-in-a-string/305470)

<div class="topic-metadata">

**Author:** [@vinayrordev](https://discuss.elastic.co/u/vinayrordev)\
**Replies:** 1\
**Last updated:** [May 24, 2022, 1:27pm UTC](https://discuss.elastic.co/t/substring-does-not-match-with-in-a-string/305470 "2022-05-24T13:27:28Z")

</div>

I am working on search functionality using the Elasticsearch, I need to show result in dropdown if string or substring is match. right now query result be like if I type in input box test so result is test-load-1 te…

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

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