# Elasticsearch

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

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

**Page:** 116

---

## [How can I connect to langchain using elasticsearch as vectorb?](https://discuss.elastic.co/t/how-can-i-connect-to-langchain-using-elasticsearch-as-vectorb/358946)

<div class="topic-metadata">

**Author:** [@daniel7806](https://discuss.elastic.co/u/daniel7806)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 2:56pm UTC](https://discuss.elastic.co/t/how-can-i-connect-to-langchain-using-elasticsearch-as-vectorb/358946 "2024-05-07T14:56:23Z")

</div>

I followed like a code like this: import elasticsearch from langchain\_elasticsearch import ElasticsearchStore es\_client= elasticsearch.Elasticsearch( hosts=\["https://ip:host"\], es\_user="elastic", es\_password…

---

## [Post elasticsearch LinkedIn](https://discuss.elastic.co/t/post-elasticsearch-linkedin/358938)

<div class="topic-metadata">

**Author:** [@Khadija\_BOUDINAR1](https://discuss.elastic.co/u/Khadija_BOUDINAR1)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 2:27pm UTC](https://discuss.elastic.co/t/post-elasticsearch-linkedin/358938 "2024-05-07T14:27:32Z")

</div>

Hello All, I would like to know it's possible to suggest some topics to discus about elasticsearch, to improve my LinkedIn profile (installation, index creation...) Thanks

---

## [Feature State "ent\_search" for Snapshots not working](https://discuss.elastic.co/t/feature-state-ent-search-for-snapshots-not-working/358936)

<div class="topic-metadata">

**Author:** [@sebastianboelling](https://discuss.elastic.co/u/sebastianboelling)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 2:16pm UTC](https://discuss.elastic.co/t/feature-state-ent-search-for-snapshots-not-working/358936 "2024-05-07T14:16:28Z")

</div>

Hi, I am trying to restore the feature state of the feature "ent\_search" from am Snapshot. I am using the Snapstot tool: Snapshot and restore | Elasticsearch Guide \[8.13\] | Elastic It is possible to snapshot and resto…

---

## [Help me install ELK in a Windows 7 environment](https://discuss.elastic.co/t/help-me-install-elk-in-a-windows-7-environment/358919)

<div class="topic-metadata">

**Author:** [@Tell045](https://discuss.elastic.co/u/Tell045)\
**Replies:** 5\
**Last updated:** [May 7, 2024, 1:43pm UTC](https://discuss.elastic.co/t/help-me-install-elk-in-a-windows-7-environment/358919 "2024-05-07T13:43:55Z")

</div>

Help me install ELK in a Windows 7 environment. Thanks!

---

## [Moving average based on conditions for (moving avg\<50)](https://discuss.elastic.co/t/moving-average-based-on-conditions-for-moving-avg-50/358927)

<div class="topic-metadata">

**Author:** [@Ravisankar123](https://discuss.elastic.co/u/Ravisankar123)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 1:04pm UTC](https://discuss.elastic.co/t/moving-average-based-on-conditions-for-moving-avg-50/358927 "2024-05-07T13:04:15Z")

</div>

Need Moving average formula for \<50

---

## [Filebeat is skipping some older files and starts to send new ones](https://discuss.elastic.co/t/filebeat-is-skipping-some-older-files-and-starts-to-send-new-ones/358915)

<div class="topic-metadata">

**Author:** [@elk1985](https://discuss.elastic.co/u/elk1985)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 11:31am UTC](https://discuss.elastic.co/t/filebeat-is-skipping-some-older-files-and-starts-to-send-new-ones/358915 "2024-05-07T11:31:54Z")

</div>

Hello. I have a problem. I have upgraded my cluster to 8.10.4 all together with filebeats. I have added new logs for 1 server. filebeat.yml contains over 40 input sections with multiline configuration, tags etc. When…

---

## [Request distribution in client nodes using AWS ELB](https://discuss.elastic.co/t/request-distribution-in-client-nodes-using-aws-elb/358913)

<div class="topic-metadata">

**Author:** [@nchalise](https://discuss.elastic.co/u/nchalise)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 9:53am UTC](https://discuss.elastic.co/t/request-distribution-in-client-nodes-using-aws-elb/358913 "2024-05-07T09:53:49Z")

</div>

I have a cluster consisting of 3 master nodes, 4 client nodes, and 16 data nodes. I utilize AWS ELB for request balancing. Within the ELB setup, I allocate 4 client nodes and employ a Round Robin algorithm to distribute …

---

## [How to use the \_copy\_saved\_objects](https://discuss.elastic.co/t/how-to-use-the-copy-saved-objects/358851)

<div class="topic-metadata">

**Author:** [@lcarr](https://discuss.elastic.co/u/lcarr)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 9:48am UTC](https://discuss.elastic.co/t/how-to-use-the-copy-saved-objects/358851 "2024-05-07T09:48:04Z")

</div>

This is totally not working - we are getting 404 errors - POST kbn:/s/source\_space/api/spaces/\_copy\_saved\_objects { "createNewCopies": true, "includeReferences": false, "objects": \[ { "Title": " Devices by Compone…

---

## [Elasticsearch Set Processor Variable not define errror](https://discuss.elastic.co/t/elasticsearch-set-processor-variable-not-define-errror/358769)

<div class="topic-metadata">

**Author:** [@tusharnemade](https://discuss.elastic.co/u/tusharnemade)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-set-processor-variable-not-define-errror/358769 "2024-05-07T09:21:38Z")

</div>

Hello Everyone: I am using Elasticsearch 7.8 version. I have a mutliple conditions to be checked using set processor ... I am using below code curl -X POST "localhost:9200/\_ingest/pipeline/\_simulate?pretty" -H 'Conte…

---

## [In the future we are moving Dev servers to the production cluster. The data currently in the dev-cluster for these servers not available in prod. We need to copy indices from dev to prod. How we can achieve we need only those development indices to prod?](https://discuss.elastic.co/t/in-the-future-we-are-moving-dev-servers-to-the-production-cluster-the-data-currently-in-the-dev-cluster-for-these-servers-not-available-in-prod-we-need-to-copy-indices-from-dev-to-prod-how-we-can-achieve-we-need-only-those-development-indices-to-prod/358905)

<div class="topic-metadata">

**Author:** [@Puneeth1](https://discuss.elastic.co/u/Puneeth1)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:45am UTC](https://discuss.elastic.co/t/in-the-future-we-are-moving-dev-servers-to-the-production-cluster-the-data-currently-in-the-dev-cluster-for-these-servers-not-available-in-prod-we-need-to-copy-indices-from-dev-to-prod-how-we-can-achieve-we-need-only-those-development-indices-to-prod/358905 "2024-05-07T08:45:46Z")

</div>

Hi . Can anyone guide how we can achieve as mentioned in the description

---

## [Suggest? Move (Not copy) large volume (around 100m) data from one index to another](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902)

<div class="topic-metadata">

**Author:** [@samadna](https://discuss.elastic.co/u/samadna)\
**Replies:** 1\
**Last updated:** [May 7, 2024, 8:21am UTC](https://discuss.elastic.co/t/suggest-move-not-copy-large-volume-around-100m-data-from-one-index-to-another/358902 "2024-05-07T08:21:02Z")

</div>

One Time Requirement to move unwanted data (around 200mi) from a large (500mi) index based on certain filter criteria to another (New) index. We are planning to write java code as below. Group certain list of ids and …

---

## [Help in migrating java client code 7x to 8x](https://discuss.elastic.co/t/help-in-migrating-java-client-code-7x-to-8x/358166)

<div class="topic-metadata">

**Author:** [@sinugaud](https://discuss.elastic.co/u/sinugaud)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 8:07am UTC](https://discuss.elastic.co/t/help-in-migrating-java-client-code-7x-to-8x/358166 "2024-05-07T08:07:12Z")

</div>

I have written java code in Spring boot using elasticsearch-rest-high-level-client 7.17.4 now I want to migrate to elastic-search 8 how I can write term query SearchRequest searchRequest = new SearchRequest(ZE…

---

## [Reindexing with inflight indexing](https://discuss.elastic.co/t/reindexing-with-inflight-indexing/358897)

<div class="topic-metadata">

**Author:** [@post90](https://discuss.elastic.co/u/post90)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 7:11am UTC](https://discuss.elastic.co/t/reindexing-with-inflight-indexing/358897 "2024-05-07T07:11:57Z")

</div>

Is there a way to index data in destination index as well while doing remapping (source\_idx -\> destination\_idx) of an index? We could re-index the data between the two once more after switching the alias but that is not …

---

## [How does elasticsearch calculates clauses of a query?](https://discuss.elastic.co/t/how-does-elasticsearch-calculates-clauses-of-a-query/358895)

<div class="topic-metadata">

**Author:** [@Aditya\_Teltia](https://discuss.elastic.co/u/Aditya_Teltia)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 6:31am UTC](https://discuss.elastic.co/t/how-does-elasticsearch-calculates-clauses-of-a-query/358895 "2024-05-07T06:31:40Z")

</div>

Hello everyone, Hope you are doing good. How does elasticsearch clauses of a query? Which it eventually compares with max\_clause\_count and throws an RuntimeException if query exceeds maxClauseCount. I understand how i…

---

## [Max\_shards\_per\_node best practice](https://discuss.elastic.co/t/max-shards-per-node-best-practice/358622)

<div class="topic-metadata">

**Author:** [@Frances\_Chu](https://discuss.elastic.co/u/Frances_Chu)\
**Replies:** 3\
**Last updated:** [May 7, 2024, 3:47am UTC](https://discuss.elastic.co/t/max-shards-per-node-best-practice/358622 "2024-05-07T03:47:38Z")

</div>

By default the cluster.max\_shards\_per\_node is 1000. I would like to increase the value. Any impact to the system. How to determine the best value of cluster.max\_shards\_per\_node?

---

## [Kstem not giving the expected results](https://discuss.elastic.co/t/kstem-not-giving-the-expected-results/358885)

<div class="topic-metadata">

**Author:** [@Mohan\_T](https://discuss.elastic.co/u/Mohan_T)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 1:46am UTC](https://discuss.elastic.co/t/kstem-not-giving-the-expected-results/358885 "2024-05-07T01:46:45Z")

</div>

am using kstem due to this am not getting the proper results. Ex: In \_analyze Query: { "tokenizer": "standard", "filter": \[ "kstem" \], "text": "marbles" } in response, I am getting below { …

---

## [Elasticsearch 8.12 Error when tryng to generate a report using curl and an URL given by Discovery tool](https://discuss.elastic.co/t/elasticsearch-8-12-error-when-tryng-to-generate-a-report-using-curl-and-an-url-given-by-discovery-tool/358734)

<div class="topic-metadata">

**Author:** [@RobertC1](https://discuss.elastic.co/u/RobertC1)\
**Replies:** 13\
**Last updated:** [May 7, 2024, 12:42am UTC](https://discuss.elastic.co/t/elasticsearch-8-12-error-when-tryng-to-generate-a-report-using-curl-and-an-url-given-by-discovery-tool/358734 "2024-05-07T00:42:32Z")

</div>

Hi guys. I am tryng to generate a csv report using the following command curl -uelastic:xxxxxx -X POST \\ \> -H "kbn-xsrf: true" \\ "from": "now-12h" }, \> -H "Content-Type: application/json" \\ --cacert…

---

## [On-prem eck cluster disconnects after a couple hours and can't be reconnected](https://discuss.elastic.co/t/on-prem-eck-cluster-disconnects-after-a-couple-hours-and-cant-be-reconnected/358878)

<div class="topic-metadata">

**Author:** [@Greyson](https://discuss.elastic.co/u/Greyson)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 11:11pm UTC](https://discuss.elastic.co/t/on-prem-eck-cluster-disconnects-after-a-couple-hours-and-cant-be-reconnected/358878 "2024-05-06T23:11:48Z")

</div>

My company uses elastic and I wanted to get more familiar with it so I spun up a k3's cluster in my homelab and have been trying to get it working for the last couple weeks but it keeps having issues. My setup is as fol…

---

## [How to set a Managed pipeline in a new Crawler index](https://discuss.elastic.co/t/how-to-set-a-managed-pipeline-in-a-new-crawler-index/358876)

<div class="topic-metadata">

**Author:** [@freddyrb](https://discuss.elastic.co/u/freddyrb)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 10:29pm UTC](https://discuss.elastic.co/t/how-to-set-a-managed-pipeline-in-a-new-crawler-index/358876 "2024-05-06T22:29:10Z")

</div>

Hey community! Maybe it's a silly question, but I need to understand (and solve) why a newly created index, has no "Managed" default pipeline as there is in another existing index. How to make the "search-testindex1" pip…

---

## [History of updates modeling](https://discuss.elastic.co/t/history-of-updates-modeling/358865)

<div class="topic-metadata">

**Author:** [@hafssa\_askaoui](https://discuss.elastic.co/u/hafssa_askaoui)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 7:15pm UTC](https://discuss.elastic.co/t/history-of-updates-modeling/358865 "2024-05-06T19:15:58Z")

</div>

I'm newbie to Elasticsearch and I'm wondering about the best way to model this requirement in Elasticsearch: we need to keep the modification history of an object like this: example{ id; name; type; } So far, we've…

---

## [Question in Node Configuration](https://discuss.elastic.co/t/question-in-node-configuration/358779)

<div class="topic-metadata">

**Author:** [@hossa](https://discuss.elastic.co/u/hossa)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 4:43pm UTC](https://discuss.elastic.co/t/question-in-node-configuration/358779 "2024-05-06T16:43:57Z")

</div>

Hello I have a cluster consisting of 3 nodes, one of which I want to be for reading and the other for writing How can I do that?

---

## [Data insert/update in new index fields](https://discuss.elastic.co/t/data-insert-update-in-new-index-fields/358850)

<div class="topic-metadata">

**Author:** [@akashvermag](https://discuss.elastic.co/u/akashvermag)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 3:28pm UTC](https://discuss.elastic.co/t/data-insert-update-in-new-index-fields/358850 "2024-05-06T15:28:36Z")

</div>

Hi, i have my Elasticsearch 7.17 installed, where i have multiple indexes with data in them. now, i want to update those indexes with new mappings & settings, and i also want that new field is present when i run searc…

---

## [Anomaly detection](https://discuss.elastic.co/t/anomaly-detection/358048)

<div class="topic-metadata">

**Author:** [@zi\_ninja](https://discuss.elastic.co/u/zi_ninja)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 3:22pm UTC](https://discuss.elastic.co/t/anomaly-detection/358048 "2024-05-06T15:22:59Z")

</div>

In machine learning anomaly detection, can I set my own rules for detection? Example: I want to detect a computer. Normally this computer accesses many different IP addresses, but suddenly one day this computer accesses…

---

## [Adding Cold Nodes to Existing Cluster](https://discuss.elastic.co/t/adding-cold-nodes-to-existing-cluster/358855)

<div class="topic-metadata">

**Author:** [@Manal\_A](https://discuss.elastic.co/u/Manal_A)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 3:20pm UTC](https://discuss.elastic.co/t/adding-cold-nodes-to-existing-cluster/358855 "2024-05-06T15:20:48Z")

</div>

Hello, I already have a cluster containing hot and master nodes, and I want to add 4 Cold nodes. Do I need a license for this, and what are the steps to follow? Thank you

---

## [Upper and lower bounds](https://discuss.elastic.co/t/upper-and-lower-bounds/357866)

<div class="topic-metadata">

**Author:** [@zi\_ninja](https://discuss.elastic.co/u/zi_ninja)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 3:16pm UTC](https://discuss.elastic.co/t/upper-and-lower-bounds/357866 "2024-05-06T15:16:39Z")

</div>

I created a job in machine learning anomaly detection elastic, I used the sum function, I looked at the results in the single metric viewer and I saw some points as follows: - On what basis to calculate upper and lower …

---

## [Machine Learning score explanation](https://discuss.elastic.co/t/machine-learning-score-explanation/358424)

<div class="topic-metadata">

**Author:** [@Poukim0m](https://discuss.elastic.co/u/Poukim0m)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 3:11pm UTC](https://discuss.elastic.co/t/machine-learning-score-explanation/358424 "2024-05-06T15:11:54Z")

</div>

Hello, according to the documentation regarding machine learning jobs the machine learning score depends on the probability that is calculated for the specific metrics and there are 3 different scores (Bucket, Influence…

---

## [Elasticsearch Java Client (8.13.2) building a zero result reponse](https://discuss.elastic.co/t/elasticsearch-java-client-8-13-2-building-a-zero-result-reponse/357704)

<div class="topic-metadata">

**Author:** [@SvenS4342](https://discuss.elastic.co/u/SvenS4342)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 2:18pm UTC](https://discuss.elastic.co/t/elasticsearch-java-client-8-13-2-building-a-zero-result-reponse/357704 "2024-05-06T14:18:15Z")

</div>

Hello, for a use-case I'm creating I want to build a SearchResponse similar to a response which did not retrieve any matched documents. co.elastic.clients.elasticsearch.core.SearchResponse.of(r -\> r .aggregations(Ap…

---

## [Connection pool in elasticsearch kibana](https://discuss.elastic.co/t/connection-pool-in-elasticsearch-kibana/358736)

<div class="topic-metadata">

**Author:** [@navya\_k](https://discuss.elastic.co/u/navya_k)\
**Replies:** 4\
**Last updated:** [May 6, 2024, 1:52pm UTC](https://discuss.elastic.co/t/connection-pool-in-elasticsearch-kibana/358736 "2024-05-06T13:52:06Z")

</div>

Hello, Good day. Need help on connection pooling. We have onboard application of type Java and dependency with mango DB. Successfully sending APM and transaction data to elastic from application. Able to view data in …

---

## [What's the meaning of the underscore in the java api's methods, e.g., \_toQuery()](https://discuss.elastic.co/t/whats-the-meaning-of-the-underscore-in-the-java-apis-methods-e-g-toquery/358149)

<div class="topic-metadata">

**Author:** [@buitcj](https://discuss.elastic.co/u/buitcj)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 1:32pm UTC](https://discuss.elastic.co/t/whats-the-meaning-of-the-underscore-in-the-java-apis-methods-e-g-toquery/358149 "2024-05-06T13:32:06Z")

</div>

\_toQuery() is a public method that's used in examples on public docs (like Searching for documents | Elasticsearch Java API Client \[8.13\] | Elastic), so the method isn't internal - something the underscore sometimes repr…

---

## [TSVB calcul taux de croissance](https://discuss.elastic.co/t/tsvb-calcul-taux-de-croissance/358835)

<div class="topic-metadata">

**Author:** [@OlivierFournie](https://discuss.elastic.co/u/OlivierFournie)\
**Replies:** 0\
**Last updated:** [May 6, 2024, 1:17pm UTC](https://discuss.elastic.co/t/tsvb-calcul-taux-de-croissance/358835 "2024-05-06T13:17:29Z")

</div>

Bonjour, je souhaiterais calculer le taux de croissance entre les années 2024 et 2023. Pouvez vous m'aider svp?

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

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