# Elasticsearch

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

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

**Page:** 130

---

## [Can i use ELSER and OpenAI Embeddings together in Elasticsearch?](https://discuss.elastic.co/t/can-i-use-elser-and-openai-embeddings-together-in-elasticsearch/356512)

<div class="topic-metadata">

**Author:** [@shakunvohra](https://discuss.elastic.co/u/shakunvohra)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 1:17pm UTC](https://discuss.elastic.co/t/can-i-use-elser-and-openai-embeddings-together-in-elasticsearch/356512 "2024-04-01T13:17:40Z")

</div>

I was wondering if I can use ELSER Vectors and OpenAI Embeddings together in same mapping for a better RAG results. The thought behind this is - take top 3 results from ELSER and take top 3 from OpenAI embeddings and co…

---

## [Very First Elastic Install... Elastic fails to determine health](https://discuss.elastic.co/t/very-first-elastic-install-elastic-fails-to-determine-health/356469)

<div class="topic-metadata">

**Author:** [@Technolust1](https://discuss.elastic.co/u/Technolust1)\
**Replies:** 10\
**Last updated:** [April 1, 2024, 5:31pm UTC](https://discuss.elastic.co/t/very-first-elastic-install-elastic-fails-to-determine-health/356469 "2024-04-01T17:31:05Z")

</div>

I'm new to ELK.. When I get to the step for checking if Elastic is running properly I get an error unable to authenticate. I realized I forgot to write down the password during the install... Now I'm trying to run elasti…

---

## [ELASTICSEARCH HTTPS ok internally, but bad gateway 502 externally. KIBANA ok both over HTTP](https://discuss.elastic.co/t/elasticsearch-https-ok-internally-but-bad-gateway-502-externally-kibana-ok-both-over-http/356572)

<div class="topic-metadata">

**Author:** [@marlonws](https://discuss.elastic.co/u/marlonws)\
**Replies:** 0\
**Last updated:** [April 1, 2024, 5:01pm UTC](https://discuss.elastic.co/t/elasticsearch-https-ok-internally-but-bad-gateway-502-externally-kibana-ok-both-over-http/356572 "2024-04-01T17:01:13Z")

</div>

Hi everyone, I'm just coming here after almost 3 whole days of trying to make it work and not going. I have the following schema: AZURE AKS \> NGINX CONTROLLER (which creates a loadbalancer when it has an ingress) \> APP…

---

## [Painless script issue with putAll() and add() methods](https://discuss.elastic.co/t/painless-script-issue-with-putall-and-add-methods/356076)

<div class="topic-metadata">

**Author:** [@Neeraj10](https://discuss.elastic.co/u/Neeraj10)\
**Replies:** 8\
**Last updated:** [April 1, 2024, 4:24pm UTC](https://discuss.elastic.co/t/painless-script-issue-with-putall-and-add-methods/356076 "2024-04-01T16:24:21Z")

</div>

I have written a painless script to update a nested field named "workflowassociated" in which I have fields "teamroleids", "userid", "workflowid", etc. I have written some required conditions in the script to update the "…

---

## [Can't install Elastic on CentOS 8](https://discuss.elastic.co/t/cant-install-elastic-on-centos-8/356507)

<div class="topic-metadata">

**Author:** [@JuliePrist](https://discuss.elastic.co/u/JuliePrist)\
**Replies:** 10\
**Last updated:** [April 1, 2024, 1:51pm UTC](https://discuss.elastic.co/t/cant-install-elastic-on-centos-8/356507 "2024-04-01T13:51:47Z")

</div>

Hello - I installed Elastic for trying it out in a simple local server. Based on the instructions here: My /etc/elasticsearch/elasticsearch.yml file is as follows: node.name: "My First Node" cluster.name: clusteruzi …

---

## [How to get term position in sort script](https://discuss.elastic.co/t/how-to-get-term-position-in-sort-script/356555)

<div class="topic-metadata">

**Author:** [@skaccer](https://discuss.elastic.co/u/skaccer)\
**Replies:** 0\
**Last updated:** [April 1, 2024, 12:29pm UTC](https://discuss.elastic.co/t/how-to-get-term-position-in-sort-script/356555 "2024-04-01T12:29:23Z")

</div>

In Elasticsearch 8, I have the following index: { "settings": { "analysis": { "analyzer": { "default": { "type": "whitespace" }, …

---

## [Sudden rollover of apm indices](https://discuss.elastic.co/t/sudden-rollover-of-apm-indices/355473)

<div class="topic-metadata">

**Author:** [@Harsh\_Jain](https://discuss.elastic.co/u/Harsh_Jain)\
**Replies:** 5\
**Last updated:** [April 1, 2024, 12:26pm UTC](https://discuss.elastic.co/t/sudden-rollover-of-apm-indices/355473 "2024-04-01T12:26:39Z")

</div>

Hi, I am new to elastic apm and have been facing issue with ilm policies. Following tasks are done: Edited metrics-apm.app\_metrics-default\_policy and saved as custom-metrics-apm.app\_metrics-default\_policy Updated ilm…

---

## [exception=\>LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError](https://discuss.elastic.co/t/exception-logstash-noconnectionavailableerror/356549)

<div class="topic-metadata">

**Author:** [@KARTHIKEYANI](https://discuss.elastic.co/u/KARTHIKEYANI)\
**Replies:** 0\
**Last updated:** [April 1, 2024, 11:51am UTC](https://discuss.elastic.co/t/exception-logstash-noconnectionavailableerror/356549 "2024-04-01T11:51:15Z")

</div>

Hi Team, Elasticsearch connection is up and running. We have total 260000 documents. In this 30K copied after that we get the error Attempted to send a bulk request but there are no living connections in the pool (perh…

---

## [How to Modify Default Scoring Calculation When Using Multiple knn Mixed Searches](https://discuss.elastic.co/t/how-to-modify-default-scoring-calculation-when-using-multiple-knn-mixed-searches/356513)

<div class="topic-metadata">

**Author:** [@yuangen\_yu](https://discuss.elastic.co/u/yuangen_yu)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 11:47am UTC](https://discuss.elastic.co/t/how-to-modify-default-scoring-calculation-when-using-multiple-knn-mixed-searches/356513 "2024-04-01T11:47:12Z")

</div>

POST image-index/\_search { "query": { "match": { "title": { "query": "mountain lake", "boost": 0.9 } } }, "knn": \[ { "field": "image-vector", "query\_vector": \[54, 10, -2\]…

---

## [Top hits not is parsing with java api client](https://discuss.elastic.co/t/top-hits-not-is-parsing-with-java-api-client/356530)

<div class="topic-metadata">

**Author:** [@conandc11](https://discuss.elastic.co/u/conandc11)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 11:37am UTC](https://discuss.elastic.co/t/top-hits-not-is-parsing-with-java-api-client/356530 "2024-04-01T11:37:14Z")

</div>

I stumbled onto this discussion while I was writing aggregation with limiting response to limited number of fields. SearchRequest searchRequest = new SearchRequest.Builder() .index("idx\_name") .query(query) …

---

## [Elastic Query unexcepted aggregations doc\_count](https://discuss.elastic.co/t/elastic-query-unexcepted-aggregations-doc-count/356482)

<div class="topic-metadata">

**Author:** [@Vivek\_Burman](https://discuss.elastic.co/u/Vivek_Burman)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 10:10am UTC](https://discuss.elastic.co/t/elastic-query-unexcepted-aggregations-doc-count/356482 "2024-04-01T10:10:45Z")

</div>

Question: If you look at the ES Response the hits count is 22 but the aggregations doc\_count is 663. I didn't understand the reason behind it. I was expecting that each doc from the hit will participate in one of the bu…

---

## [Possible ways to allow write on restricted indies in v8.x](https://discuss.elastic.co/t/possible-ways-to-allow-write-on-restricted-indies-in-v8-x/356508)

<div class="topic-metadata">

**Author:** [@Mahdi\_Moazami](https://discuss.elastic.co/u/Mahdi_Moazami)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 6:18am UTC](https://discuss.elastic.co/t/possible-ways-to-allow-write-on-restricted-indies-in-v8-x/356508 "2024-04-01T06:18:54Z")

</div>

Hi there, I have migrated my data from cluster version 7.8 to new cluster version 8. now I want to transfer my pipelines from old cluster to new one. the problem is that in version 8 the .logstash index is restricted an…

---

## [Running Elasticsearch locally in cloned repository \[Ubuntu\]](https://discuss.elastic.co/t/running-elasticsearch-locally-in-cloned-repository-ubuntu/356491)

<div class="topic-metadata">

**Author:** [@Renato\_Marques](https://discuss.elastic.co/u/Renato_Marques)\
**Replies:** 3\
**Last updated:** [March 31, 2024, 7:15pm UTC](https://discuss.elastic.co/t/running-elasticsearch-locally-in-cloned-repository-ubuntu/356491 "2024-03-31T19:15:28Z")

</div>

I recently started working on fixing a bug mentioned in the Elasticsearch GitHub repository issues. After installing Elasticsearch and reproducing the bug with the downloaded version from the website, I had an idea of ho…

---

## [Trial license expires the next day after activation](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716)

<div class="topic-metadata">

**Author:** [@Sergey\_Kuyanov](https://discuss.elastic.co/u/Sergey_Kuyanov)\
**Replies:** 2\
**Last updated:** [March 30, 2024, 1:39pm UTC](https://discuss.elastic.co/t/trial-license-expires-the-next-day-after-activation/355716 "2024-03-30T13:39:16Z")

</div>

Hello everyone. Yesterday, I successfully deployed and configured Elasticsearch on Kubernetes. We need to use cross-cluster replication, so a trial period was activated. Everything was working fine for about 20 hours, th…

---

## [Find out when an index has "settled" after a series of bulk inserts?](https://discuss.elastic.co/t/find-out-when-an-index-has-settled-after-a-series-of-bulk-inserts/356475)

<div class="topic-metadata">

**Author:** [@mrodent](https://discuss.elastic.co/u/mrodent)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 8:21pm UTC](https://discuss.elastic.co/t/find-out-when-an-index-has-settled-after-a-series-of-bulk-inserts/356475 "2024-03-29T20:21:08Z")

</div>

I am doing multiple bulk inserts using the \_bulk endpoint, using a Rust module (not yet concurrent, but it will be). On my test files this should generate 9264 "Lucene documents", i.e. documents in the index. I check th…

---

## [How does timestamp range work with wildcard index?](https://discuss.elastic.co/t/how-does-timestamp-range-work-with-wildcard-index/356457)

<div class="topic-metadata">

**Author:** [@Elena\_K](https://discuss.elastic.co/u/Elena_K)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 5:48pm UTC](https://discuss.elastic.co/t/how-does-timestamp-range-work-with-wildcard-index/356457 "2024-03-29T17:48:43Z")

</div>

I'm trying to understand how search with a timestamp range works and whether I should use a specific index to make the search faster or if I can use a wildcard. The performance test didn't show any difference. So I have…

---

## [Elasticsearch filter comparison with "preserve\_original": true](https://discuss.elastic.co/t/elasticsearch-filter-comparison-with-preserve-original-true/356468)

<div class="topic-metadata">

**Author:** [@nkachami](https://discuss.elastic.co/u/nkachami)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 5:30pm UTC](https://discuss.elastic.co/t/elasticsearch-filter-comparison-with-preserve-original-true/356468 "2024-03-29T17:30:35Z")

</div>

Hello, I am testing the outputs of different analyzer configurations and found one that does not seem to make much sense. Lets imagine we have two settings blocks: { "settings": { "analysis": { "analyzer":…

---

## [Master node discovery problem](https://discuss.elastic.co/t/master-node-discovery-problem/356415)

<div class="topic-metadata">

**Author:** [@esrcon](https://discuss.elastic.co/u/esrcon)\
**Replies:** 6\
**Last updated:** [March 29, 2024, 5:10pm UTC](https://discuss.elastic.co/t/master-node-discovery-problem/356415 "2024-03-29T17:10:22Z")

</div>

Hello, My cluster has 3 master nodes. But during deployment, two nodes are not able to join cluster. Their log says "an election requires at least 2 nodes with ids" but only one is discovered and "not a quorum". Then I…

---

## [KNN search with Function score or Scoring script](https://discuss.elastic.co/t/knn-search-with-function-score-or-scoring-script/356432)

<div class="topic-metadata">

**Author:** [@Yevgeny\_Yurgenson](https://discuss.elastic.co/u/Yevgeny_Yurgenson)\
**Replies:** 3\
**Last updated:** [March 29, 2024, 4:59pm UTC](https://discuss.elastic.co/t/knn-search-with-function-score-or-scoring-script/356432 "2024-03-29T16:59:45Z")

</div>

I would like to incorporate a decay function based off of a time field attached to a vector when conducting a KNN search. I am using the Kotlin client. WIth a regular query, this would be done through the function score …

---

## [How to convert string encoding of a keyword field](https://discuss.elastic.co/t/how-to-convert-string-encoding-of-a-keyword-field/356463)

<div class="topic-metadata">

**Author:** [@stefws](https://discuss.elastic.co/u/stefws)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 12:25pm UTC](https://discuss.elastic.co/t/how-to-convert-string-encoding-of-a-keyword-field/356463 "2024-03-29T12:25:46Z")

</div>

Considering if it may be better to convert hardwired input string encoding to ie. UTF8 for possible better displaying a long the way, eg. like: if (ctx.containsKey('epj.role')) { String utf8String = new String(ctx.epj…

---

## [Python Elasticsearch client: Unable to get data when \* included in index name](https://discuss.elastic.co/t/python-elasticsearch-client-unable-to-get-data-when-included-in-index-name/356185)

<div class="topic-metadata">

**Author:** [@Akhil\_Sharma](https://discuss.elastic.co/u/Akhil_Sharma)\
**Replies:** 3\
**Last updated:** [March 29, 2024, 2:46pm UTC](https://discuss.elastic.co/t/python-elasticsearch-client-unable-to-get-data-when-included-in-index-name/356185 "2024-03-29T14:46:13Z")

</div>

I have written the following code in python to get data from my Elastic deployment: from elasticsearch import Elasticsearch client = Elasticsearch(\<endpoint\>,api\_key=(\<API key ID\>,\<secret\>)) client.get(index="abc-001",i…

---

## ["Setting \[xpack.security.transport.ssl.keystore.secure\_password\] is a secure setting and must be stored inside the Elasticsearch keystore, but was found inside elasticsearch.yml](https://discuss.elastic.co/t/setting-xpack-security-transport-ssl-keystore-secure-password-is-a-secure-setting-and-must-be-stored-inside-the-elasticsearch-keystore-but-was-found-inside-elasticsearch-yml/356465)

<div class="topic-metadata">

**Author:** [@Sohaib\_El\_Mediouni](https://discuss.elastic.co/u/Sohaib_El_Mediouni)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 2:42pm UTC](https://discuss.elastic.co/t/setting-xpack-security-transport-ssl-keystore-secure-password-is-a-secure-setting-and-must-be-stored-inside-the-elasticsearch-keystore-but-was-found-inside-elasticsearch-yml/356465 "2024-03-29T14:42:03Z")

</div>

Hello, I have Elasticsearch based on a Red Hat image with 3 nodes in a StatefulSet, and Kibana in a deployment. Each Elasticsearch node has a PVC mounted in /usr/share/elasticsearch/data. I have generated the elastic-st…

---

## [Setting a field to either one or another field depending on the existence of one](https://discuss.elastic.co/t/setting-a-field-to-either-one-or-another-field-depending-on-the-existence-of-one/356462)

<div class="topic-metadata">

**Author:** [@stefws](https://discuss.elastic.co/u/stefws)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 1:58pm UTC](https://discuss.elastic.co/t/setting-a-field-to-either-one-or-another-field-depending-on-the-existence-of-one/356462 "2024-03-29T13:58:57Z")

</div>

Just dipping my toes into painless, only it isn't simple painless :wink: I'm trying to conditionally set a field to either one or another field depending on the existence of one field like this: { "script": { …

---

## [Must clause not working as expected](https://discuss.elastic.co/t/must-clause-not-working-as-expected/356464)

<div class="topic-metadata">

**Author:** [@jo\_dev](https://discuss.elastic.co/u/jo_dev)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 1:08pm UTC](https://discuss.elastic.co/t/must-clause-not-working-as-expected/356464 "2024-03-29T13:08:31Z")

</div>

I am executing must clause query on a nested document. I am expecting that it will behave like logical AND, but observing inconsistent behavior. Sample document mappings- "mappings": { "properties": { …

---

## [Upgrade elasticsearch on docker from 8.11.2 to 8.13.0](https://discuss.elastic.co/t/upgrade-elasticsearch-on-docker-from-8-11-2-to-8-13-0/356454)

<div class="topic-metadata">

**Author:** [@greenhand](https://discuss.elastic.co/u/greenhand)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 10:35am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-on-docker-from-8-11-2-to-8-13-0/356454 "2024-03-29T10:35:44Z")

</div>

I'm not using docker-compose. Instead, a separate startup container deployed a two-node es cluster, but I am currently experiencing issues with cpu alert not working properly. The error is "Failed to resolve needed aggre…

---

## [Reindex large index](https://discuss.elastic.co/t/reindex-large-index/356450)

<div class="topic-metadata">

**Author:** [@abkrim](https://discuss.elastic.co/u/abkrim)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 9:26am UTC](https://discuss.elastic.co/t/reindex-large-index/356450 "2024-03-29T09:26:53Z")

</div>

Today I was faced with a reindex due to a question of deleting a field, plus a change in the mapping of the datetime field that I had planned. I have done it with PHP. 42 million docs passed, even though the process la…

---

## [Elasticsearch on EKS Fargate](https://discuss.elastic.co/t/elasticsearch-on-eks-fargate/356448)

<div class="topic-metadata">

**Author:** [@muhammadali1233ify](https://discuss.elastic.co/u/muhammadali1233ify)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 9:11am UTC](https://discuss.elastic.co/t/elasticsearch-on-eks-fargate/356448 "2024-03-29T09:11:36Z")

</div>

Hi Community. I have been trying to host / run elasticsearch on fargate but running into permission issues. the default init container definition looks osmething like this. initContainers: - name: init-sysctl …

---

## [Gathering information on daily usages](https://discuss.elastic.co/t/gathering-information-on-daily-usages/356439)

<div class="topic-metadata">

**Author:** [@Muhd\_Murad](https://discuss.elastic.co/u/Muhd_Murad)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 6:20am UTC](https://discuss.elastic.co/t/gathering-information-on-daily-usages/356439 "2024-03-29T06:20:16Z")

</div>

Hello Experts, I would like to gather information about our daily/monthly usages in Elastic. I did go thru the stack monitoring but not much information i get in there. I am looking to have daily ingestion in GB, disk …

---

## [Hardware requirements for high performant search on a 200M vector dataset](https://discuss.elastic.co/t/hardware-requirements-for-high-performant-search-on-a-200m-vector-dataset/356340)

<div class="topic-metadata">

**Author:** [@nadasaiyed](https://discuss.elastic.co/u/nadasaiyed)\
**Replies:** 1\
**Last updated:** [March 29, 2024, 1:09am UTC](https://discuss.elastic.co/t/hardware-requirements-for-high-performant-search-on-a-200m-vector-dataset/356340 "2024-03-29T01:09:54Z")

</div>

I am trying to understand how much hardware will I need to store 50M vectors of dimension 1536, projected to reach 200M. I have read HNSW index is stored in memory, will I need as much RAM as the data to do a similarity …

---

## [Node client: Sniffing does not wait for return routing requests potentially via discovery nodes](https://discuss.elastic.co/t/node-client-sniffing-does-not-wait-for-return-routing-requests-potentially-via-discovery-nodes/356119)

<div class="topic-metadata">

**Author:** [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Replies:** 2\
**Last updated:** [March 29, 2024, 12:29am UTC](https://discuss.elastic.co/t/node-client-sniffing-does-not-wait-for-return-routing-requests-potentially-via-discovery-nodes/356119 "2024-03-29T00:29:17Z")

</div>

Hey, I've been using the typescript client and wondered about the sniffing behaviour using the following code: const client = new Client({ nodes: \[ "http://localhost:9200" \], sniffOnStart: true, …

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

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