# Elasticsearch

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

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

**Page:** 264

---

## [409 conflict](https://discuss.elastic.co/t/409-conflict/332457)

<div class="topic-metadata">

**Author:** [@searchwithme](https://discuss.elastic.co/u/searchwithme)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 10:44pm UTC](https://discuss.elastic.co/t/409-conflict/332457 "2023-05-07T22:44:49Z")

</div>

If I have 100 indexing requests in a bulk, and 2 requests are updating the same document, will a 409 be thrown?

---

## [Elastic Cloud - Elastic Security EDR/XDR](https://discuss.elastic.co/t/elastic-cloud-elastic-security-edr-xdr/332731)

<div class="topic-metadata">

**Author:** [@Lelc79](https://discuss.elastic.co/u/Lelc79)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 9:56pm UTC](https://discuss.elastic.co/t/elastic-cloud-elastic-security-edr-xdr/332731 "2023-05-06T21:56:59Z")

</div>

I want to configure 200 Endpoints with Windows 10/11 in elastic cloud with Enterprise license, to be able to use Elastic Security. ¿What would be the appropriate configuration to be able to calculate the costs?

---

## [How to make elasticsearch.keystore persistent?](https://discuss.elastic.co/t/how-to-make-elasticsearch-keystore-persistent/332530)

<div class="topic-metadata">

**Author:** [@daniela09](https://discuss.elastic.co/u/daniela09)\
**Replies:** 3\
**Last updated:** [May 7, 2023, 10:16pm UTC](https://discuss.elastic.co/t/how-to-make-elasticsearch-keystore-persistent/332530 "2023-05-07T22:16:46Z")

</div>

Hi, I am running elasticsearch cluster on Kubernetes cluster. The passwords I have generated for build-in-users like kibana\_system and elastic are changed after restart of the elasticsearch node. I am trying to find a wa…

---

## [Upgrade Elasticsearch from 6.8 to 7](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-8-to-7/332767)

<div class="topic-metadata">

**Author:** [@Chirag\_Poddar](https://discuss.elastic.co/u/Chirag_Poddar)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 7:16pm UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-6-8-to-7/332767 "2023-05-07T19:16:26Z")

</div>

We have 7 ES clusters (each having 3 nodes) running in production on the 6.8 version. We are planning to upgrade them to 7 and then eventually to 8. We have 2 options Upgrade versions on node one by one (rolling upgrad…

---

## [org.elasticsearch.client.ResponseException while creating index](https://discuss.elastic.co/t/org-elasticsearch-client-responseexception-while-creating-index/332706)

<div class="topic-metadata">

**Author:** [@Keerthy\_Ar](https://discuss.elastic.co/u/Keerthy_Ar)\
**Replies:** 5\
**Last updated:** [May 7, 2023, 6:45pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-responseexception-while-creating-index/332706 "2023-05-07T18:45:43Z")

</div>

I am trying to create index with High Rest Client, version 7.17.10 String mappingSource = "{"mappings":{"properties":{"name":{"type":"text"},"age":{"type":"integer"}}}}"; CreateIndexRequest request = new CreateIndexReq…

---

## [Java virtuale machine error while starting elasticsearch service](https://discuss.elastic.co/t/java-virtuale-machine-error-while-starting-elasticsearch-service/332769)

<div class="topic-metadata">

**Author:** [@khadija70](https://discuss.elastic.co/u/khadija70)\
**Replies:** 1\
**Last updated:** [May 7, 2023, 6:43pm UTC](https://discuss.elastic.co/t/java-virtuale-machine-error-while-starting-elasticsearch-service/332769 "2023-05-07T18:43:58Z")

</div>

Hi , We have an error related to starting Elasticsearch service on one of elasticsearch data servers related to creation of java vertuel machie , the error is attached . Could you please provide helps

---

## [UNABLE\_TO\_INSTALL\_ELK\_STACK\_WINDOWS](https://discuss.elastic.co/t/unable-to-install-elk-stack-windows/332697)

<div class="topic-metadata">

**Author:** [@naman\_marria](https://discuss.elastic.co/u/naman_marria)\
**Replies:** 6\
**Last updated:** [May 6, 2023, 4:07pm UTC](https://discuss.elastic.co/t/unable-to-install-elk-stack-windows/332697 "2023-05-06T16:07:00Z")

</div>

Unable to access Elasticsearch on WINDOWS : My Elasticsearch successfully installs and generates enrollment id along with rest of the credentials but it is not accessible on port 9200 or 9300. I have not edited the yml f…

---

## [How to do Composite Aggregation with Multiple Term Aggregation in new Java Client](https://discuss.elastic.co/t/how-to-do-composite-aggregation-with-multiple-term-aggregation-in-new-java-client/332696)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 6:56am UTC](https://discuss.elastic.co/t/how-to-do-composite-aggregation-with-multiple-term-aggregation-in-new-java-client/332696 "2023-05-06T06:56:05Z")

</div>

I am getting error when giving multiple term aggregation in composite aggregation sources \[es/search\] failed: \[x\_content\_parse\_exception\] \[1:177\] \[composite\] failed to parse field \[sources\] my code as below …

---

## [Datehistogram Composite Agg Sort Error in new Java Client](https://discuss.elastic.co/t/datehistogram-composite-agg-sort-error-in-new-java-client/332695)

<div class="topic-metadata">

**Author:** [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 6:27am UTC](https://discuss.elastic.co/t/datehistogram-composite-agg-sort-error-in-new-java-client/332695 "2023-05-06T06:27:19Z")

</div>

I am getting error when giving sort in Datehistogram composite agg \[es/search\] failed: \[x\_content\_parse\_exception\] \[1:186\] \[composite\] failed to parse field \[sources\] my code as below Map\<String, CompositeAggregationS…

---

## [Create autocomplete query](https://discuss.elastic.co/t/create-autocomplete-query/332693)

<div class="topic-metadata">

**Author:** [@Khaled\_Omara](https://discuss.elastic.co/u/Khaled_Omara)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 5:22am UTC](https://discuss.elastic.co/t/create-autocomplete-query/332693 "2023-05-06T05:22:52Z")

</div>

Here is my indices mapping: { "mappings": { "properties": { "categories": { "type": "text", "analyzer": "standard" }, "color": { "type": "text", "analyzer": "stand…

---

## [Reset similarity on an index](https://discuss.elastic.co/t/reset-similarity-on-an-index/332652)

<div class="topic-metadata">

**Author:** [@slayer](https://discuss.elastic.co/u/slayer)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 3:53am UTC](https://discuss.elastic.co/t/reset-similarity-on-an-index/332652 "2023-05-06T03:53:49Z")

</div>

Hi all, I have changed the default similarity from BM25 to scripted similarity on one of my indices. Now If I try to change it back to BM25, I am facing an error: Unknown settings for similarity of type \[BM25\]: \[scri…

---

## [What is the replacment for HighLevelRestClient SearchHit.getSortValues() in the Java API Client?](https://discuss.elastic.co/t/what-is-the-replacment-for-highlevelrestclient-searchhit-getsortvalues-in-the-java-api-client/332676)

<div class="topic-metadata">

**Author:** [@kayld](https://discuss.elastic.co/u/kayld)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 7:43pm UTC](https://discuss.elastic.co/t/what-is-the-replacment-for-highlevelrestclient-searchhit-getsortvalues-in-the-java-api-client/332676 "2023-05-05T19:43:09Z")

</div>

The HighLevelRestClient has a method in SearchHit class called getSortValues(). In converting to the Java API Client I cannot find a replacement or way to get the same information. How would I go about getting the sor…

---

## [IndexSettings SettingsSimilarity api spec wrong?](https://discuss.elastic.co/t/indexsettings-settingssimilarity-api-spec-wrong/332673)

<div class="topic-metadata">

**Author:** [@selckin1](https://discuss.elastic.co/u/selckin1)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 5:32pm UTC](https://discuss.elastic.co/t/indexsettings-settingssimilarity-api-spec-wrong/332673 "2023-05-05T17:32:11Z")

</div>

In the documentation here you can specify an id/name for the similarity such as 'my\_similarity' But this seems to not be possible in the java api client or in the api spec Am i missing something, or is the api wrong?

---

## [Multiple patterns for dissect processor in the pipeline](https://discuss.elastic.co/t/multiple-patterns-for-dissect-processor-in-the-pipeline/332420)

<div class="topic-metadata">

**Author:** [@mmartinez](https://discuss.elastic.co/u/mmartinez)\
**Replies:** 4\
**Last updated:** [May 5, 2023, 1:22pm UTC](https://discuss.elastic.co/t/multiple-patterns-for-dissect-processor-in-the-pipeline/332420 "2023-05-05T13:22:55Z")

</div>

Hello, We have logs with similar but different log formats and we would like to use the pipeline dissect processor with multiple patterns to dissect the different formats. We have already tried with grok but the ingesti…

---

## [Script for version 7.3.2](https://discuss.elastic.co/t/script-for-version-7-3-2/332633)

<div class="topic-metadata">

**Author:** [@spino17](https://discuss.elastic.co/u/spino17)\
**Replies:** 4\
**Last updated:** [May 5, 2023, 10:16am UTC](https://discuss.elastic.co/t/script-for-version-7-3-2/332633 "2023-05-05T10:16:06Z")

</div>

I want to get an example for using script for custom scoring for 7.3.2 version of ES.

---

## [Elastic search 8.6 (SSL enabled) certificate check disablement](https://discuss.elastic.co/t/elastic-search-8-6-ssl-enabled-certificate-check-disablement/332438)

<div class="topic-metadata">

**Author:** [@easwaran.jeyaraj](https://discuss.elastic.co/u/easwaran.jeyaraj)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 6:29am UTC](https://discuss.elastic.co/t/elastic-search-8-6-ssl-enabled-certificate-check-disablement/332438 "2023-05-05T06:29:14Z")

</div>

Recently we installed Elastic search 8.6 (SSL enabled) which is running as 3 node in cluster n kubernetes using the operator provided by Elastic. When we call ES from external client, after placing the Certificate (clien…

---

## [My ubuntu 16gb ram machine getting stuck after starting elasticsearch](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509)

<div class="topic-metadata">

**Author:** [@Krishna\_Sai\_Nag\_G](https://discuss.elastic.co/u/Krishna_Sai_Nag_G)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 5:26am UTC](https://discuss.elastic.co/t/my-ubuntu-16gb-ram-machine-getting-stuck-after-starting-elasticsearch/332509 "2023-05-05T05:26:59Z")

</div>

My ubuntu 16gb ram machine getting stuck after starting elasticsearch I have seen this in google when checking for it and i have added in /etc/elasticsearch/jvm.options.d/ in that folder i have created one file with …

---

## [Elastic Lifecycle Management Rollover](https://discuss.elastic.co/t/elastic-lifecycle-management-rollover/332511)

<div class="topic-metadata">

**Author:** [@cboissavy](https://discuss.elastic.co/u/cboissavy)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 7:54am UTC](https://discuss.elastic.co/t/elastic-lifecycle-management-rollover/332511 "2023-05-04T07:54:56Z")

</div>

Hello, I have an ECK with 4 pods elasticsearch v8.6.2. I would like to configure a lifecycle policy hot-warm-cold-delete. I created it "Retention-365" and I create a rollover index with the command : PUT assainissem…

---

## [Integrations with fleet server or filebeat module](https://discuss.elastic.co/t/integrations-with-fleet-server-or-filebeat-module/332520)

<div class="topic-metadata">

**Author:** [@Skairik](https://discuss.elastic.co/u/Skairik)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 11:35pm UTC](https://discuss.elastic.co/t/integrations-with-fleet-server-or-filebeat-module/332520 "2023-05-04T23:35:01Z")

</div>

Hi everyone, I currently need to retrieve syslogs from my palo alto firewall, and I just saw that I can either use filebeat's panw module or deploy a fleet servers and use palo alto integration. So I was wondering what…

---

## [Reindex with Terms query](https://discuss.elastic.co/t/reindex-with-terms-query/331087)

<div class="topic-metadata">

**Author:** [@tmslara.a](https://discuss.elastic.co/u/tmslara.a)\
**Replies:** 12\
**Last updated:** [May 4, 2023, 8:11pm UTC](https://discuss.elastic.co/t/reindex-with-terms-query/331087 "2023-05-04T20:11:06Z")

</div>

Hello, Everyday I create an index with a size of approximately 10 GB of size. Once the index is completed, I need to reindex a certain set of documents into a new filtered index. To filter the documents I'm using a Ter…

---

## [Sorting results of a search template with variable value of sorting field](https://discuss.elastic.co/t/sorting-results-of-a-search-template-with-variable-value-of-sorting-field/331078)

<div class="topic-metadata">

**Author:** [@orlenkoda5](https://discuss.elastic.co/u/orlenkoda5)\
**Replies:** 7\
**Last updated:** [May 4, 2023, 6:03pm UTC](https://discuss.elastic.co/t/sorting-results-of-a-search-template-with-variable-value-of-sorting-field/331078 "2023-05-04T18:03:09Z")

</div>

Good day, I'm trying to make a search template with variable sorting parameter. I have a search template without variable sorting, it looks like this and it works: Field1 - the field that i'm sorting with. \`\`\`PUT \_scr…

---

## [Configuring Fuzzy Search in Elasticsearch for Non-Dictionary Words](https://discuss.elastic.co/t/configuring-fuzzy-search-in-elasticsearch-for-non-dictionary-words/332519)

<div class="topic-metadata">

**Author:** [@Gurjap\_Singh](https://discuss.elastic.co/u/Gurjap_Singh)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 3:31pm UTC](https://discuss.elastic.co/t/configuring-fuzzy-search-in-elasticsearch-for-non-dictionary-words/332519 "2023-05-04T15:31:55Z")

</div>

I am encountering an issue with fuzzy search in Elasticsearch. When a user searches for the term "cooler", I want only products that match that exact term to be returned, and I do not want products with similar terms lik…

---

## [Elastic Search searchAfter funcitonality not working](https://discuss.elastic.co/t/elastic-search-searchafter-funcitonality-not-working/332561)

<div class="topic-metadata">

**Author:** [@suresh\_chaudhari](https://discuss.elastic.co/u/suresh_chaudhari)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 2:52pm UTC](https://discuss.elastic.co/t/elastic-search-searchafter-funcitonality-not-working/332561 "2023-05-04T14:52:47Z")

</div>

Hi I am using the Elasticsearch 8 java client. I have created one field createdtime which stores epoch timestamp. Now I first send one request like this query:{ widcard:{name:foo}. sort:\[creattedtime,asc\] it returns…

---

## [Elasticsearch filesystem recovery?](https://discuss.elastic.co/t/elasticsearch-filesystem-recovery/332472)

<div class="topic-metadata">

**Author:** [@PMDubuc](https://discuss.elastic.co/u/PMDubuc)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-filesystem-recovery/332472 "2023-05-04T13:23:38Z")

</div>

We have an old (version 2.4.3) 3 node elastic cluster that has lost index files on the data/nodes/0/indices/ filesystem of 2 of the nodes after having been shut down for a time. If we bring the cluster back up will the…

---

## [Elasticsearch Query Error](https://discuss.elastic.co/t/elasticsearch-query-error/332501)

<div class="topic-metadata">

**Author:** [@Mohsin\_Ashraf](https://discuss.elastic.co/u/Mohsin_Ashraf)\
**Replies:** 11\
**Last updated:** [May 4, 2023, 10:39am UTC](https://discuss.elastic.co/t/elasticsearch-query-error/332501 "2023-05-04T10:39:38Z")

</div>

Hi, I'm facing this error While querying the data. is there any solution for this? error: query\_shard\_exception Reason failed to create query: field expansion for \[\*\] matches too many fields, limit: 1024, got: 20703 …

---

## [Search By Id in Java API Client](https://discuss.elastic.co/t/search-by-id-in-java-api-client/332435)

<div class="topic-metadata">

**Author:** [@DavJane](https://discuss.elastic.co/u/DavJane)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 9:42am UTC](https://discuss.elastic.co/t/search-by-id-in-java-api-client/332435 "2023-05-04T09:42:11Z")

</div>

Hi, I am trying to migrate my existing Elastic Search Rest High Level Client from 6.3.2 to the latest Java Client API. My current code has SearchRequest sr = new SearchRequest(indexName); …

---

## [Field \[ts\] of type \[java.lang.Double\] cannot be cast to \[java.lang.String\]](https://discuss.elastic.co/t/field-ts-of-type-java-lang-double-cannot-be-cast-to-java-lang-string/332257)

<div class="topic-metadata">

**Author:** [@ramdas](https://discuss.elastic.co/u/ramdas)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 8:38am UTC](https://discuss.elastic.co/t/field-ts-of-type-java-lang-double-cannot-be-cast-to-java-lang-string/332257 "2023-05-04T08:38:12Z")

</div>

Hi All, I have few application in kubernetes environment which log timestamp field as "ts" and in unix epoch timestamp (in seconds.milliseconds format). i am referring this post to use ingest pipeline grok processor to …

---

## [How to copy data from old cluster to new cluster](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470)

<div class="topic-metadata">

**Author:** [@Naga\_Prudhvi](https://discuss.elastic.co/u/Naga_Prudhvi)\
**Replies:** 3\
**Last updated:** [May 3, 2023, 8:31pm UTC](https://discuss.elastic.co/t/how-to-copy-data-from-old-cluster-to-new-cluster/332470 "2023-05-03T20:31:17Z")

</div>

Hi I am trying to copy all the index (150) from old cluster to new cluster. Trying reindex api is throwing error, and snapshot and restore is not an option. any other ways to migrate, so that all mapping and data sett…

---

## [Best practices for testing against clusters on ECE](https://discuss.elastic.co/t/best-practices-for-testing-against-clusters-on-ece/332321)

<div class="topic-metadata">

**Author:** [@jan.stap](https://discuss.elastic.co/u/jan.stap)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 2:40pm UTC](https://discuss.elastic.co/t/best-practices-for-testing-against-clusters-on-ece/332321 "2023-05-03T14:40:35Z")

</div>

Hello, We intend to test the ingest and query performance of clusters hosted on ECE by using Rally. So far, the elastic/logs track looks interesting. I studied this video and pdf on Rally testing pitfalls by the Rally a…

---

## [Query on array fields with null value](https://discuss.elastic.co/t/query-on-array-fields-with-null-value/332426)

<div class="topic-metadata">

**Author:** [@dhggw](https://discuss.elastic.co/u/dhggw)\
**Replies:** 1\
**Last updated:** [May 3, 2023, 1:54pm UTC](https://discuss.elastic.co/t/query-on-array-fields-with-null-value/332426 "2023-05-03T13:54:24Z")

</div>

Hello all, we have in our index fields with arrays, each containing only one element, which is NULL: "field": \[ null \] I would like to filter on just these records, however I can't find a query that will do this.…

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

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