# Elasticsearch

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

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

**Page:** 300

---

## [Elasticsearch 5 vs 8 performance and index size](https://discuss.elastic.co/t/elasticsearch-5-vs-8-performance-and-index-size/325601)

<div class="topic-metadata">

**Author:** [@Idorasi\_Paul](https://discuss.elastic.co/u/Idorasi_Paul)\
**Replies:** 9\
**Last updated:** [February 16, 2023, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-5-vs-8-performance-and-index-size/325601 "2023-02-16T13:45:18Z")

</div>

Hello. I've updated from elasticsearch 5.6 to 8.1 and following load tests I can see a decrease in performance, between 20-40%. I was expecting 8.1 to be faster 5.6, I'm assuming we're doing something wrong. Another weir…

---

## [Performance during Snapshot Backups/Cross-Cluster replication](https://discuss.elastic.co/t/performance-during-snapshot-backups-cross-cluster-replication/325560)

<div class="topic-metadata">

**Author:** [@x00m](https://discuss.elastic.co/u/x00m)\
**Replies:** 3\
**Last updated:** [February 16, 2023, 1:15pm UTC](https://discuss.elastic.co/t/performance-during-snapshot-backups-cross-cluster-replication/325560 "2023-02-16T13:15:59Z")

</div>

Assume the cumulative Index Size is approximately 200GB. Is taking snapshot backup every 30 minutes advisable? Will it cause any performance impact on the cluster for any active read/writes happening to the cluster duri…

---

## [Cant do case insensitive search in elastic search](https://discuss.elastic.co/t/cant-do-case-insensitive-search-in-elastic-search/325680)

<div class="topic-metadata">

**Author:** [@Dang\_Hai](https://discuss.elastic.co/u/Dang_Hai)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 12:58pm UTC](https://discuss.elastic.co/t/cant-do-case-insensitive-search-in-elastic-search/325680 "2023-02-16T12:58:35Z")

</div>

I'm new to Elasticsearch and trying to do this query right. So I'm having a document like this: { "id": 1, "name": "Văn Hiến" } I want to get that document in 3 cases: 1/ User input is: "v" or "h" or "i",... …

---

## [Customize panel time range - Last week, and Next week](https://discuss.elastic.co/t/customize-panel-time-range-last-week-and-next-week/325734)

<div class="topic-metadata">

**Author:** [@fengen](https://discuss.elastic.co/u/fengen)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 12:26pm UTC](https://discuss.elastic.co/t/customize-panel-time-range-last-week-and-next-week/325734 "2023-02-16T12:26:19Z")

</div>

Hi, Does anyone know how to set the Customize panel time range to "Last week", and "Next week". It is possible to set it to "This week" which i think means that it chooses the week that you are currently in and updates…

---

## [Elastic Search:Update of existing Record (which has custom routing param set) results in duplicate record, if custom routing is not set during update](https://discuss.elastic.co/t/elastic-search-update-of-existing-record-which-has-custom-routing-param-set-results-in-duplicate-record-if-custom-routing-is-not-set-during-update/325730)

<div class="topic-metadata">

**Author:** [@Bhushan\_Shelke](https://discuss.elastic.co/u/Bhushan_Shelke)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 11:55am UTC](https://discuss.elastic.co/t/elastic-search-update-of-existing-record-which-has-custom-routing-param-set-results-in-duplicate-record-if-custom-routing-is-not-set-during-update/325730 "2023-02-16T11:55:51Z")

</div>

Env Details: Elastic Search version 7.8.1 routing param is an optional in Index settings. As per Elasticsearch docs - \_routing field | Elasticsearch Guide \[8.6\] | Elastic When indexing documents specifying a custom \_…

---

## [Elastic On-Premise license buy,contact sales](https://discuss.elastic.co/t/elastic-on-premise-license-buy-contact-sales/325704)

<div class="topic-metadata">

**Author:** [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 10:33am UTC](https://discuss.elastic.co/t/elastic-on-premise-license-buy-contact-sales/325704 "2023-02-16T10:33:09Z")

</div>

Hello Elastic Team, I have a question regarding Elasticsearch on premise licensing,I would like to get in contact with Sales or any representative who could guide out how licensing works.Currently I'm using elk 7.9.1 …

---

## [Writing queries with Search UI](https://discuss.elastic.co/t/writing-queries-with-search-ui/325712)

<div class="topic-metadata">

**Author:** [@Pierre-Olivier\_BEAU](https://discuss.elastic.co/u/Pierre-Olivier_BEAU)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 10:01am UTC](https://discuss.elastic.co/t/writing-queries-with-search-ui/325712 "2023-02-16T10:01:23Z")

</div>

Hello all, I am currently researching the best way to send complex queries from a front-end interface to a custom api which will then send the query to Elasticsearch (using search UI-ES-connector). Search UI seems the …

---

## [Unkown script compilations for template-context in script-cache](https://discuss.elastic.co/t/unkown-script-compilations-for-template-context-in-script-cache/325707)

<div class="topic-metadata">

**Author:** [@The\_Hans](https://discuss.elastic.co/u/The_Hans)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 9:43am UTC](https://discuss.elastic.co/t/unkown-script-compilations-for-template-context-in-script-cache/325707 "2023-02-16T09:43:02Z")

</div>

Hi, from time to time we are facing a 'circuit\_breaking\_exception' caused by 'Too many dynamic script compilations within, max: \[75/5m\]' We only use 2 score\_scripts to re-rank the score of documents. These 2 scripts us…

---

## [How to prevent "Too many dynamic script compilations within" error with search templates?](https://discuss.elastic.co/t/how-to-prevent-too-many-dynamic-script-compilations-within-error-with-search-templates/325482)

<div class="topic-metadata">

**Author:** [@Ricou13](https://discuss.elastic.co/u/Ricou13)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 8:40am UTC](https://discuss.elastic.co/t/how-to-prevent-too-many-dynamic-script-compilations-within-error-with-search-templates/325482 "2023-02-16T08:40:07Z")

</div>

I use a search template with "mustache" language to build dynamic queries according to different parameters. When I often modify the values ​​of the parameters of this request, I get this error message : \[script\] Too m…

---

## [ESRally version 2.7.0 is throwing version mismatch h error with elasticsearch server 7.6.1](https://discuss.elastic.co/t/esrally-version-2-7-0-is-throwing-version-mismatch-h-error-with-elasticsearch-server-7-6-1/324723)

<div class="topic-metadata">

**Author:** [@Rahul\_Prajapati](https://discuss.elastic.co/u/Rahul_Prajapati)\
**Replies:** 3\
**Last updated:** [February 16, 2023, 8:00am UTC](https://discuss.elastic.co/t/esrally-version-2-7-0-is-throwing-version-mismatch-h-error-with-elasticsearch-server-7-6-1/324723 "2023-02-16T08:00:01Z")

</div>

elasticsearch.exceptions.UnsupportedProductError: The client noticed that the server is not a supported distribution of Elasticsearch I have installed esrally 2.7.0 on my local mac machine in a separate python virtual e…

---

## [Elastic decay function not working on nested field](https://discuss.elastic.co/t/elastic-decay-function-not-working-on-nested-field/324517)

<div class="topic-metadata">

**Author:** [@AthanatiusC](https://discuss.elastic.co/u/AthanatiusC)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 6:58am UTC](https://discuss.elastic.co/t/elastic-decay-function-not-working-on-nested-field/324517 "2023-02-16T06:58:19Z")

</div>

I have the following configuration: mapping put geo\_test { "mappings":{ "properties":{ "name":{ "type":"text" }, "location":{ "type":"nested", "properties":{ "n…

---

## [ELK for Jasper](https://discuss.elastic.co/t/elk-for-jasper/325579)

<div class="topic-metadata">

**Author:** [@ELK\_USR1](https://discuss.elastic.co/u/ELK_USR1)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 6:18am UTC](https://discuss.elastic.co/t/elk-for-jasper/325579 "2023-02-16T06:18:11Z")

</div>

I need elk on Jasper application. Can someone guide me to configure.

---

## [Index is not moving to warm phase](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677)

<div class="topic-metadata">

**Author:** [@rahul\_sirugudi](https://discuss.elastic.co/u/rahul_sirugudi)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 5:56am UTC](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677 "2023-02-16T05:56:09Z")

</div>

I have an index, i have implemented ILM on that. I am not seeing index is not moving to warm phase after reaching out 8 days old. There are no errors to. { "emailer-lifecycle-policy" : { "version" : 1, "modifi…

---

## [Kibana not displaying logs after implementing XPack Security in Elasticsearch 7.16](https://discuss.elastic.co/t/kibana-not-displaying-logs-after-implementing-xpack-security-in-elasticsearch-7-16/325552)

<div class="topic-metadata">

**Author:** [@b2njam1n](https://discuss.elastic.co/u/b2njam1n)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 2:39am UTC](https://discuss.elastic.co/t/kibana-not-displaying-logs-after-implementing-xpack-security-in-elasticsearch-7-16/325552 "2023-02-16T02:39:45Z")

</div>

Hello everyone, I recently set up an Elasticsearch version 7.16 cluster on a RHEL7.9 with Kibana and two Filebeat servers: a Hardware Log Server and an OS Log Server. Everything was working well until I implemented XPac…

---

## [Best practices for internal corporate site search](https://discuss.elastic.co/t/best-practices-for-internal-corporate-site-search/325532)

<div class="topic-metadata">

**Author:** [@Buntu\_Dev](https://discuss.elastic.co/u/Buntu_Dev)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 9:44pm UTC](https://discuss.elastic.co/t/best-practices-for-internal-corporate-site-search/325532 "2023-02-15T21:44:48Z")

</div>

I'm looking for best practices to tag the existing webpages which consist internal web apps and employee resources (internal forms, static content, policy documents) to help index into ES and make them available for site…

---

## [Couldn't open localhost:9200 for elasticsearch version 8.2.3](https://discuss.elastic.co/t/couldnt-open-localhost-9200-for-elasticsearch-version-8-2-3/325534)

<div class="topic-metadata">

**Author:** [@Sivapriya-Sugumar](https://discuss.elastic.co/u/Sivapriya-Sugumar)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 9:44pm UTC](https://discuss.elastic.co/t/couldnt-open-localhost-9200-for-elasticsearch-version-8-2-3/325534 "2023-02-15T21:44:15Z")

</div>

This page isn’t working localhost didn’t send any data. ERR\_EMPTY\_RESPONSE getting this batch file is running but couldn't open localhost:9200 in elasticsaerch 8.2.3

---

## [Why data save to master cluster?](https://discuss.elastic.co/t/why-data-save-to-master-cluster/325576)

<div class="topic-metadata">

**Author:** [@fered](https://discuss.elastic.co/u/fered)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 9:33pm UTC](https://discuss.elastic.co/t/why-data-save-to-master-cluster/325576 "2023-02-15T21:33:24Z")

</div>

I have a cluster that it have 3 master and 4 data node(2 hot , 1 warm , 1 cold). so i configure ILM for this cluster , but I dont know why index(primery & replica) save in master node ?

---

## [Scoring based on percentage of category](https://discuss.elastic.co/t/scoring-based-on-percentage-of-category/325661)

<div class="topic-metadata">

**Author:** [@sprath](https://discuss.elastic.co/u/sprath)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 8:33pm UTC](https://discuss.elastic.co/t/scoring-based-on-percentage-of-category/325661 "2023-02-15T20:33:59Z")

</div>

I'm not quite sure where to get started with this query. I'm using the opensearch quickstart data to try to explain. The documents have the following fields for example: { ... "customer\_first\_name": …

---

## [Simple aggregation counting distinct values that has turned out to be difficult](https://discuss.elastic.co/t/simple-aggregation-counting-distinct-values-that-has-turned-out-to-be-difficult/325659)

<div class="topic-metadata">

**Author:** [@Adam\_Burr](https://discuss.elastic.co/u/Adam_Burr)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 8:26pm UTC](https://discuss.elastic.co/t/simple-aggregation-counting-distinct-values-that-has-turned-out-to-be-difficult/325659 "2023-02-15T20:26:30Z")

</div>

I have a very simple index and I am trying to produce what I thought would be a simple aggregation, but I am finding it difficult to get working. I would be very grateful for any help the community can give. My "sales"…

---

## [Computation of total in Reindex API status response](https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658)

<div class="topic-metadata">

**Author:** [@fifthist](https://discuss.elastic.co/u/fifthist)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 8:23pm UTC](https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658 "2023-02-15T20:23:53Z")

</div>

I call Reindex API by creating a Task (wait\_for\_completion=false). I then use \_tasks API to get the details of the task once it is completed. Part of the task response is the response of the Reindex API with created, upd…

---

## [Metric to count number of queries per day/month](https://discuss.elastic.co/t/metric-to-count-number-of-queries-per-day-month/325076)

<div class="topic-metadata">

**Author:** [@Milad\_Heydariaan](https://discuss.elastic.co/u/Milad_Heydariaan)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 6:23pm UTC](https://discuss.elastic.co/t/metric-to-count-number-of-queries-per-day-month/325076 "2023-02-15T18:23:00Z")

</div>

Hi, I'm trying to collect the number of queries that users send to Elasticsearch to understand how many queries per day/month are submitted to our clusters. I've tried using the following metrics mentioned in Nodes sta…

---

## [Filebeat : field \[event\] not present as part of path \[event.start\]](https://discuss.elastic.co/t/filebeat-field-event-not-present-as-part-of-path-event-start/325634)

<div class="topic-metadata">

**Author:** [@Youssef\_Mouadden](https://discuss.elastic.co/u/Youssef_Mouadden)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 6:20pm UTC](https://discuss.elastic.co/t/filebeat-field-event-not-present-as-part-of-path-event-start/325634 "2023-02-15T18:20:51Z")

</div>

hello, I'm facing a problem with filebeat pipeline. when I execute the pipeline with a console output, I have no error and I have the right execution, except that when I put an elasticsearch output I receive the followi…

---

## [Term contains a dot (.), nothing is returned](https://discuss.elastic.co/t/term-contains-a-dot-nothing-is-returned/325508)

<div class="topic-metadata">

**Author:** [@thales788](https://discuss.elastic.co/u/thales788)\
**Replies:** 9\
**Last updated:** [February 15, 2023, 5:28pm UTC](https://discuss.elastic.co/t/term-contains-a-dot-nothing-is-returned/325508 "2023-02-15T17:28:45Z")

</div>

Hello. I'm doing a query on the "username" field. The results are correct in most cases. When the given term contains a dot (.), nothing is returned. Ex: "firstname.lastname" = nothing is returned "firstname lastname" …

---

## [High search\_fetch\_time for elasticsearch cluster](https://discuss.elastic.co/t/high-search-fetch-time-for-elasticsearch-cluster/325625)

<div class="topic-metadata">

**Author:** [@jaykb77](https://discuss.elastic.co/u/jaykb77)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 5:13pm UTC](https://discuss.elastic.co/t/high-search-fetch-time-for-elasticsearch-cluster/325625 "2023-02-15T17:13:03Z")

</div>

We started seeing some high latency with the applications querying elasticsearch(7.17.0) and found that search\_fetch\_time is significantly increasing whenever there is some significant increase in incoming search traffic…

---

## [Master not discovered or elected yet, an election requires at least 2 nodes with ids - ELK Stack - Docker Swarm](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-at-least-2-nodes-with-ids-elk-stack-docker-swarm/325548)

<div class="topic-metadata">

**Author:** [@vdcharter](https://discuss.elastic.co/u/vdcharter)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 4:19pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-at-least-2-nodes-with-ids-elk-stack-docker-swarm/325548 "2023-02-15T16:19:09Z")

</div>

Hi, I am trying to setup a elastic cluster with 3 masters, 1 kibana node and 1 data node. This is a common topic but would like to understand what I am doing wrong. Below is portainer error log on master1 WARN master n…

---

## [Limit of total fields \[1000\] in index has been exceeded after changing case classes to maps](https://discuss.elastic.co/t/limit-of-total-fields-1000-in-index-has-been-exceeded-after-changing-case-classes-to-maps/325635)

<div class="topic-metadata">

**Author:** [@markcitizen](https://discuss.elastic.co/u/markcitizen)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 3:19pm UTC](https://discuss.elastic.co/t/limit-of-total-fields-1000-in-index-has-been-exceeded-after-changing-case-classes-to-maps/325635 "2023-02-15T15:19:34Z")

</div>

Hello, I have a Scala Spark job that's writing output data to ES index. I modified my code to recursively convert Scala classes into Maps before writing those to the index. Before (when using case classes) index write w…

---

## [When to clear es cache?](https://discuss.elastic.co/t/when-to-clear-es-cache/325428)

<div class="topic-metadata">

**Author:** [@elastic-db-user](https://discuss.elastic.co/u/elastic-db-user)\
**Replies:** 8\
**Last updated:** [February 15, 2023, 2:59pm UTC](https://discuss.elastic.co/t/when-to-clear-es-cache/325428 "2023-02-15T14:59:45Z")

</div>

Is it a good idea to proactively clear all cache with a daily cron job to avoid any circuit breaker or any other memory related issues? Api calls from app to Elasticsearch are the same query e.g. count, histogram, get, …

---

## [Some indexes stopped to rollover and are now created without alias](https://discuss.elastic.co/t/some-indexes-stopped-to-rollover-and-are-now-created-without-alias/325623)

<div class="topic-metadata">

**Author:** [@zebu14](https://discuss.elastic.co/u/zebu14)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 2:08pm UTC](https://discuss.elastic.co/t/some-indexes-stopped-to-rollover-and-are-now-created-without-alias/325623 "2023-02-15T14:08:59Z")

</div>

Hello, Some weeks ago, I had a full disk problem on my dev cluster. I made some space, reactivated index writing with PUT /\_all/\_settings { "index.blocks.read\_only\_allow\_delete": null } Most of the indexes are doin…

---

## [Elasticsearch.service craches (Active: failed) every 1,2 days](https://discuss.elastic.co/t/elasticsearch-service-craches-active-failed-every-1-2-days/325373)

<div class="topic-metadata">

**Author:** [@Ziad\_Khater](https://discuss.elastic.co/u/Ziad_Khater)\
**Replies:** 12\
**Last updated:** [February 15, 2023, 12:42pm UTC](https://discuss.elastic.co/t/elasticsearch-service-craches-active-failed-every-1-2-days/325373 "2023-02-15T12:42:09Z")

</div>

Hi Team, every 1,2 days elasticsearch.service failed on my ubunto machine. It has all memory/disk resources it needs. I'll attach logs here and below is the failed status of elasticsearch. ===========================…

---

## [Problems using search\_fields and weighting in queries](https://discuss.elastic.co/t/problems-using-search-fields-and-weighting-in-queries/325610)

<div class="topic-metadata">

**Author:** [@bar8s](https://discuss.elastic.co/u/bar8s)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 12:35pm UTC](https://discuss.elastic.co/t/problems-using-search-fields-and-weighting-in-queries/325610 "2023-02-15T12:35:34Z")

</div>

I am trying to query an Elasticsearch index with some dynamic weighting on specific fields, but the query parser is rejecting the query I am basing this on the documentation at Relevance Tuning Guide, Weights and Boosts…

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

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