# Elasticsearch

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

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

**Page:** 585

---

## [Script syntax help](https://discuss.elastic.co/t/script-syntax-help/282855)

<div class="topic-metadata">

**Author:** [@Vester](https://discuss.elastic.co/u/Vester)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 8:32am UTC](https://discuss.elastic.co/t/script-syntax-help/282855 "2021-08-31T08:32:42Z")

</div>

Hi, I'm trying to run a script query to get all docs with a boolean AND condition and I could not found and examples on how to do this. I have this script working: GET indexX/\_search?size=1000 { "query": { …

---

## [Elastic not indexing any more filebeat data but metricbeat data after a Full filesystem](https://discuss.elastic.co/t/elastic-not-indexing-any-more-filebeat-data-but-metricbeat-data-after-a-full-filesystem/282783)

<div class="topic-metadata">

**Author:** [@zebu14](https://discuss.elastic.co/u/zebu14)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 7:24am UTC](https://discuss.elastic.co/t/elastic-not-indexing-any-more-filebeat-data-but-metricbeat-data-after-a-full-filesystem/282783 "2021-08-31T07:24:33Z")

</div>

Hello, I encountered a filesystem full on one of my nodes that caused a cluster stop. I solved the disk space problem by deleting a too big metricbeat index and restarted the cluster. I used the following method (as u…

---

## [Elastic Central -](https://discuss.elastic.co/t/elastic-central/282810)

<div class="topic-metadata">

**Author:** [@alanreboucas](https://discuss.elastic.co/u/alanreboucas)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 11:49pm UTC](https://discuss.elastic.co/t/elastic-central/282810 "2021-08-30T23:49:11Z")

</div>

First, sorry for the lack of knowledge. I'm new to the ElasticSearch world. I've already read a lot of the documentation, but some things weren't clear. I'm implementing a Central lasticsearch cluster and the idea is to…

---

## [Reindex API - failed reindex task response example](https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821)

<div class="topic-metadata">

**Author:** [@janesch97](https://discuss.elastic.co/u/janesch97)\
**Replies:** 0\
**Last updated:** [August 30, 2021, 1:29pm UTC](https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821 "2021-08-30T13:29:32Z")

</div>

Hello, I've been trying to implement a 'reindex complete' notification system using Watcher APIs. Reindex is triggered with wait\_for\_completion=true query parameter, so the reindex task is saved to .tasks index, that is…

---

## [Different behavior on index shards when apply index mapping](https://discuss.elastic.co/t/different-behavior-on-index-shards-when-apply-index-mapping/282697)

<div class="topic-metadata">

**Author:** [@Fdsm](https://discuss.elastic.co/u/Fdsm)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 11:13pm UTC](https://discuss.elastic.co/t/different-behavior-on-index-shards-when-apply-index-mapping/282697 "2021-08-30T23:13:54Z")

</div>

Hello, We watch a curious behavior after apply a index mapping on indices: Before mapping, it was not notice any docs\_deleted on indeces and size of the primary and replica shards were basicaly same: Before custom map…

---

## [Elasticsearch Cross-site cluster](https://discuss.elastic.co/t/elasticsearch-cross-site-cluster/282528)

<div class="topic-metadata">

**Author:** [@unknown\_user](https://discuss.elastic.co/u/unknown_user)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 11:11pm UTC](https://discuss.elastic.co/t/elasticsearch-cross-site-cluster/282528 "2021-08-30T23:11:45Z")

</div>

Hi, Has anyone got experience with running a cluster across Data Centers? I'm interested in latency and bandwidth required between data centers. I've seen some information that 10Gbps / 10ms is required for a reliable c…

---

## [Error running elasticsearch.bat for installation](https://discuss.elastic.co/t/error-running-elasticsearch-bat-for-installation/282774)

<div class="topic-metadata">

**Author:** [@MXR](https://discuss.elastic.co/u/MXR)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 10:06pm UTC](https://discuss.elastic.co/t/error-running-elasticsearch-bat-for-installation/282774 "2021-08-30T22:06:28Z")

</div>

Hi,everyone. When I run elasticsearch.bat under Windows 8.1 system for installation, I will prompt controller.exe to stop running. The network has no similar problems. Ask for your help.Thanks.

---

## [Minimum Missed Conditions Search](https://discuss.elastic.co/t/minimum-missed-conditions-search/282701)

<div class="topic-metadata">

**Author:** [@MagicMatt](https://discuss.elastic.co/u/MagicMatt)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 11:37pm UTC](https://discuss.elastic.co/t/minimum-missed-conditions-search/282701 "2021-08-29T23:37:37Z")

</div>

Hi guys, I just started learning ES and it is fun to play with the data and try to apply the queries to some special cases. These days I am trying to build two sorting methods to help return better results: Max Used Co…

---

## [Elasticsearch is failing to start on Docker since 7.13](https://discuss.elastic.co/t/elasticsearch-is-failing-to-start-on-docker-since-7-13/282546)

<div class="topic-metadata">

**Author:** [@widhalmt](https://discuss.elastic.co/u/widhalmt)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 8:09pm UTC](https://discuss.elastic.co/t/elasticsearch-is-failing-to-start-on-docker-since-7-13/282546 "2021-08-30T20:09:04Z")

</div>

Hi, I'm seeing problems to start Elasticsearch in Docker containers since 7.13. I can't find anything related in the release notes or breaking changes. Background: I'm using custom roles to install and handle Elasticse…

---

## [Match data from two sets and mark entries](https://discuss.elastic.co/t/match-data-from-two-sets-and-mark-entries/282731)

<div class="topic-metadata">

**Author:** [@mydeadvictoria](https://discuss.elastic.co/u/mydeadvictoria)\
**Replies:** 3\
**Last updated:** [August 30, 2021, 5:07pm UTC](https://discuss.elastic.co/t/match-data-from-two-sets-and-mark-entries/282731 "2021-08-30T17:07:06Z")

</div>

I have two relatively large sets of people data (first\_name, last\_name, birth\_date etc). And I need to 'match' them, because some people are present in both sets and I need to find and mark them (by adding their ID from…

---

## [Shard size not even for the same index](https://discuss.elastic.co/t/shard-size-not-even-for-the-same-index/282761)

<div class="topic-metadata">

**Author:** [@junhuangli](https://discuss.elastic.co/u/junhuangli)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 3:59pm UTC](https://discuss.elastic.co/t/shard-size-not-even-for-the-same-index/282761 "2021-08-30T15:59:44Z")

</div>

One of our index is relatively big and I just found its shards size are not even, see below. Any idea what could have cause this? Will it cause any perf issues and anything I can do? |my-index|0|r|STARTED|23869700|9.1…

---

## [Data storage - Shard and replica size](https://discuss.elastic.co/t/data-storage-shard-and-replica-size/282816)

<div class="topic-metadata">

**Author:** [@prithvirajsivarajan](https://discuss.elastic.co/u/prithvirajsivarajan)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 1:55pm UTC](https://discuss.elastic.co/t/data-storage-shard-and-replica-size/282816 "2021-08-30T13:55:22Z")

</div>

I have a two node cluster with 600gb space between them on the data path. I'm setting a data stream where each index has 2 shards and one replica. Does the replica take same space as the main shards? Should I setup my da…

---

## [Getting error while making asynchronous call into es.search() from Flask python API](https://discuss.elastic.co/t/getting-error-while-making-asynchronous-call-into-es-search-from-flask-python-api/282703)

<div class="topic-metadata">

**Author:** [@SCode](https://discuss.elastic.co/u/SCode)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 12:13pm UTC](https://discuss.elastic.co/t/getting-error-while-making-asynchronous-call-into-es-search-from-flask-python-api/282703 "2021-08-30T12:13:48Z")

</div>

Error message looks like Error occurred: '\<' not supported between instances of 'AIOHttpConnection' and 'AIOHttpConnection' Also, at times it throws this error Error occurred: ConnectionError(Event loop is closed) cau…

---

## [How to aggregate based on the number of items in a field?](https://discuss.elastic.co/t/how-to-aggregate-based-on-the-number-of-items-in-a-field/282650)

<div class="topic-metadata">

**Author:** [@Xi\_Ern\_Tee](https://discuss.elastic.co/u/Xi_Ern_Tee)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 11:25am UTC](https://discuss.elastic.co/t/how-to-aggregate-based-on-the-number-of-items-in-a-field/282650 "2021-08-30T11:25:00Z")

</div>

On Elasticsearch I have a field named Itinerary that can contain multiple values (from 1 up to 6), for example in the picture below there's 2 items in the field. Is there a way I can aggregate based on the number of …

---

## [Dockerfile for elastic (unable to copy file)](https://discuss.elastic.co/t/dockerfile-for-elastic-unable-to-copy-file/282681)

<div class="topic-metadata">

**Author:** [@selin](https://discuss.elastic.co/u/selin)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 11:18am UTC](https://discuss.elastic.co/t/dockerfile-for-elastic-unable-to-copy-file/282681 "2021-08-30T11:18:11Z")

</div>

i want to use elastic image such as elasticserhc, kibana and logstash. Do I need specify the CMD or COPY just sufficient? Can I use custom service name and image name or any format needed ARG Version FROM docker.elast…

---

## [Elasticsearch with datatables in laravel](https://discuss.elastic.co/t/elasticsearch-with-datatables-in-laravel/282790)

<div class="topic-metadata">

**Author:** [@Chaima\_Dridi](https://discuss.elastic.co/u/Chaima_Dridi)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-with-datatables-in-laravel/282790 "2021-08-30T10:49:53Z")

</div>

I'm using databales in laravel and putting dynamic data into it with ajax. When I fetch the data from MySQL it works but when I fetch it from elasticsearch it returns an ajax error.

---

## [Search score of identical documents changes when nested integer attribute is modified](https://discuss.elastic.co/t/search-score-of-identical-documents-changes-when-nested-integer-attribute-is-modified/281515)

<div class="topic-metadata">

**Author:** [@Guido\_Cioni](https://discuss.elastic.co/u/Guido_Cioni)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 10:43am UTC](https://discuss.elastic.co/t/search-score-of-identical-documents-changes-when-nested-integer-attribute-is-modified/281515 "2021-08-30T10:43:47Z")

</div>

We stumbled upon this issue today and cannot really understand what is happening. Suppose we have a really simple index with just two documents inside that have the same contents. // document 1 { "question": "text …

---

## [X-pack-async-search and flattened jars are not available in maven repository](https://discuss.elastic.co/t/x-pack-async-search-and-flattened-jars-are-not-available-in-maven-repository/282542)

<div class="topic-metadata">

**Author:** [@apurb\_ojha](https://discuss.elastic.co/u/apurb_ojha)\
**Replies:** 7\
**Last updated:** [August 30, 2021, 10:09am UTC](https://discuss.elastic.co/t/x-pack-async-search-and-flattened-jars-are-not-available-in-maven-repository/282542 "2021-08-30T10:09:00Z")

</div>

We want to use basic elastic license for (7.9.3). Although x-pack-core is available in maven repository but we are unable to find few jars like x-pack-async-search and flattened. Can we build these jars or is there any w…

---

## [Unexplainable slow queries on Elasticsearch 😔](https://discuss.elastic.co/t/unexplainable-slow-queries-on-elasticsearch/282512)

<div class="topic-metadata">

**Author:** [@silex-kbui](https://discuss.elastic.co/u/silex-kbui)\
**Replies:** 3\
**Last updated:** [August 30, 2021, 8:59am UTC](https://discuss.elastic.co/t/unexplainable-slow-queries-on-elasticsearch/282512 "2021-08-30T08:59:29Z")

</div>

Hi community, I’m asking for help today because we’re experiencing huge latencies on some Elasticsearch queries, and we’re in a lack of ideas to explore to find the actual source of the trouble. We are not looking for …

---

## [FSCrawler not able to detect log42j.xml](https://discuss.elastic.co/t/fscrawler-not-able-to-detect-log42j-xml/282775)

<div class="topic-metadata">

**Author:** [@Pragyan\_prakash](https://discuss.elastic.co/u/Pragyan_prakash)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 6:59am UTC](https://discuss.elastic.co/t/fscrawler-not-able-to-detect-log42j-xml/282775 "2021-08-30T06:59:42Z")

</div>

Trying to run the fscrawler.bat file using the command prompt but faced the following issue Error: Could not find or load main class (1)\\fscrawler-es7-2.8-SNAPSHOT.config.log4j2.xml Caused by: java.lang.ClassNotFoundEx…

---

## [Getting \_score 0 during feature logging](https://discuss.elastic.co/t/getting-score-0-during-feature-logging/282727)

<div class="topic-metadata">

**Author:** [@Meghana\_S1](https://discuss.elastic.co/u/Meghana_S1)\
**Replies:** 2\
**Last updated:** [August 30, 2021, 4:27am UTC](https://discuss.elastic.co/t/getting-score-0-during-feature-logging/282727 "2021-08-30T04:27:48Z")

</div>

I am new to elastic search LTR and I am working on a new project. I am actually stuck in the feature logging part. I am using a similar query given in "Logging Feature Scores — Elasticsearch Learning to Rank documentatio…

---

## [Performance impact for mutiple targets](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741)

<div class="topic-metadata">

**Author:** [@mhua1](https://discuss.elastic.co/u/mhua1)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 1:29am UTC](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741 "2021-08-30T01:29:09Z")

</div>

For Elasticsearch rollover feature, normally there is an alias for write and the other one for reading. The write alias includes the latest index, but the read one includes all indexes. I'm concerning the performance pe…

---

## [API Authorization & Token base API call](https://discuss.elastic.co/t/api-authorization-token-base-api-call/282566)

<div class="topic-metadata">

**Author:** [@shashikant.deshmukh](https://discuss.elastic.co/u/shashikant.deshmukh)\
**Replies:** 1\
**Last updated:** [August 29, 2021, 11:54pm UTC](https://discuss.elastic.co/t/api-authorization-token-base-api-call/282566 "2021-08-29T23:54:17Z")

</div>

Hi Experts, @val I need your expert advice, to achieve below things. I have 2 API, Authentication - It generate the token GetRobotDetails - It uses the above token to make successful API call. can you please help ho…

---

## [Matching receipts with fulfilled orders](https://discuss.elastic.co/t/matching-receipts-with-fulfilled-orders/282123)

<div class="topic-metadata">

**Author:** [@JoeGilkey](https://discuss.elastic.co/u/JoeGilkey)\
**Replies:** 3\
**Last updated:** [August 29, 2021, 3:43pm UTC](https://discuss.elastic.co/t/matching-receipts-with-fulfilled-orders/282123 "2021-08-29T15:43:17Z")

</div>

Hello, I have a data stream that I am posting grocery receipts to on an hourly basis. The receipt includes the individual items purchased, as well as a keyword array with the unique product UPC codes. I’m trying to matc…

---

## [Docker elasticsearch - changing directory permission is not working](https://discuss.elastic.co/t/docker-elasticsearch-changing-directory-permission-is-not-working/282746)

<div class="topic-metadata">

**Author:** [@lilyyy](https://discuss.elastic.co/u/lilyyy)\
**Replies:** 0\
**Last updated:** [August 29, 2021, 7:19am UTC](https://discuss.elastic.co/t/docker-elasticsearch-changing-directory-permission-is-not-working/282746 "2021-08-29T07:19:50Z")

</div>

Hi all elasticsearch.yml --- ## Default Elasticsearch configuration from Elasticsearch base image. ## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml # clust…

---

## [How do I apply the Precision from the Ranking Evaluation API to all ids?](https://discuss.elastic.co/t/how-do-i-apply-the-precision-from-the-ranking-evaluation-api-to-all-ids/282742)

<div class="topic-metadata">

**Author:** [@Talents](https://discuss.elastic.co/u/Talents)\
**Replies:** 0\
**Last updated:** [August 29, 2021, 3:36am UTC](https://discuss.elastic.co/t/how-do-i-apply-the-precision-from-the-ranking-evaluation-api-to-all-ids/282742 "2021-08-29T03:36:10Z")

</div>

I'm using this page as a reference (Ranking evaluation API | Elasticsearch Guide \[7.14\] | Elastic) and I was just wondering how I'd apply the Precision part to all the ids in my index instead of having to do it 1 by 1? T…

---

## [Anomalies and bucket span](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601)

<div class="topic-metadata">

**Author:** [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 1:17pm UTC](https://discuss.elastic.co/t/anomalies-and-bucket-span/282601 "2021-08-28T13:17:38Z")

</div>

Hi, I have a ML job with a bucket span of 5 minutes. when an anomaly is detected and displayed in a graph, the red dot is the beggining of that bucket span? or the end of the bucket span? in other words the red dot indi…

---

## [The perfect Elasticsearch data node](https://discuss.elastic.co/t/the-perfect-elasticsearch-data-node/280841)

<div class="topic-metadata">

**Author:** [@Jason\_Baumgartner](https://discuss.elastic.co/u/Jason_Baumgartner)\
**Replies:** 4\
**Last updated:** [August 28, 2021, 12:01pm UTC](https://discuss.elastic.co/t/the-perfect-elasticsearch-data-node/280841 "2021-08-28T12:01:20Z")

</div>

I'm currently upgrading our Elasticsearch cluster to a multi-petabyte cluster (~2.5 petabytes). I have some questions about scaling out Elasticsearch, etc. First, I've found that cheap nucs with 12+ cores and 64GB of RA…

---

## [Unable to start elasticsearch on CentOs](https://discuss.elastic.co/t/unable-to-start-elasticsearch-on-centos/282687)

<div class="topic-metadata">

**Author:** [@mirza\_muhriz](https://discuss.elastic.co/u/mirza_muhriz)\
**Replies:** 11\
**Last updated:** [August 28, 2021, 3:06am UTC](https://discuss.elastic.co/t/unable-to-start-elasticsearch-on-centos/282687 "2021-08-28T03:06:56Z")

</div>

/bin/systemctl status elasticsearch.service ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendo …

---

## [Beginner: Trouble getting started](https://discuss.elastic.co/t/beginner-trouble-getting-started/282617)

<div class="topic-metadata">

**Author:** [@jmsbooth](https://discuss.elastic.co/u/jmsbooth)\
**Replies:** 7\
**Last updated:** [August 27, 2021, 11:33pm UTC](https://discuss.elastic.co/t/beginner-trouble-getting-started/282617 "2021-08-27T23:33:21Z")

</div>

Deployed elasticsearch to an Ubuntu VM within Azure cloud. Edited the elasticsearch.yaml for the port, cluster.initial\_master\_nodes, and the network host: \[network.host\](https://network.host/): "localhost" http.port: 92…

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

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