# Elasticsearch

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

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

**Page:** 494

---

## [Range aggregation Scripts](https://discuss.elastic.co/t/range-aggregation-scripts/297147)

<div class="topic-metadata">

**Author:** [@Pallavibhushan](https://discuss.elastic.co/u/Pallavibhushan)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 5:25pm UTC](https://discuss.elastic.co/t/range-aggregation-scripts/297147 "2022-02-14T17:25:31Z")

</div>

Hi All, Below is my problem statement. I want to calculate aging stage based on below requirement. If Stage='INT' then today() - 'INT1 Date' else If Stage='MCH' then today() - 'Applied Date (WEB/MCH)' else If Sta…

---

## [Dump Indexes and Documents from one server to another](https://discuss.elastic.co/t/dump-indexes-and-documents-from-one-server-to-another/296873)

<div class="topic-metadata">

**Author:** [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 4:43pm UTC](https://discuss.elastic.co/t/dump-indexes-and-documents-from-one-server-to-another/296873 "2022-02-14T16:43:23Z")

</div>

If I need to backup my Elasticsearch database, or migrate data from one server to another, is it possible to dump the data and import it to another server? Or if my current server (ES 6.8) and I migrate to a new one (ES…

---

## [FieldNotFoundError on update to Elasticsearch 7.16.2](https://discuss.elastic.co/t/fieldnotfounderror-on-update-to-elasticsearch-7-16-2/296173)

<div class="topic-metadata">

**Author:** [@JonDoe1234](https://discuss.elastic.co/u/JonDoe1234)\
**Replies:** 3\
**Last updated:** [February 14, 2022, 3:32pm UTC](https://discuss.elastic.co/t/fieldnotfounderror-on-update-to-elasticsearch-7-16-2/296173 "2022-02-14T15:32:58Z")

</div>

Hi, since the update to Elasticsearch 7.16. I'm getting a java.lang.NoSuchFieldError: INDEX\_CONTENT\_TYPE when running a Unit Test that executes a save/saveAll() statement with Test containers. On 7.15 everything works …

---

## [Custom Aggregations](https://discuss.elastic.co/t/custom-aggregations/15740)

<div class="topic-metadata">

**Author:** [@Justin\_Uang](https://discuss.elastic.co/u/Justin_Uang)\
**Replies:** 15\
**Last updated:** [February 14, 2022, 2:40pm UTC](https://discuss.elastic.co/t/custom-aggregations/15740 "2022-02-14T14:40:23Z")

</div>

Is there any way we can define our own aggregation functions beyond the provided metric and bucket aggregations? Thanks! Justin -- You received this message because you are subscribed to the Google Groups "e…

---

## [Elasticsearch connection close issue](https://discuss.elastic.co/t/elasticsearch-connection-close-issue/295581)

<div class="topic-metadata">

**Author:** [@Ram\_N](https://discuss.elastic.co/u/Ram_N)\
**Replies:** 7\
**Last updated:** [February 14, 2022, 2:07pm UTC](https://discuss.elastic.co/t/elasticsearch-connection-close-issue/295581 "2022-02-14T14:07:36Z")

</div>

Hi Im using 7.10.2 and I have closed Elasticsearch Client while stopping application as below. @PreDestroy public void onShutdown(){ getEsClient().shutdownES(); } But Still Im getting below…

---

## [How to keep stable to ELK stack when downgrading the Centos VM from 8 to 7](https://discuss.elastic.co/t/how-to-keep-stable-to-elk-stack-when-downgrading-the-centos-vm-from-8-to-7/297140)

<div class="topic-metadata">

**Author:** [@alicango](https://discuss.elastic.co/u/alicango)\
**Replies:** 3\
**Last updated:** [February 14, 2022, 2:00pm UTC](https://discuss.elastic.co/t/how-to-keep-stable-to-elk-stack-when-downgrading-the-centos-vm-from-8-to-7/297140 "2022-02-14T14:00:39Z")

</div>

Hello Dear Community, We will downgrade the distributions of Centos VMs running the ELK stack from 8 to 7 So what should I do before/after Cento's downgrade to keep stable the ELK? I need your recommendation. Should I b…

---

## [How to update more fields with script?](https://discuss.elastic.co/t/how-to-update-more-fields-with-script/297100)

<div class="topic-metadata">

**Author:** [@TottyAndBaty](https://discuss.elastic.co/u/TottyAndBaty)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 1:17pm UTC](https://discuss.elastic.co/t/how-to-update-more-fields-with-script/297100 "2022-02-14T13:17:28Z")

</div>

Sorry~ my english is not good.... here is my mapping . { "orders": { "aliases": {}, "mappings": { "properties": { "created\_at": { "type": "date" }, "expect\_pick\_start\_time": { "type": "lo…

---

## [Logstash show errors for new client in log: "javax.net.ssl.SSLHandshakeException: Received fatal alert: bad\_certificate"](https://discuss.elastic.co/t/logstash-show-errors-for-new-client-in-log-javax-net-ssl-sslhandshakeexception-received-fatal-alert-bad-certificate/297118)

<div class="topic-metadata">

**Author:** [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 10:40am UTC](https://discuss.elastic.co/t/logstash-show-errors-for-new-client-in-log-javax-net-ssl-sslhandshakeexception-received-fatal-alert-bad-certificate/297118 "2022-02-14T10:40:31Z")

</div>

Dears, I need your support in case of configuration filebeat/logstash. filebeat 7.17.0 logstash 7.16.3 Previously, it was an ELK cluster in version 7.7.1 which I upgraded to version 7.16.3 Certificate preparation on…

---

## [Multimatch with CROSS\_FIELD query and decompounder](https://discuss.elastic.co/t/multimatch-with-cross-field-query-and-decompounder/296852)

<div class="topic-metadata">

**Author:** [@thaarbach](https://discuss.elastic.co/u/thaarbach)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 10:33am UTC](https://discuss.elastic.co/t/multimatch-with-cross-field-query-and-decompounder/296852 "2022-02-14T10:33:40Z")

</div>

The problem was also discussed by @singer and @hbruch and Here a example, that the search works not as expected: Create a index PUT example/ { "settings": { "number\_of\_shards": 1, "number\_of\_replicas": 0…

---

## [Elasticsearch mapper\_parsing\_exception for field appearing both in text and object form](https://discuss.elastic.co/t/elasticsearch-mapper-parsing-exception-for-field-appearing-both-in-text-and-object-form/296875)

<div class="topic-metadata">

**Author:** [@dory](https://discuss.elastic.co/u/dory)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 9:53am UTC](https://discuss.elastic.co/t/elasticsearch-mapper-parsing-exception-for-field-appearing-both-in-text-and-object-form/296875 "2022-02-14T09:53:56Z")

</div>

Hello, I'm quite new to Elasticsearch and I'm trying since a few days to fix some indexing problems we have in our indices. The cause of this errors is that we have multiple applications logging data which finally ends …

---

## [Limiting queries from elasticsearch service side](https://discuss.elastic.co/t/limiting-queries-from-elasticsearch-service-side/296557)

<div class="topic-metadata">

**Author:** [@LukoJy](https://discuss.elastic.co/u/LukoJy)\
**Replies:** 10\
**Last updated:** [February 14, 2022, 9:40am UTC](https://discuss.elastic.co/t/limiting-queries-from-elasticsearch-service-side/296557 "2022-02-14T09:40:24Z")

</div>

Hello, I would like to know if there is a way to limit incoming queries from the Elasticsearch service side, for example, restrict total hits, size, or searched shards to a specific value? In our environment, different…

---

## [Aggregation is not limited to documents in the query in multi-field results](https://discuss.elastic.co/t/aggregation-is-not-limited-to-documents-in-the-query-in-multi-field-results/296322)

<div class="topic-metadata">

**Author:** [@lennardberger](https://discuss.elastic.co/u/lennardberger)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 8:59am UTC](https://discuss.elastic.co/t/aggregation-is-not-limited-to-documents-in-the-query-in-multi-field-results/296322 "2022-02-14T08:59:06Z")

</div>

Hi everyone, running Elasticsearch 7.10.1. We have the following index: "potential\_participants": { "properties": { "surface"…

---

## [How to find the data that causes the mapper\_parsing\_exception](https://discuss.elastic.co/t/how-to-find-the-data-that-causes-the-mapper-parsing-exception/297096)

<div class="topic-metadata">

**Author:** [@AlanSBN](https://discuss.elastic.co/u/AlanSBN)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 3:20am UTC](https://discuss.elastic.co/t/how-to-find-the-data-that-causes-the-mapper-parsing-exception/297096 "2022-02-14T03:20:40Z")

</div>

I am using the Node Elasticsearch client from inside Node Express, and I constructed a query that generates the following error: (node:85104) ResponseError: mapper\_parsing\_exception: \[mapper\_parsing\_exception\] Reason: …

---

## [Website with restaurants search](https://discuss.elastic.co/t/website-with-restaurants-search/297088)

<div class="topic-metadata">

**Author:** [@Aleksandra\_s](https://discuss.elastic.co/u/Aleksandra_s)\
**Replies:** 3\
**Last updated:** [February 14, 2022, 12:16am UTC](https://discuss.elastic.co/t/website-with-restaurants-search/297088 "2022-02-14T00:16:22Z")

</div>

I am trying to create a website with search engine that allows users to search for restaurants. This website will have features as writen below: users are able to filter and sort results the website stores data about u…

---

## [Difficulty getting SSL working, ES, Beats in Docker](https://discuss.elastic.co/t/difficulty-getting-ssl-working-es-beats-in-docker/297083)

<div class="topic-metadata">

**Author:** [@thech](https://discuss.elastic.co/u/thech)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 8:30pm UTC](https://discuss.elastic.co/t/difficulty-getting-ssl-working-es-beats-in-docker/297083 "2022-02-13T20:30:15Z")

</div>

I'm setting up an Elastic Stack on a single host Docker Compose. I'm using Elasticsearch, Kibana, and a simple Metricbeat to look at system metrics. I'm having an issue getting the right combination of SSL certs/keys to…

---

## [Having difficulty creating multiple field queries](https://discuss.elastic.co/t/having-difficulty-creating-multiple-field-queries/297009)

<div class="topic-metadata">

**Author:** [@vred](https://discuss.elastic.co/u/vred)\
**Replies:** 1\
**Last updated:** [February 13, 2022, 7:29pm UTC](https://discuss.elastic.co/t/having-difficulty-creating-multiple-field-queries/297009 "2022-02-13T19:29:34Z")

</div>

I'm attempting to create slightly more complex queries using Java API client 7.16 (like the json below), but I'm not sure which direction to go in to do this correctly. Do I use terms query for something like this query …

---

## [ERROR: Failed to determine the health of the cluster with elasticsearch-create-enrollment-token](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041)

<div class="topic-metadata">

**Author:** [@Ismaeel\_Enjreny](https://discuss.elastic.co/u/Ismaeel_Enjreny)\
**Replies:** 1\
**Last updated:** [February 13, 2022, 7:24pm UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041 "2022-02-13T19:24:13Z")

</div>

I have Elasticsearch cluster on my local machine with enabled HTTPs (2 nodes), all is working fine, I am trying to use the new tool elasticsearch-create-enrollment-token to enroll the third node, but I got the following …

---

## [Performance reduction in elasticsearch 8.0.0](https://discuss.elastic.co/t/performance-reduction-in-elasticsearch-8-0-0/297067)

<div class="topic-metadata">

**Author:** [@Amir\_Faramarzi](https://discuss.elastic.co/u/Amir_Faramarzi)\
**Replies:** 5\
**Last updated:** [February 13, 2022, 1:30pm UTC](https://discuss.elastic.co/t/performance-reduction-in-elasticsearch-8-0-0/297067 "2022-02-13T13:30:23Z")

</div>

Hello friends Considering that Elasticsearch announced that it had upgraded its performance in version 8.0.0, I decided to install version 8.0.0, but after installation I found that my search performance was about 5 tim…

---

## [Benchmarking Elasticsearch](https://discuss.elastic.co/t/benchmarking-elasticsearch/297012)

<div class="topic-metadata">

**Author:** [@Henrik41](https://discuss.elastic.co/u/Henrik41)\
**Replies:** 2\
**Last updated:** [February 13, 2022, 12:26pm UTC](https://discuss.elastic.co/t/benchmarking-elasticsearch/297012 "2022-02-13T12:26:11Z")

</div>

How do I benchmark Elasticsearch? Any tools people use?

---

## [Restore perticular deleted indices from xfsdump Data](https://discuss.elastic.co/t/restore-perticular-deleted-indices-from-xfsdump-data/296843)

<div class="topic-metadata">

**Author:** [@indrajit\_kal](https://discuss.elastic.co/u/indrajit_kal)\
**Replies:** 3\
**Last updated:** [February 12, 2022, 2:56pm UTC](https://discuss.elastic.co/t/restore-perticular-deleted-indices-from-xfsdump-data/296843 "2022-02-12T14:56:21Z")

</div>

How can we restore deleted indices from xfsdump data.

---

## [Can exact match get higher score than modified by character filter?](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622)

<div class="topic-metadata">

**Author:** [@spotlight2001](https://discuss.elastic.co/u/spotlight2001)\
**Replies:** 2\
**Last updated:** [February 12, 2022, 1:33pm UTC](https://discuss.elastic.co/t/can-exact-match-get-higher-score-than-modified-by-character-filter/296622 "2022-02-12T13:33:27Z")

</div>

I have a custom analyzer which consists of several char\_filter When I have indexed "walter" and "walther" and search for "walther" I would expect to have "walther" result to be of higher score than "walter". But it has…

---

## [I need add field, and do value counter, how do it?](https://discuss.elastic.co/t/i-need-add-field-and-do-value-counter-how-do-it/297005)

<div class="topic-metadata">

**Author:** [@VK345](https://discuss.elastic.co/u/VK345)\
**Replies:** 7\
**Last updated:** [February 12, 2022, 12:57pm UTC](https://discuss.elastic.co/t/i-need-add-field-and-do-value-counter-how-do-it/297005 "2022-02-12T12:57:28Z")

</div>

My config is: ====================================== input { file{ path =\> "/home/elk/domains/rf\_domains\_test" start\_position =\> "beginning" sincedb\_path =\> "/dev/null" } }…

---

## [Aggregation mixed with query?](https://discuss.elastic.co/t/aggregation-mixed-with-query/297008)

<div class="topic-metadata">

**Author:** [@Karol\_Radomski](https://discuss.elastic.co/u/Karol_Radomski)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 12:49pm UTC](https://discuss.elastic.co/t/aggregation-mixed-with-query/297008 "2022-02-12T12:49:01Z")

</div>

Hello, I don't know how to create such aggregation with query inside: for given documents: "hours": "4", "class": "yellow", "name": "andy", "mark": "A" } { "hours": "6", "class": "yellow", …

---

## [Missing transport-netty4-client for ES 8.0.0](https://discuss.elastic.co/t/missing-transport-netty4-client-for-es-8-0-0/297024)

<div class="topic-metadata">

**Author:** [@coutoPL](https://discuss.elastic.co/u/coutoPL)\
**Replies:** 6\
**Last updated:** [February 12, 2022, 11:56am UTC](https://discuss.elastic.co/t/missing-transport-netty4-client-for-es-8-0-0/297024 "2022-02-12T11:56:49Z")

</div>

Hi Guys, There is ES 8.0.0 released, but I cannot find transport-netty4-client for 8.0.0: https://repo1.maven.org/maven2/org/elasticsearch/plugin/transport-netty4-client/ Is it an oversight or maybe, for some reason, …

---

## [How to avoid or ease terms aggregation for fields with high cardinality?](https://discuss.elastic.co/t/how-to-avoid-or-ease-terms-aggregation-for-fields-with-high-cardinality/296853)

<div class="topic-metadata">

**Author:** [@asupranovich](https://discuss.elastic.co/u/asupranovich)\
**Replies:** 3\
**Last updated:** [February 12, 2022, 11:34am UTC](https://discuss.elastic.co/t/how-to-avoid-or-ease-terms-aggregation-for-fields-with-high-cardinality/296853 "2022-02-12T11:34:22Z")

</div>

Hi community! My Elasticsearch version is 7.7.0. I'm facing a too many buckets issue for my aggregation query. Task description: Let's say we have a car index, car data model looks like below: { "vin": "08c00679-…

---

## [Use docker to build elastic seal on multiple machines, one on each machine. Then we can monitor them with kibana. Is this a cluster? Is it feasible?](https://discuss.elastic.co/t/use-docker-to-build-elastic-seal-on-multiple-machines-one-on-each-machine-then-we-can-monitor-them-with-kibana-is-this-a-cluster-is-it-feasible/297044)

<div class="topic-metadata">

**Author:** [@Andy\_dufresneguohao](https://discuss.elastic.co/u/Andy_dufresneguohao)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 9:12am UTC](https://discuss.elastic.co/t/use-docker-to-build-elastic-seal-on-multiple-machines-one-on-each-machine-then-we-can-monitor-them-with-kibana-is-this-a-cluster-is-it-feasible/297044 "2022-02-12T09:12:53Z")

</div>

I use docker compose to build an ES container on 231 and 184 servers respectively. I want to build a kibana on another machine, and then through kibana Configure Elasticsearch in YML Hosts, let kibana access them through…

---

## [Update old data from csv python](https://discuss.elastic.co/t/update-old-data-from-csv-python/297034)

<div class="topic-metadata">

**Author:** [@aminedakhlii](https://discuss.elastic.co/u/aminedakhlii)\
**Replies:** 1\
**Last updated:** [February 12, 2022, 7:48am UTC](https://discuss.elastic.co/t/update-old-data-from-csv-python/297034 "2022-02-12T07:48:09Z")

</div>

I have a bunch of indices A,B,C,D containing large amounts of data per each let's say 50 million records per index and the record contains data as follows: user: amine, age: 22, state: Michigan and I want to create a …

---

## [Which cert do I use and where do I stick it?](https://discuss.elastic.co/t/which-cert-do-i-use-and-where-do-i-stick-it/297031)

<div class="topic-metadata">

**Author:** [@kossde](https://discuss.elastic.co/u/kossde)\
**Replies:** 0\
**Last updated:** [February 12, 2022, 12:41am UTC](https://discuss.elastic.co/t/which-cert-do-i-use-and-where-do-i-stick-it/297031 "2022-02-12T00:41:06Z")

</div>

Remote cluster has a self-signed certificate. Is that the right cert to add to the local cluster and, if so, where do I add that on the local cluster so that the two clusters can trust one another? I'm thinking inside …

---

## [Java api client to implement a complex query](https://discuss.elastic.co/t/java-api-client-to-implement-a-complex-query/295611)

<div class="topic-metadata">

**Author:** [@colddew](https://discuss.elastic.co/u/colddew)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 9:20pm UTC](https://discuss.elastic.co/t/java-api-client-to-implement-a-complex-query/295611 "2022-02-11T21:20:19Z")

</div>

I spent much time to try the new Elasticsearch Java client 7.16.3, but it is hard for me to use it, such as must , terms , multi\_match , functions , filter and so on. Can someone please help me in building the query as b…

---

## [Cant install es-termstat plugin](https://discuss.elastic.co/t/cant-install-es-termstat-plugin/297016)

<div class="topic-metadata">

**Author:** [@chbrown](https://discuss.elastic.co/u/chbrown)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 9:10pm UTC](https://discuss.elastic.co/t/cant-install-es-termstat-plugin/297016 "2022-02-11T21:10:27Z")

</div>

Hi there, Im trying to install this plugin but havent been able to so far. I've tried to download the archive and then run the install with the file path, and running the install with the github url. I get this error for…

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

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