# Elasticsearch

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

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

**Page:** 948

---

## [Reusing scripted field in another scripted field as a parameter in painless](https://discuss.elastic.co/t/reusing-scripted-field-in-another-scripted-field-as-a-parameter-in-painless/229258)

<div class="topic-metadata">

**Author:** [@anoymous\_cooper](https://discuss.elastic.co/u/anoymous_cooper)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 12:40pm UTC](https://discuss.elastic.co/t/reusing-scripted-field-in-another-scripted-field-as-a-parameter-in-painless/229258 "2020-04-22T12:40:08Z")

</div>

I am trying to use a scripted field as a parameter in another scripted field but it seems to give wrong result in es7.4.2,It was working fine in es5.0.1 "script\_fields": { "a": { "script": { "source": "return 1", "l…

---

## [Can't get nested value on script](https://discuss.elastic.co/t/cant-get-nested-value-on-script/229251)

<div class="topic-metadata">

**Author:** [@joel.ortin](https://discuss.elastic.co/u/joel.ortin)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 11:56am UTC](https://discuss.elastic.co/t/cant-get-nested-value-on-script/229251 "2020-04-22T11:56:38Z")

</div>

Hi, I'm trying to do some sorting functionality (like multiply a calculated distance by a number). I have a nested relation where i have multiple objects with a geopoint, and I want to get the closest one and sort the r…

---

## [co.elastic.apm.agent.impl.async.SpanInScopeRunnableWrapper.run(SpanInScopeRunnableWrapper.java:64)](https://discuss.elastic.co/t/co-elastic-apm-agent-impl-async-spaninscoperunnablewrapper-run-spaninscoperunnablewrapper-java-64/229248)

<div class="topic-metadata">

**Author:** [@raja\_shekar](https://discuss.elastic.co/u/raja_shekar)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 11:43am UTC](https://discuss.elastic.co/t/co-elastic-apm-agent-impl-async-spaninscoperunnablewrapper-run-spaninscoperunnablewrapper-java-64/229248 "2020-04-22T11:43:57Z")

</div>

Hi All, At what cases are we get the "co.elastic.apm.agent.impl.async.SpanInScopeRunnableWrapper.run(SpanInScopeRunnableWrapper.java:64)" exception: An error has occurred during your search. Please log out, log back i…

---

## [Error: Could not index event to Elasticsearch](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240)

<div class="topic-metadata">

**Author:** [@thywoe](https://discuss.elastic.co/u/thywoe)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 11:34am UTC](https://discuss.elastic.co/t/error-could-not-index-event-to-elasticsearch/229240 "2020-04-22T11:34:24Z")

</div>

Could not index event to Elasticsearch. {:status=\>400, :action=\>\["index", {:\_id=\>nil, :\_index=\>"rencore-2020.04.22", :routing=\>nil, :\_type=\>"\_doc"}, #\<LogStash::Event:0x6325d5c0\>\], :response=\>{"index"=\>{"\_index"=\>"rencor…

---

## [Bulk delete in elasticsearch](https://discuss.elastic.co/t/bulk-delete-in-elasticsearch/228826)

<div class="topic-metadata">

**Author:** [@A\_google\_user](https://discuss.elastic.co/u/A_google_user)\
**Replies:** 10\
**Last updated:** [April 22, 2020, 11:19am UTC](https://discuss.elastic.co/t/bulk-delete-in-elasticsearch/228826 "2020-04-22T11:19:21Z")

</div>

If I have a list of ids can I bulk delete those documents with ids?

---

## [Reload\_search\_analyzers](https://discuss.elastic.co/t/reload-search-analyzers/228002)

<div class="topic-metadata">

**Author:** [@chari](https://discuss.elastic.co/u/chari)\
**Replies:** 7\
**Last updated:** [April 22, 2020, 11:15am UTC](https://discuss.elastic.co/t/reload-search-analyzers/228002 "2020-04-22T11:15:23Z")

</div>

i have the following sequence of python api calls to ES. from elasticsearch import Elasticsearch es=Elasticsearch(\[{'host':'127.0.0.1','port':9200}\]) es.indices.reload\_search\_analyzers(index="myindex") but I see an err…

---

## [Stop all nodes while stopping master node](https://discuss.elastic.co/t/stop-all-nodes-while-stopping-master-node/229218)

<div class="topic-metadata">

**Author:** [@abhishek1](https://discuss.elastic.co/u/abhishek1)\
**Replies:** 7\
**Last updated:** [April 22, 2020, 11:08am UTC](https://discuss.elastic.co/t/stop-all-nodes-while-stopping-master-node/229218 "2020-04-22T11:08:55Z")

</div>

Hi, I have configured my elasticsearch cluster configuration like below Node 1 : Master Node only Node 2: Master/data Node 3: data node only I have configured master eligible node Node1 and node2 When i stopped nod…

---

## [Cannot set up cluster on 3 machines when using Xpack (7.6.2)](https://discuss.elastic.co/t/cannot-set-up-cluster-on-3-machines-when-using-xpack-7-6-2/228650)

<div class="topic-metadata">

**Author:** [@newschapmj1](https://discuss.elastic.co/u/newschapmj1)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 10:50am UTC](https://discuss.elastic.co/t/cannot-set-up-cluster-on-3-machines-when-using-xpack-7-6-2/228650 "2020-04-22T10:50:51Z")

</div>

I have successfully set up a 3 node cluster This is based on 3 VMS (Ubuntu 20.04). The machines are named node1, node2 & node3 with static ip addresses (192.168.64.21..23) I have added Kibana on node1 and this also wo…

---

## [Finding nearest locations for a geo-point near antimeridian](https://discuss.elastic.co/t/finding-nearest-locations-for-a-geo-point-near-antimeridian/229110)

<div class="topic-metadata">

**Author:** [@vmanohar1](https://discuss.elastic.co/u/vmanohar1)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 10:21am UTC](https://discuss.elastic.co/t/finding-nearest-locations-for-a-geo-point-near-antimeridian/229110 "2020-04-22T10:21:49Z")

</div>

Hi.. I had following questions --\> If I want to find nearest locations from a given location(using sort) and this location happens to be close to anti-meridian, will it cover near by locations across anti-meridian?? …

---

## [Alert query for multiple indexes](https://discuss.elastic.co/t/alert-query-for-multiple-indexes/228911)

<div class="topic-metadata">

**Author:** [@komal\_d\_patil](https://discuss.elastic.co/u/komal_d_patil)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 10:18am UTC](https://discuss.elastic.co/t/alert-query-for-multiple-indexes/228911 "2020-04-22T10:18:27Z")

</div>

I have an elastic search cluster with multiple indexes for example Index A: { temperature: value, hysteresis: value, } ... Index B: { door: value, level:value } i am using kibana alert plugin for generatin…

---

## [MultiNode Cluster Replication Shards](https://discuss.elastic.co/t/multinode-cluster-replication-shards/229018)

<div class="topic-metadata">

**Author:** [@ksremo](https://discuss.elastic.co/u/ksremo)\
**Replies:** 4\
**Last updated:** [April 22, 2020, 10:09am UTC](https://discuss.elastic.co/t/multinode-cluster-replication-shards/229018 "2020-04-22T10:09:28Z")

</div>

I case i have 8 ES nodes on 4 physical Hosts with a setting of 8 primary shards and 1 replica shard. So it runs 2 ES Nodes on 1 physical Host. How i can prevent that that the replica shard is stored on one of the two i…

---

## [NullPointerException while PinnedQuery with aggregation](https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219)

<div class="topic-metadata">

**Author:** [@IliaIsakhin](https://discuss.elastic.co/u/IliaIsakhin)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 9:49am UTC](https://discuss.elastic.co/t/nullpointerexception-while-pinnedquery-with-aggregation/229219 "2020-04-22T09:49:11Z")

</div>

Hi, guys! I have a kotlin application and Elasticsearch v7.5.2 cluster. Im trying to execute common search request with Pinned subquery in parallel. Most of my requests were successfully finished, but couple of them en…

---

## [Can only use prefix queries on keyword and text fields - not on \[soCode\] which is of type](https://discuss.elastic.co/t/can-only-use-prefix-queries-on-keyword-and-text-fields-not-on-socode-which-is-of-type/225358)

<div class="topic-metadata">

**Author:** [@Oh\_Chee\_Peng](https://discuss.elastic.co/u/Oh_Chee_Peng)\
**Replies:** 5\
**Last updated:** [April 22, 2020, 9:41am UTC](https://discuss.elastic.co/t/can-only-use-prefix-queries-on-keyword-and-text-fields-not-on-socode-which-is-of-type/225358 "2020-04-22T09:41:52Z")

</div>

I have this scenario, where the keyword is string, ex: customerName, which is string; as well as soCode, which is number. First, I added a record into elasticsearch: POST sales-orders/\_doc/1234 { customerName: "hel…

---

## [Redirect logs to newly created Index by Index Roll over](https://discuss.elastic.co/t/redirect-logs-to-newly-created-index-by-index-roll-over/226780)

<div class="topic-metadata">

**Author:** [@Ozil](https://discuss.elastic.co/u/Ozil)\
**Replies:** 14\
**Last updated:** [April 22, 2020, 8:54am UTC](https://discuss.elastic.co/t/redirect-logs-to-newly-created-index-by-index-roll-over/226780 "2020-04-22T08:54:33Z")

</div>

Hi All I am using Elasticsearch 7.3 for my internal alerting module. I am planning to introduce the ILM policy in the data node to handle the high amount of data. I am facing an issue I am using custom logstash output,…

---

## [About merge policy for a segment of small size](https://discuss.elastic.co/t/about-merge-policy-for-a-segment-of-small-size/229212)

<div class="topic-metadata">

**Author:** [@Hyunsoo\_Shim](https://discuss.elastic.co/u/Hyunsoo_Shim)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 8:45am UTC](https://discuss.elastic.co/t/about-merge-policy-for-a-segment-of-small-size/229212 "2020-04-22T08:45:25Z")

</div>

Hello, I have a question about merge policy for a segment of small size. I have found a below segment from a shard and have expected that would be merged with new one since the size seemed to be small (just 3.3mb). "…

---

## [Node does not reclaim full memory after GC kicks at 75% and it eventually 'dies'](https://discuss.elastic.co/t/node-does-not-reclaim-full-memory-after-gc-kicks-at-75-and-it-eventually-dies/229199)

<div class="topic-metadata">

**Author:** [@itmeze](https://discuss.elastic.co/u/itmeze)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 8:27am UTC](https://discuss.elastic.co/t/node-does-not-reclaim-full-memory-after-gc-kicks-at-75-and-it-eventually-dies/229199 "2020-04-22T08:27:29Z")

</div>

Hi, I am new to ElasticSearch and at the moment i am evaluating it as a replacement for our sql server based search (in a couple of months time we will need text search for our products) I have an index for product sea…

---

## [How to use a field's meta data in search results](https://discuss.elastic.co/t/how-to-use-a-fields-meta-data-in-search-results/228996)

<div class="topic-metadata">

**Author:** [@arun\_001](https://discuss.elastic.co/u/arun_001)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 8:25am UTC](https://discuss.elastic.co/t/how-to-use-a-fields-meta-data-in-search-results/228996 "2020-04-22T08:25:54Z")

</div>

My requirement is to store some meta data against some fields and retrieve them as part of search results. Looks like the following is what I'm looking for but I'm not sure how use that in a single query. https://www.e…

---

## [Kibana watcher custom icon](https://discuss.elastic.co/t/kibana-watcher-custom-icon/229196)

<div class="topic-metadata">

**Author:** [@Silver](https://discuss.elastic.co/u/Silver)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 7:29am UTC](https://discuss.elastic.co/t/kibana-watcher-custom-icon/229196 "2020-04-22T07:29:45Z")

</div>

Hello, How to put a custom icon for this?

---

## [Too\_many\_buckets\_exception in Elasticseach.7.0.1](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080)

<div class="topic-metadata">

**Author:** [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 7:26am UTC](https://discuss.elastic.co/t/too-many-buckets-exception-in-elasticseach-7-0-1/228080 "2020-04-22T07:26:32Z")

</div>

Hi, We came across an error where the query for Dashborad threw for Too\_many\_buckets\_exception. We looked into couple of queries on elastic community and found that in Elasticseach 7.X the value for max\_buckets is 10000…

---

## [Get the error : No processor type exist with name \[script\]](https://discuss.elastic.co/t/get-the-error-no-processor-type-exist-with-name-script/229171)

<div class="topic-metadata">

**Author:** [@Dhwanil\_Patel](https://discuss.elastic.co/u/Dhwanil_Patel)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 7:26am UTC](https://discuss.elastic.co/t/get-the-error-no-processor-type-exist-with-name-script/229171 "2020-04-22T07:26:27Z")

</div>

My project is in spring boot and i run elastic-search using docker. Now after elastic-search creation when i run my spring boot project i got this error, I checked same thing using kibana but it's there i bit confused…

---

## [Reindex failing with SearchContextMissingException: No search context found for id (batch size = 1)](https://discuss.elastic.co/t/reindex-failing-with-searchcontextmissingexception-no-search-context-found-for-id-batch-size-1/229191)

<div class="topic-metadata">

**Author:** [@mrpew](https://discuss.elastic.co/u/mrpew)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 6:49am UTC](https://discuss.elastic.co/t/reindex-failing-with-searchcontextmissingexception-no-search-context-found-for-id-batch-size-1/229191 "2020-04-22T06:49:35Z")

</div>

Hello :slight\_smile: I am trying to reindex about 3mil documents (~50gb) trough an ingestion pipeline. POST \_reindex?&wait\_for\_completion=false { "source": { "size": 1, "index": "src" }, "dest": { "i…

---

## [Case insensitive path in match query](https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192)

<div class="topic-metadata">

**Author:** [@Jogi\_Michal](https://discuss.elastic.co/u/Jogi_Michal)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 6:55am UTC](https://discuss.elastic.co/t/case-insensitive-path-in-match-query/229192 "2020-04-22T06:55:05Z")

</div>

Hi folks, I have a problem with case sensitivity in field path... My mapping is dynamic: ... "http\_headers": { "dynamic": true, "properties": { "content-length": { "type": "long" } }, ..…

---

## [ElasticSearch output with alias](https://discuss.elastic.co/t/elasticsearch-output-with-alias/228869)

<div class="topic-metadata">

**Author:** [@Julien1](https://discuss.elastic.co/u/Julien1)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 6:49am UTC](https://discuss.elastic.co/t/elasticsearch-output-with-alias/228869 "2020-04-22T06:49:56Z")

</div>

Hello, Do we have to configure manualy first time index name in Elasticsearch output ? Let me explain, the context is : I create a index named : index: "es\_on\_demand\_index-000001" I have an index Lifecycle Policies …

---

## [Switching off security to install the platinum license](https://discuss.elastic.co/t/switching-off-security-to-install-the-platinum-license/229183)

<div class="topic-metadata">

**Author:** [@rgelb](https://discuss.elastic.co/u/rgelb)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 6:37am UTC](https://discuss.elastic.co/t/switching-off-security-to-install-the-platinum-license/229183 "2020-04-22T06:37:38Z")

</div>

I am trying to install a license in Kibana via Management / Elasticsearch / License Management. It tells me Error encountered uploading license: Cannot install a \[PLATINUM\] license unless TLS is configured or security…

---

## [Json\_parse\_exception - Unrecognized token 'analytics\_query'](https://discuss.elastic.co/t/json-parse-exception-unrecognized-token-analytics-query/228344)

<div class="topic-metadata">

**Author:** [@ank-patel](https://discuss.elastic.co/u/ank-patel)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 6:36am UTC](https://discuss.elastic.co/t/json-parse-exception-unrecognized-token-analytics-query/228344 "2020-04-22T06:36:42Z")

</div>

I am using below command to get details about number of API calls for Product "IBM API Connect - kubernetes version" : Command : kubectl exec -it r480b58da7f-analytics-storage-coordinating-7fc6b48b74-dq6f5 -n apic-analy…

---

## [Trigger on insert to index](https://discuss.elastic.co/t/trigger-on-insert-to-index/229113)

<div class="topic-metadata">

**Author:** [@somethingcool](https://discuss.elastic.co/u/somethingcool)\
**Replies:** 10\
**Last updated:** [April 22, 2020, 5:00am UTC](https://discuss.elastic.co/t/trigger-on-insert-to-index/229113 "2020-04-22T05:00:32Z")

</div>

Hello, I am using elasticsearch 6.8 and I couldn't find anything directly to this question, but was curious to know if it is possible to call an external python script after the insert of data into an index. If it is p…

---

## [Index elasticsearch](https://discuss.elastic.co/t/index-elasticsearch/229015)

<div class="topic-metadata">

**Author:** [@Jorge\_Aragon](https://discuss.elastic.co/u/Jorge_Aragon)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 4:56am UTC](https://discuss.elastic.co/t/index-elasticsearch/229015 "2020-04-22T04:56:19Z")

</div>

I am using elasticsearch 7.6 and everything works fine, but wordpress requires elasticsearch 7.5 for elasticpress when I use elasticshear 7.5 it does not recognize my index. this iselastic 7.5 \[2020-04-21T12:18:43,868\]…

---

## [Top match in category](https://discuss.elastic.co/t/top-match-in-category/229114)

<div class="topic-metadata">

**Author:** [@emarthinsen](https://discuss.elastic.co/u/emarthinsen)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 2:50am UTC](https://discuss.elastic.co/t/top-match-in-category/229114 "2020-04-22T02:50:58Z")

</div>

Say I have an online bookstore. If someone searches for "dinosaur", I want to return the top 3 matches in fiction, non-fiction, and reference categories. Is this possible with a single query in ES, or would I need to iss…

---

## [The official documentation on testing has been deleted?](https://discuss.elastic.co/t/the-official-documentation-on-testing-has-been-deleted/229153)

<div class="topic-metadata">

**Author:** [@finn-wa](https://discuss.elastic.co/u/finn-wa)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 1:30am UTC](https://discuss.elastic.co/t/the-official-documentation-on-testing-has-been-deleted/229153 "2020-04-22T01:30:15Z")

</div>

https://www.elastic.co/guide/en/elasticsearch/reference/current/testing.html All of the pages in the testing section of the documentation say "This page was deleted." They definitely existed yesterday. What happened?

---

## [ILM questions: How to delete indexes based daily referenced to @timestamp?](https://discuss.elastic.co/t/ilm-questions-how-to-delete-indexes-based-daily-referenced-to-timestamp/229026)

<div class="topic-metadata">

**Author:** [@asp](https://discuss.elastic.co/u/asp)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 10:17pm UTC](https://discuss.elastic.co/t/ilm-questions-how-to-delete-indexes-based-daily-referenced-to-timestamp/229026 "2020-04-21T22:17:06Z")

</div>

Hi, I have some newbe questions about ILM. Currently I am rotating indices daily or weekly. Logstash is setting the index where to write with date suffix at the end of the index name. I have a cron job which delete ind…

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

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